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
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAssetEntrySelection
(long assetListEntryId, long assetEntryId, long segmentsEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
addAssetEntrySelections
(long assetListEntryId, long[] assetEntryIds, long segmentsEntryId, com.liferay.portal.kernel.service.ServiceContext serviceContext) addAssetListEntry
(AssetListEntry assetListEntry) Adds the asset list entry to the database.addAssetListEntry
(String externalReferenceCode, long userId, long groupId, String title, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) addAssetListEntry
(String externalReferenceCode, long userId, long groupId, String title, int type, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) addDynamicAssetListEntry
(String externalReferenceCode, long userId, long groupId, String title, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) addManualAssetListEntry
(String externalReferenceCode, long userId, long groupId, String title, long[] assetEntryIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) createAssetListEntry
(long assetListEntryId) Creates a new asset list entry with the primary key.com.liferay.portal.kernel.model.PersistedModel
createPersistedModel
(Serializable primaryKeyObj) void
deleteAssetEntrySelection
(long assetListEntryId, long segmentsEntryId, int position) deleteAssetListEntry
(long assetListEntryId) Deletes the asset list entry with the primary key from the database.deleteAssetListEntry
(long assetListEntryId, long segmentsEntryId) deleteAssetListEntry
(AssetListEntry assetListEntry) Deletes the asset list entry from the database.deleteAssetListEntry
(String externalReferenceCode, long groupId) com.liferay.portal.kernel.model.PersistedModel
deletePersistedModel
(com.liferay.portal.kernel.model.PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) com.liferay.portal.kernel.dao.orm.DynamicQuery
<T> List<T>
dynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<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.<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.long
dynamicQueryCount
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.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.fetchAssetListEntry
(long assetListEntryId) fetchAssetListEntryByExternalReferenceCode
(String externalReferenceCode, long groupId) fetchAssetListEntryByUuidAndGroupId
(String uuid, long groupId) Returns the asset list entry matching the UUID and group.com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
getAssetListEntries
(int start, int end) Returns a range of all the asset list entries.getAssetListEntries
(long groupId) getAssetListEntriesByUuidAndCompanyId
(String uuid, long companyId) Returns all the asset list entries matching the UUID and company.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.int
Returns the number of asset list entries.getAssetListEntry
(long assetListEntryId) Returns the asset list entry with the primary key.getAssetListEntry
(long groupId, String assetListEntryKey) getAssetListEntryByExternalReferenceCode
(String externalReferenceCode, long groupId) getAssetListEntryByUuidAndGroupId
(String uuid, long groupId) Returns the asset list entry matching the UUID and group.com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<AssetListEntry>
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery
(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
Returns the OSGi service identifier.com.liferay.portal.kernel.model.PersistedModel
getPersistedModel
(Serializable primaryKeyObj) void
moveAssetEntrySelection
(long assetListEntryId, long segmentsEntryId, int position, int newPosition) updateAssetListEntry
(long assetListEntryId, long segmentsEntryId, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateAssetListEntry
(long assetListEntryId, String title) updateAssetListEntry
(AssetListEntry assetListEntry) Updates the asset list entry in the database or adds it if it does not yet exist.void
updateAssetListEntryTypeSettings
(long assetListEntryId, long segmentsEntryId, String typeSettings) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<AssetListEntry>, R, E> updateUnsafeFunction) Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel, getBasePersistence
-
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
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
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 interfacecom.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 interfacecom.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 interfacecom.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 interfacecom.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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
@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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
@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 queryprojection
- 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 UUIDgroupId
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
tocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
@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 entriescompanyId
- 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 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
@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 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
@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 interfacecom.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
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 interfacecom.liferay.portal.kernel.service.change.tracking.CTService<AssetListEntry>
-
getModelClass
- Specified by:
getModelClass
in interfacecom.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, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfacecom.liferay.portal.kernel.service.change.tracking.CTService<AssetListEntry>
- Throws:
E extends Throwable
-