Class AssetEntryServiceImpl
Object
com.liferay.portal.kernel.service.BaseServiceImpl
com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
com.liferay.portlet.asset.service.impl.AssetEntryServiceImpl
- All Implemented Interfaces:
com.liferay.asset.kernel.service.AssetEntryService,com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService,com.liferay.portal.kernel.service.BaseService
Provides the remote service for accessing and updating asset entries. Its
methods include permission checks.
- Author:
- Brian Wing Shun Chan, Jorge Ferrer, Bruno Farache, Raymond Augé
-
Field Summary
Fields inherited from class com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetTagPersistence, counterLocalServiceFields inherited from class com.liferay.portal.kernel.service.BaseServiceImpl
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.liferay.asset.kernel.service.persistence.AssetEntryQuerybuildFilteredEntryQuery(com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery) com.liferay.asset.kernel.model.AssetEntryfetchEntry(long entryId) protected Object[]filterEntryQuery(com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery, boolean returnEntriesCountOnly) List<com.liferay.asset.kernel.model.AssetEntry>getCompanyEntries(long companyId, int start, int end) intgetCompanyEntriesCount(long companyId) List<com.liferay.asset.kernel.model.AssetEntry>getEntries(com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery) intgetEntriesCount(com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery) com.liferay.asset.kernel.model.AssetEntrygetEntry(long entryId) com.liferay.asset.kernel.model.AssetEntryprotected booleanhasEntryQueryResults(com.liferay.asset.kernel.service.persistence.AssetEntryQuery originalEntryQuery, com.liferay.asset.kernel.service.persistence.AssetEntryQuery filteredEntryQuery) com.liferay.asset.kernel.model.AssetEntryincrementViewCounter(long companyId, String className, long classPK) voidincrementViewCounter(com.liferay.asset.kernel.model.AssetEntry assetEntry) com.liferay.asset.kernel.model.AssetEntryupdateEntry(long groupId, Date createDate, Date modifiedDate, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean listable, boolean visible, Date startDate, Date endDate, Date publishDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, Double priority) Methods inherited from class com.liferay.portlet.asset.service.base.AssetEntryServiceBaseImpl
afterPropertiesSet, destroy, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getCounterLocalService, getModelClass, getModelClassName, getOSGiServiceIdentifier, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setCounterLocalServiceMethods inherited from class com.liferay.portal.kernel.service.BaseServiceImpl
getClassLoader, getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId
-
Constructor Details
-
AssetEntryServiceImpl
public AssetEntryServiceImpl()
-
-
Method Details
-
fetchEntry
public com.liferay.asset.kernel.model.AssetEntry fetchEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCompanyEntries
public List<com.liferay.asset.kernel.model.AssetEntry> getCompanyEntries(long companyId, int start, int end) -
getCompanyEntriesCount
public int getCompanyEntriesCount(long companyId) -
getEntries
public List<com.liferay.asset.kernel.model.AssetEntry> getEntries(com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getEntriesCount
public int getEntriesCount(com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getEntry
public com.liferay.asset.kernel.model.AssetEntry getEntry(long entryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getEntry
public com.liferay.asset.kernel.model.AssetEntry getEntry(String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
incrementViewCounter
public void incrementViewCounter(com.liferay.asset.kernel.model.AssetEntry assetEntry) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
incrementViewCounter
@AccessControlled(guestAccessEnabled=true) public com.liferay.asset.kernel.model.AssetEntry incrementViewCounter(long companyId, String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateEntry
public com.liferay.asset.kernel.model.AssetEntry updateEntry(long groupId, Date createDate, Date modifiedDate, String className, long classPK, String classUuid, long classTypeId, long[] categoryIds, String[] tagNames, boolean listable, boolean visible, Date startDate, Date endDate, Date publishDate, Date expirationDate, String mimeType, String title, String description, String summary, String url, String layoutUuid, int height, int width, Double priority) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
buildFilteredEntryQuery
protected com.liferay.asset.kernel.service.persistence.AssetEntryQuery buildFilteredEntryQuery(com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
filterEntryQuery
protected Object[] filterEntryQuery(com.liferay.asset.kernel.service.persistence.AssetEntryQuery entryQuery, boolean returnEntriesCountOnly) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
hasEntryQueryResults
protected boolean hasEntryQueryResults(com.liferay.asset.kernel.service.persistence.AssetEntryQuery originalEntryQuery, com.liferay.asset.kernel.service.persistence.AssetEntryQuery filteredEntryQuery)
-