Class AssetListEntryLocalServiceUtil

java.lang.Object
com.liferay.asset.list.service.AssetListEntryLocalServiceUtil

public class AssetListEntryLocalServiceUtil extends Object
Provides the local service utility for AssetListEntry. This utility wraps com.liferay.asset.list.service.impl.AssetListEntryLocalServiceImpl and is an access point for service operations in application layer code running on the local server. 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:
  • Constructor Details

    • AssetListEntryLocalServiceUtil

      public AssetListEntryLocalServiceUtil()
  • Method Details

    • addAssetEntrySelection

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteAssetEntrySelection

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

      public static 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

      public static 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

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

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

      public static com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public static <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
    • dslQueryCount

      public static int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
    • dynamicQuery

      public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
    • dynamicQuery

      public static <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

      public static <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

      public static <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

      public static 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

      public static 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

      public static AssetListEntry fetchAssetListEntry(long assetListEntryId)
    • fetchAssetListEntryByExternalReferenceCode

      public static AssetListEntry fetchAssetListEntryByExternalReferenceCode(String externalReferenceCode, long groupId)
    • fetchAssetListEntryByUuidAndGroupId

      public static 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

      public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
    • getAssetListEntries

      public static 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

      public static List<AssetListEntry> getAssetListEntries(long groupId)
    • getAssetListEntriesByUuidAndCompanyId

      public static 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

      public static 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

      public static int getAssetListEntriesCount()
      Returns the number of asset list entries.
      Returns:
      the number of asset list entries
    • getAssetListEntry

      public static 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

      public static AssetListEntry getAssetListEntry(long groupId, String assetListEntryKey) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAssetListEntryByExternalReferenceCode

      public static AssetListEntry getAssetListEntryByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAssetListEntryByUuidAndGroupId

      public static 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

      public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
    • getIndexableActionableDynamicQuery

      public static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
    • getOSGiServiceIdentifier

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

      public static com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveAssetEntrySelection

      public static 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

      public static 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

      public static 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

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

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

      public static AssetListEntryLocalService getService()