Interface AssetListEntryLocalService

All Superinterfaces:
com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<AssetListEntry>, com.liferay.portal.kernel.service.PersistedModelLocalService
All Known Implementing Classes:
AssetListEntryLocalServiceWrapper

@CTAware @ProviderType @Transactional(isolation=PORTAL, rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class}) public interface AssetListEntryLocalService extends com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<AssetListEntry>, com.liferay.portal.kernel.service.PersistedModelLocalService
Provides the local service interface for AssetListEntry. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
See Also:
Generated:
  • Method Details

    • addAssetEntrySelection

      void addAssetEntrySelection(long assetListEntryId, long assetEntryId, long segmentsEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addAssetEntrySelections

      void addAssetEntrySelections(long assetListEntryId, long[] assetEntryIds, long segmentsEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addAssetListEntry

      @Indexable(type=REINDEX) AssetListEntry addAssetListEntry(AssetListEntry assetListEntry)
      Adds the asset list entry to the database. Also notifies the appropriate model listeners.

      Important: Inspect AssetListEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      assetListEntry - the asset list entry
      Returns:
      the asset list entry that was added
    • addAssetListEntry

      AssetListEntry addAssetListEntry(String externalReferenceCode, long userId, long groupId, String title, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addAssetListEntry

      AssetListEntry addAssetListEntry(String externalReferenceCode, long userId, long groupId, String title, int type, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addDynamicAssetListEntry

      AssetListEntry addDynamicAssetListEntry(String externalReferenceCode, long userId, long groupId, String title, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addManualAssetListEntry

      AssetListEntry addManualAssetListEntry(String externalReferenceCode, long userId, long groupId, String title, long[] assetEntryIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createAssetListEntry

      @Transactional(enabled=false) AssetListEntry createAssetListEntry(long assetListEntryId)
      Creates a new asset list entry with the primary key. Does not add the asset list entry to the database.
      Parameters:
      assetListEntryId - the primary key for the new asset list entry
      Returns:
      the new asset list entry
    • createPersistedModel

      com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteAssetEntrySelection

      void deleteAssetEntrySelection(long assetListEntryId, long segmentsEntryId, int position) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteAssetListEntry

      @Indexable(type=DELETE) @SystemEvent(type=1) AssetListEntry deleteAssetListEntry(AssetListEntry assetListEntry) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the asset list entry from the database. Also notifies the appropriate model listeners.

      Important: Inspect AssetListEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      assetListEntry - the asset list entry
      Returns:
      the asset list entry that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteAssetListEntry

      @Indexable(type=DELETE) AssetListEntry deleteAssetListEntry(long assetListEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the asset list entry with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect AssetListEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      assetListEntryId - the primary key of the asset list entry
      Returns:
      the asset list entry that was removed
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a asset list entry with the primary key could not be found
    • deleteAssetListEntry

      AssetListEntry deleteAssetListEntry(long assetListEntryId, long segmentsEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteAssetListEntry

      AssetListEntry deleteAssetListEntry(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deletePersistedModel

      com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      Performs a dynamic query on the database and returns a range of the matching rows.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.list.model.impl.AssetListEntryModelImpl.

      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
      Performs a dynamic query on the database and returns an ordered range of the matching rows.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.list.model.impl.AssetListEntryModelImpl.

      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      @Transactional(propagation=SUPPORTS, readOnly=true) long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
      Returns the number of rows matching the dynamic query.
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchAssetListEntry

      @Transactional(propagation=SUPPORTS, readOnly=true) AssetListEntry fetchAssetListEntry(long assetListEntryId)
    • fetchAssetListEntryByExternalReferenceCode

      @Transactional(propagation=SUPPORTS, readOnly=true) AssetListEntry fetchAssetListEntryByExternalReferenceCode(String externalReferenceCode, long groupId)
    • fetchAssetListEntryByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) AssetListEntry fetchAssetListEntryByUuidAndGroupId(String uuid, long groupId)
      Returns the asset list entry matching the UUID and group.
      Parameters:
      uuid - the asset list entry's UUID
      groupId - the primary key of the group
      Returns:
      the matching asset list entry, or null if a matching asset list entry could not be found
    • getActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
    • getAssetListEntries

      @Transactional(propagation=SUPPORTS, readOnly=true) List<AssetListEntry> getAssetListEntries(int start, int end)
      Returns a range of all the asset list entries.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from com.liferay.asset.list.model.impl.AssetListEntryModelImpl.

      Parameters:
      start - the lower bound of the range of asset list entries
      end - the upper bound of the range of asset list entries (not inclusive)
      Returns:
      the range of asset list entries
    • getAssetListEntries

      @Transactional(propagation=SUPPORTS, readOnly=true) List<AssetListEntry> getAssetListEntries(long groupId)
    • getAssetListEntriesByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<AssetListEntry> getAssetListEntriesByUuidAndCompanyId(String uuid, long companyId)
      Returns all the asset list entries matching the UUID and company.
      Parameters:
      uuid - the UUID of the asset list entries
      companyId - the primary key of the company
      Returns:
      the matching asset list entries, or an empty list if no matches were found
    • getAssetListEntriesByUuidAndCompanyId

      @Transactional(propagation=SUPPORTS, readOnly=true) List<AssetListEntry> getAssetListEntriesByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AssetListEntry> orderByComparator)
      Returns a range of asset list entries matching the UUID and company.
      Parameters:
      uuid - the UUID of the asset list entries
      companyId - the primary key of the company
      start - the lower bound of the range of asset list entries
      end - the upper bound of the range of asset list entries (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching asset list entries, or an empty list if no matches were found
    • getAssetListEntriesCount

      @Transactional(propagation=SUPPORTS, readOnly=true) int getAssetListEntriesCount()
      Returns the number of asset list entries.
      Returns:
      the number of asset list entries
    • getAssetListEntry

      @Transactional(propagation=SUPPORTS, readOnly=true) AssetListEntry getAssetListEntry(long assetListEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the asset list entry with the primary key.
      Parameters:
      assetListEntryId - the primary key of the asset list entry
      Returns:
      the asset list entry
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a asset list entry with the primary key could not be found
    • getAssetListEntry

      @Transactional(propagation=SUPPORTS, readOnly=true) AssetListEntry getAssetListEntry(long groupId, String assetListEntryKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAssetListEntryByExternalReferenceCode

      @Transactional(propagation=SUPPORTS, readOnly=true) AssetListEntry getAssetListEntryByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAssetListEntryByUuidAndGroupId

      @Transactional(propagation=SUPPORTS, readOnly=true) AssetListEntry getAssetListEntryByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the asset list entry matching the UUID and group.
      Parameters:
      uuid - the asset list entry's UUID
      groupId - the primary key of the group
      Returns:
      the matching asset list entry
      Throws:
      com.liferay.portal.kernel.exception.PortalException - if a matching asset list entry could not be found
    • getExportActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
    • getIndexableActionableDynamicQuery

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getOSGiServiceIdentifier

      String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getPersistedModel

      @Transactional(propagation=SUPPORTS, readOnly=true) com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveAssetEntrySelection

      void moveAssetEntrySelection(long assetListEntryId, long segmentsEntryId, int position, int newPosition) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAssetListEntry

      @Indexable(type=REINDEX) AssetListEntry updateAssetListEntry(AssetListEntry assetListEntry)
      Updates the asset list entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect AssetListEntryLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.

      Parameters:
      assetListEntry - the asset list entry
      Returns:
      the asset list entry that was updated
    • updateAssetListEntry

      AssetListEntry updateAssetListEntry(long assetListEntryId, long segmentsEntryId, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAssetListEntry

      AssetListEntry updateAssetListEntry(long assetListEntryId, String title) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAssetListEntryTypeSettings

      void updateAssetListEntryTypeSettings(long assetListEntryId, long segmentsEntryId, String typeSettings) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCTPersistence

      @Transactional(enabled=false) com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<AssetListEntry> getCTPersistence()
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<AssetListEntry>
    • getModelClass

      @Transactional(enabled=false) Class<AssetListEntry> getModelClass()
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<AssetListEntry>
    • updateWithUnsafeFunction

      @Transactional(rollbackFor=java.lang.Throwable.class) <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<AssetListEntry>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<AssetListEntry>
      Throws:
      E extends Throwable