Class AssetListEntryLocalServiceUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAssetEntrySelection(long assetListEntryId, long assetEntryId, long segmentsEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) static voidaddAssetEntrySelections(long assetListEntryId, long[] assetEntryIds, long segmentsEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) static AssetListEntryaddAssetListEntry(AssetListEntry assetListEntry) Adds the asset list entry to the database.static AssetListEntryaddAssetListEntry(String externalReferenceCode, long userId, long groupId, String title, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) static AssetListEntryaddAssetListEntry(String externalReferenceCode, long userId, long groupId, String title, int type, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) static AssetListEntryaddDynamicAssetListEntry(String externalReferenceCode, long userId, long groupId, String title, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) static AssetListEntryaddManualAssetListEntry(String externalReferenceCode, long userId, long groupId, String title, long[] assetEntryIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) static AssetListEntrycreateAssetListEntry(long assetListEntryId) Creates a new asset list entry with the primary key.static com.liferay.portal.kernel.model.PersistedModelcreatePersistedModel(Serializable primaryKeyObj) static voiddeleteAssetEntrySelection(long assetListEntryId, long segmentsEntryId, int position) static AssetListEntrydeleteAssetListEntry(long assetListEntryId) Deletes the asset list entry with the primary key from the database.static AssetListEntrydeleteAssetListEntry(long assetListEntryId, long segmentsEntryId) static AssetListEntrydeleteAssetListEntry(AssetListEntry assetListEntry) Deletes the asset list entry from the database.static AssetListEntrydeleteAssetListEntry(String externalReferenceCode, long groupId) static com.liferay.portal.kernel.model.PersistedModeldeletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) static <T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static intdslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) static com.liferay.portal.kernel.dao.orm.DynamicQuerystatic <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.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.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.static longdynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.static longdynamicQueryCount(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.static AssetListEntryfetchAssetListEntry(long assetListEntryId) static AssetListEntryfetchAssetListEntryByExternalReferenceCode(String externalReferenceCode, long groupId) static AssetListEntryfetchAssetListEntryByUuidAndGroupId(String uuid, long groupId) Returns the asset list entry matching the UUID and group.static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuerystatic List<AssetListEntry> getAssetListEntries(int start, int end) Returns a range of all the asset list entries.static List<AssetListEntry> getAssetListEntries(long groupId) static List<AssetListEntry> getAssetListEntriesByUuidAndCompanyId(String uuid, long companyId) Returns all the asset list entries matching the UUID and company.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.static intReturns the number of asset list entries.static AssetListEntrygetAssetListEntry(long assetListEntryId) Returns the asset list entry with the primary key.static AssetListEntrygetAssetListEntry(long groupId, String assetListEntryKey) static AssetListEntrygetAssetListEntryByExternalReferenceCode(String externalReferenceCode, long groupId) static AssetListEntrygetAssetListEntryByUuidAndGroupId(String uuid, long groupId) Returns the asset list entry matching the UUID and group.static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuerygetExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) static com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuerystatic StringReturns the OSGi service identifier.static com.liferay.portal.kernel.model.PersistedModelgetPersistedModel(Serializable primaryKeyObj) static AssetListEntryLocalServicestatic voidmoveAssetEntrySelection(long assetListEntryId, long segmentsEntryId, int position, int newPosition) static AssetListEntryupdateAssetListEntry(long assetListEntryId, long segmentsEntryId, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) static AssetListEntryupdateAssetListEntry(long assetListEntryId, String title) static AssetListEntryupdateAssetListEntry(AssetListEntry assetListEntry) Updates the asset list entry in the database or adds it if it does not yet exist.static voidupdateAssetListEntryTypeSettings(long assetListEntryId, long segmentsEntryId, String typeSettings)
-
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
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
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
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.asset.list.model.impl.AssetListEntryModelImpl.- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.asset.list.model.impl.AssetListEntryModelImpl.- Parameters:
dynamicQuery- the dynamic querystart- the lower bound of the range of model instancesend- the upper bound of the range of model instances (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchAssetListEntry
-
fetchAssetListEntryByExternalReferenceCode
public static AssetListEntry fetchAssetListEntryByExternalReferenceCode(String externalReferenceCode, long groupId) -
fetchAssetListEntryByUuidAndGroupId
Returns the asset list entry matching the UUID and group.- Parameters:
uuid- the asset list entry's UUIDgroupId- the primary key of the group- Returns:
- the matching asset list entry, or
nullif a matching asset list entry could not be found
-
getActionableDynamicQuery
public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() -
getAssetListEntries
Returns a range of all the asset list entries.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.asset.list.model.impl.AssetListEntryModelImpl.- Parameters:
start- the lower bound of the range of asset list entriesend- the upper bound of the range of asset list entries (not inclusive)- Returns:
- the range of asset list entries
-
getAssetListEntries
-
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 entriescompanyId- 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 entriescompanyId- the primary key of the companystart- the lower bound of the range of asset list entriesend- the upper bound of the range of asset list entries (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 UUIDgroupId- 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
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
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
-