Interface AssetEntryLocalService
- All Superinterfaces:
BaseLocalService
,CTService<AssetEntry>
,PersistedModelLocalService
- All Known Implementing Classes:
AssetEntryLocalServiceWrapper
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionaddAssetEntry
(AssetEntry assetEntry) Adds the asset entry to the database.boolean
addAssetTagAssetEntries
(long tagId, long[] entryIds) boolean
addAssetTagAssetEntries
(long tagId, List<AssetEntry> assetEntries) boolean
addAssetTagAssetEntry
(long tagId, long entryId) boolean
addAssetTagAssetEntry
(long tagId, AssetEntry assetEntry) void
clearAssetTagAssetEntries
(long tagId) createAssetEntry
(long entryId) Creates a new asset entry with the primary key.createPersistedModel
(Serializable primaryKeyObj) deleteAssetEntry
(long entryId) Deletes the asset entry with the primary key from the database.deleteAssetEntry
(AssetEntry assetEntry) Deletes the asset entry from the database.void
deleteAssetTagAssetEntries
(long tagId, long[] entryIds) void
deleteAssetTagAssetEntries
(long tagId, List<AssetEntry> assetEntries) void
deleteAssetTagAssetEntry
(long tagId, long entryId) void
deleteAssetTagAssetEntry
(long tagId, AssetEntry assetEntry) void
deleteEntries
(long companyId, String className) deleteEntry
(long entryId) deleteEntry
(AssetEntry entry) deleteEntry
(String className, long classPK) void
deleteGroupEntries
(long groupId) deletePersistedModel
(PersistedModel persistedModel) <T> T
dslQuery
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) int
dslQueryCount
(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) <T> List<T>
dynamicQuery
(DynamicQuery dynamicQuery) Performs a dynamic query on the database and returns the matching rows.<T> List<T>
dynamicQuery
(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
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator) Performs a dynamic query on the database and returns an ordered range of the matching rows.long
dynamicQueryCount
(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.long
dynamicQueryCount
(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchAssetEntry
(long entryId) fetchEntry
(long entryId) fetchEntry
(long classNameId, long classPK) fetchEntry
(long groupId, String classUuid) fetchEntry
(String className, long classPK) getAssetEntries
(int start, int end) Returns a range of all the asset entries.int
Returns the number of asset entries.getAssetEntry
(long entryId) Returns the asset entry with the primary key.getAssetTagAssetEntries
(long tagId) getAssetTagAssetEntries
(long tagId, int start, int end) getAssetTagAssetEntries
(long tagId, int start, int end, OrderByComparator<AssetEntry> orderByComparator) int
getAssetTagAssetEntriesCount
(long tagId) long[]
getAssetTagPrimaryKeys
(long entryId) Returns the tagIds of the asset tags associated with the asset entry.getCompanyEntries
(long companyId, int start, int end) int
getCompanyEntriesCount
(long companyId) getEntries
(long[] groupIds, long[] classNameIds, long[] classTypeIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator, int start, int end, String orderByCol1, String orderByCol2, String orderByType1, String orderByType2) getEntries
(long[] groupIds, long[] classNameIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator, int start, int end, String orderByCol1, String orderByCol2, String orderByType1, String orderByType2) getEntries
(AssetEntryQuery entryQuery) int
getEntriesCount
(long[] groupIds, long[] classNameIds, long[] classTypeIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator) int
getEntriesCount
(long[] groupIds, long[] classNameIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator) int
getEntriesCount
(AssetEntryQuery entryQuery) getEntry
(long entryId) double
getEntryPriority
(long classNameId, long classPK) double
getEntryPriority
(String className, long classPK) getGroupEntries
(long groupId) Returns the OSGi service identifier.getPersistedModel
(Serializable primaryKeyObj) getTopViewedEntries
(String[] className, boolean asc, int start, int end) getTopViewedEntries
(String className, boolean asc, int start, int end) boolean
hasAssetTagAssetEntries
(long tagId) boolean
hasAssetTagAssetEntry
(long tagId, long entryId) incrementViewCounter
(long companyId, long userId, String className, long classPK) void
incrementViewCounter
(long companyId, long userId, String className, long classPK, int increment) void
incrementViewCounter
(long userId, AssetEntry assetEntry) void
reindex
(List<AssetEntry> entries) search
(long companyId, long[] groupIds, long userId, long[] classNameIds, long classTypeId, String keywords, boolean showNonindexable, int[] statuses, int start, int end, Sort sort) search
(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int[] statuses, int start, int end) search
(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int[] statuses, int start, int end, Sort sort) search
(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int status, int start, int end) search
(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, int status, int start, int end) search
(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int[] statuses, boolean andSearch, int start, int end) search
(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int status, boolean andSearch, int start, int end) search
(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, int status, boolean andSearch, int start, int end) search
(long companyId, long[] groupIds, long userId, String className, String keywords, int status, int start, int end) search
(long companyId, long[] groupIds, long userId, String className, String userName, String title, String description, String assetCategoryIds, String assetTagNames, int status, boolean andSearch, int start, int end) long
searchCount
(long companyId, long[] groupIds, long userId, long[] classNameIds, long classTypeId, String keywords, boolean showNonindexable, int[] statuses) long
searchCount
(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int[] statuses) long
searchCount
(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, String assetCategoryIds, String assetTagNames, boolean showInvisible, boolean showNonindexable, int[] statuses, boolean andSearch) long
searchCount
(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showInvisible, boolean showNonindexable, int[] statuses, boolean andSearch) long
searchCount
(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int[] statuses, boolean andSearch) void
setAssetTagAssetEntries
(long tagId, long[] entryIds) updateAssetEntry
(AssetEntry assetEntry) Updates the asset entry in the database or adds it if it does not yet exist.updateEntry
(long userId, long groupId, String className, long classPK, long[] categoryIds, String[] tagNames) updateEntry
(long userId, 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) updateEntry
(long userId, 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, ServiceContext serviceContext) updateEntry
(String className, long classPK, Date publishDate, Date expirationDate, boolean listable, boolean visible) updateVisible
(AssetEntry entry, boolean visible) updateVisible
(String className, long classPK, boolean visible) <R,
E extends Throwable>
RupdateWithUnsafeFunction
(com.liferay.petra.function.UnsafeFunction<CTPersistence<AssetEntry>, R, E> updateUnsafeFunction) void
void
validate
(long groupId, String className, long classPK, long classTypePK, long[] categoryIds, String[] tagNames) Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel, getBasePersistence
-
Method Details
-
addAssetEntry
Adds the asset entry to the database. Also notifies the appropriate model listeners.Important: Inspect AssetEntryLocalServiceImpl 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:
assetEntry
- the asset entry- Returns:
- the asset entry that was added
-
addAssetTagAssetEntries
-
addAssetTagAssetEntries
boolean addAssetTagAssetEntries(long tagId, long[] entryIds) -
addAssetTagAssetEntry
-
addAssetTagAssetEntry
boolean addAssetTagAssetEntry(long tagId, long entryId) -
clearAssetTagAssetEntries
void clearAssetTagAssetEntries(long tagId) -
createAssetEntry
Creates a new asset entry with the primary key. Does not add the asset entry to the database.- Parameters:
entryId
- the primary key for the new asset entry- Returns:
- the new asset entry
-
createPersistedModel
- Specified by:
createPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
deleteAssetEntry
Deletes the asset entry from the database. Also notifies the appropriate model listeners.Important: Inspect AssetEntryLocalServiceImpl 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:
assetEntry
- the asset entry- Returns:
- the asset entry that was removed
-
deleteAssetEntry
Deletes the asset entry with the primary key from the database. Also notifies the appropriate model listeners.Important: Inspect AssetEntryLocalServiceImpl 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:
entryId
- the primary key of the asset entry- Returns:
- the asset entry that was removed
- Throws:
PortalException
- if a asset entry with the primary key could not be found
-
deleteAssetTagAssetEntries
-
deleteAssetTagAssetEntries
void deleteAssetTagAssetEntries(long tagId, long[] entryIds) -
deleteAssetTagAssetEntry
-
deleteAssetTagAssetEntry
void deleteAssetTagAssetEntry(long tagId, long entryId) -
deleteEntries
- Throws:
PortalException
-
deleteEntry
- Throws:
PortalException
-
deleteEntry
- Throws:
PortalException
-
deleteEntry
- Throws:
PortalException
-
deleteGroupEntries
- Throws:
PortalException
-
deletePersistedModel
- Specified by:
deletePersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
dslQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQuery
in interfacePersistedModelLocalService
-
dslQueryCount
@Transactional(propagation=SUPPORTS, readOnly=true) int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCount
in interfacePersistedModelLocalService
-
dynamicQuery
-
dynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> 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
@Transactional(propagation=SUPPORTS, readOnly=true) <T> List<T> dynamicQuery(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.portlet.asset.model.impl.AssetEntryModelImpl
.- 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(DynamicQuery dynamicQuery, int start, int end, 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.portlet.asset.model.impl.AssetEntryModelImpl
.- 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(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(DynamicQuery dynamicQuery, 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
-
fetchAssetEntry
-
fetchEntry
-
fetchEntry
@Transactional(propagation=SUPPORTS, readOnly=true) AssetEntry fetchEntry(long classNameId, long classPK) -
fetchEntry
@Transactional(propagation=SUPPORTS, readOnly=true) AssetEntry fetchEntry(long groupId, String classUuid) -
fetchEntry
@Transactional(propagation=SUPPORTS, readOnly=true) AssetEntry fetchEntry(String className, long classPK) -
getActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) ActionableDynamicQuery getActionableDynamicQuery() -
getAssetEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetEntry> getAssetEntries(int start, int end) Returns a range of all the asset 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.portlet.asset.model.impl.AssetEntryModelImpl
.- Parameters:
start
- the lower bound of the range of asset entriesend
- the upper bound of the range of asset entries (not inclusive)- Returns:
- the range of asset entries
-
getAssetEntriesCount
Returns the number of asset entries.- Returns:
- the number of asset entries
-
getAssetEntry
@Transactional(propagation=SUPPORTS, readOnly=true) AssetEntry getAssetEntry(long entryId) throws PortalException Returns the asset entry with the primary key.- Parameters:
entryId
- the primary key of the asset entry- Returns:
- the asset entry
- Throws:
PortalException
- if a asset entry with the primary key could not be found
-
getAssetTagAssetEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetEntry> getAssetTagAssetEntries(long tagId) -
getAssetTagAssetEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetEntry> getAssetTagAssetEntries(long tagId, int start, int end) -
getAssetTagAssetEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetEntry> getAssetTagAssetEntries(long tagId, int start, int end, OrderByComparator<AssetEntry> orderByComparator) -
getAssetTagAssetEntriesCount
-
getAssetTagPrimaryKeys
Returns the tagIds of the asset tags associated with the asset entry.- Parameters:
entryId
- the entryId of the asset entry- Returns:
- long[] the tagIds of asset tags associated with the asset entry
-
getCompanyEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetEntry> getCompanyEntries(long companyId, int start, int end) -
getCompanyEntriesCount
-
getEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetEntry> getEntries(AssetEntryQuery entryQuery) -
getEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetEntry> getEntries(long[] groupIds, long[] classNameIds, long[] classTypeIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator, int start, int end, String orderByCol1, String orderByCol2, String orderByType1, String orderByType2) -
getEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetEntry> getEntries(long[] groupIds, long[] classNameIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator, int start, int end, String orderByCol1, String orderByCol2, String orderByType1, String orderByType2) -
getEntriesCount
-
getEntriesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getEntriesCount(long[] groupIds, long[] classNameIds, long[] classTypeIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator) -
getEntriesCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getEntriesCount(long[] groupIds, long[] classNameIds, String keywords, String userName, String title, String description, Boolean listable, boolean advancedSearch, boolean andOperator) -
getEntry
@Transactional(propagation=SUPPORTS, readOnly=true) AssetEntry getEntry(long entryId) throws PortalException - Throws:
PortalException
-
getEntry
@Transactional(propagation=SUPPORTS, readOnly=true) AssetEntry getEntry(long groupId, String classUuid) throws PortalException - Throws:
PortalException
-
getEntry
@Transactional(propagation=SUPPORTS, readOnly=true) AssetEntry getEntry(String className, long classPK) throws PortalException - Throws:
PortalException
-
getEntryPriority
@Transactional(propagation=SUPPORTS, readOnly=true) double getEntryPriority(long classNameId, long classPK) -
getEntryPriority
@Transactional(propagation=SUPPORTS, readOnly=true) double getEntryPriority(String className, long classPK) -
getGroupEntries
-
getIndexableActionableDynamicQuery
@Transactional(propagation=SUPPORTS, readOnly=true) IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() -
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPersistedModel
@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException - Specified by:
getPersistedModel
in interfacePersistedModelLocalService
- Throws:
PortalException
-
getTopViewedEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetEntry> getTopViewedEntries(String className, boolean asc, int start, int end) -
getTopViewedEntries
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetEntry> getTopViewedEntries(String[] className, boolean asc, int start, int end) -
hasAssetTagAssetEntries
-
hasAssetTagAssetEntry
@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasAssetTagAssetEntry(long tagId, long entryId) -
incrementViewCounter
- Throws:
PortalException
-
incrementViewCounter
@Transactional(propagation=SUPPORTS, readOnly=true) AssetEntry incrementViewCounter(long companyId, long userId, String className, long classPK) throws PortalException - Throws:
PortalException
-
incrementViewCounter
@Transactional(enabled=false) void incrementViewCounter(long companyId, long userId, String className, long classPK, int increment) -
reindex
@Transactional(propagation=SUPPORTS, readOnly=true) void reindex(List<AssetEntry> entries) throws PortalException - Throws:
PortalException
-
search
@Transactional(propagation=SUPPORTS, readOnly=true) Hits search(long companyId, long[] groupIds, long userId, long[] classNameIds, long classTypeId, String keywords, boolean showNonindexable, int[] statuses, int start, int end, Sort sort) -
search
@Transactional(propagation=SUPPORTS, readOnly=true) Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int status, int start, int end) -
search
@Transactional(propagation=SUPPORTS, readOnly=true) Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int[] statuses, int start, int end) -
search
@Transactional(propagation=SUPPORTS, readOnly=true) Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int[] statuses, int start, int end, Sort sort) -
search
@Transactional(propagation=SUPPORTS, readOnly=true) Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, int status, int start, int end) -
search
@Transactional(propagation=SUPPORTS, readOnly=true) Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int status, boolean andSearch, int start, int end) -
search
@Transactional(propagation=SUPPORTS, readOnly=true) Hits search(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int[] statuses, boolean andSearch, int start, int end) -
search
-
search
@Transactional(propagation=SUPPORTS, readOnly=true) Hits search(long companyId, long[] groupIds, long userId, String className, String keywords, int status, int start, int end) -
search
-
searchCount
@Transactional(propagation=SUPPORTS, readOnly=true) long searchCount(long companyId, long[] groupIds, long userId, long[] classNameIds, long classTypeId, String keywords, boolean showNonindexable, int[] statuses) -
searchCount
@Transactional(propagation=SUPPORTS, readOnly=true) long searchCount(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, boolean showNonindexable, int[] statuses) -
searchCount
@Transactional(propagation=SUPPORTS, readOnly=true) long searchCount(long companyId, long[] groupIds, long userId, String className, long classTypeId, String keywords, String assetCategoryIds, String assetTagNames, boolean showInvisible, boolean showNonindexable, int[] statuses, boolean andSearch) -
searchCount
@Transactional(propagation=SUPPORTS, readOnly=true) long searchCount(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showInvisible, boolean showNonindexable, int[] statuses, boolean andSearch) -
searchCount
@Transactional(propagation=SUPPORTS, readOnly=true) long searchCount(long companyId, long[] groupIds, long userId, String className, long classTypeId, String userName, String title, String description, String assetCategoryIds, String assetTagNames, boolean showNonindexable, int[] statuses, boolean andSearch) -
setAssetTagAssetEntries
void setAssetTagAssetEntries(long tagId, long[] entryIds) -
updateAssetEntry
Updates the asset entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.Important: Inspect AssetEntryLocalServiceImpl 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:
assetEntry
- the asset entry- Returns:
- the asset entry that was updated
-
updateEntry
AssetEntry updateEntry(long userId, 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 PortalException - Throws:
PortalException
-
updateEntry
AssetEntry updateEntry(long userId, 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, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
updateEntry
AssetEntry updateEntry(long userId, long groupId, String className, long classPK, long[] categoryIds, String[] tagNames) throws PortalException - Throws:
PortalException
-
updateEntry
AssetEntry updateEntry(String className, long classPK, Date publishDate, Date expirationDate, boolean listable, boolean visible) throws PortalException - Throws:
PortalException
-
updateVisible
- Throws:
PortalException
-
updateVisible
- Throws:
PortalException
-
validate
void validate(long groupId, String className, long classPK, long classTypePK, long[] categoryIds, String[] tagNames) throws PortalException - Throws:
PortalException
-
validate
void validate(long groupId, String className, long classTypePK, long[] categoryIds, String[] tagNames) throws PortalException - Throws:
PortalException
-
getCTPersistence
- Specified by:
getCTPersistence
in interfaceCTService<AssetEntry>
-
getModelClass
- Specified by:
getModelClass
in interfaceCTService<AssetEntry>
-
updateWithUnsafeFunction
@Transactional(rollbackFor=java.lang.Throwable.class) <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<AssetEntry>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunction
in interfaceCTService<AssetEntry>
- Throws:
E extends Throwable
-