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

public class AssetEntryServiceImpl extends AssetEntryServiceBaseImpl
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é
  • 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)