public class AssetTagLocalServiceWrapper extends Object implements AssetTagLocalService, ServiceWrapper<AssetTagLocalService>
AssetTagLocalService
.AssetTagLocalService
Constructor and Description |
---|
AssetTagLocalServiceWrapper() |
AssetTagLocalServiceWrapper(AssetTagLocalService assetTagLocalService) |
Modifier and Type | Method and Description |
---|---|
void |
addAssetEntryAssetTag(long entryId,
AssetTag assetTag) |
void |
addAssetEntryAssetTag(long entryId,
long tagId) |
void |
addAssetEntryAssetTags(long entryId,
List<AssetTag> assetTags) |
void |
addAssetEntryAssetTags(long entryId,
long[] tagIds) |
AssetTag |
addAssetTag(AssetTag assetTag)
Adds the asset tag to the database.
|
AssetTag |
addTag(long userId,
long groupId,
String name,
ServiceContext serviceContext)
Adds an asset tag.
|
List<AssetTag> |
checkTags(long userId,
Group group,
String[] names)
Returns the asset tags matching the group and names, creating new asset
tags matching the names if the group doesn't already have them.
|
List<AssetTag> |
checkTags(long userId,
long groupId,
String[] names)
Returns the asset tags matching the group and names, creating new asset
tags matching the names if the group doesn't already have them.
|
void |
clearAssetEntryAssetTags(long entryId) |
AssetTag |
createAssetTag(long tagId)
Creates a new asset tag with the primary key.
|
PersistedModel |
createPersistedModel(Serializable primaryKeyObj) |
AssetTag |
decrementAssetCount(long tagId,
long classNameId)
Decrements the number of assets to which the asset tag has been applied.
|
void |
deleteAssetEntryAssetTag(long entryId,
AssetTag assetTag) |
void |
deleteAssetEntryAssetTag(long entryId,
long tagId) |
void |
deleteAssetEntryAssetTags(long entryId,
List<AssetTag> assetTags) |
void |
deleteAssetEntryAssetTags(long entryId,
long[] tagIds) |
AssetTag |
deleteAssetTag(AssetTag assetTag)
Deletes the asset tag from the database.
|
AssetTag |
deleteAssetTag(long tagId)
Deletes the asset tag with the primary key from the database.
|
void |
deleteGroupTags(long groupId)
Deletes all asset tags in the group.
|
PersistedModel |
deletePersistedModel(PersistedModel persistedModel) |
void |
deleteTag(AssetTag tag)
Deletes the asset tag.
|
void |
deleteTag(long tagId)
Deletes the asset tag.
|
<T> T |
dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
int |
dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) |
DynamicQuery |
dynamicQuery() |
<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.
|
AssetTag |
fetchAssetTag(long tagId) |
AssetTag |
fetchAssetTagByUuidAndGroupId(String uuid,
long groupId)
Returns the asset tag matching the UUID and group.
|
AssetTag |
fetchTag(long groupId,
String name)
Returns the asset tag with the name in the group.
|
ActionableDynamicQuery |
getActionableDynamicQuery() |
List<AssetTag> |
getAssetEntryAssetTags(long entryId) |
List<AssetTag> |
getAssetEntryAssetTags(long entryId,
int start,
int end) |
List<AssetTag> |
getAssetEntryAssetTags(long entryId,
int start,
int end,
OrderByComparator<AssetTag> orderByComparator) |
int |
getAssetEntryAssetTagsCount(long entryId) |
long[] |
getAssetEntryPrimaryKeys(long tagId)
Returns the entryIds of the asset entries associated with the asset tag.
|
AssetTag |
getAssetTag(long tagId)
Returns the asset tag with the primary key.
|
AssetTag |
getAssetTagByUuidAndGroupId(String uuid,
long groupId)
Returns the asset tag matching the UUID and group.
|
List<AssetTag> |
getAssetTags(int start,
int end)
Returns a range of all the asset tags.
|
List<AssetTag> |
getAssetTagsByUuidAndCompanyId(String uuid,
long companyId)
Returns all the asset tags matching the UUID and company.
|
List<AssetTag> |
getAssetTagsByUuidAndCompanyId(String uuid,
long companyId,
int start,
int end,
OrderByComparator<AssetTag> orderByComparator)
Returns a range of asset tags matching the UUID and company.
|
int |
getAssetTagsCount()
Returns the number of asset tags.
|
CTPersistence<AssetTag> |
getCTPersistence() |
List<AssetTag> |
getEntryTags(long entryId)
Returns the asset tags of the asset entry.
|
ExportActionableDynamicQuery |
getExportActionableDynamicQuery(PortletDataContext portletDataContext) |
List<AssetTag> |
getGroupsTags(long[] groupIds)
Returns the asset tags in the groups.
|
List<AssetTag> |
getGroupTags(long groupId)
Returns the asset tags in the group.
|
List<AssetTag> |
getGroupTags(long groupId,
int start,
int end)
Returns a range of all the asset tags in the group.
|
int |
getGroupTagsCount(long groupId)
Returns the number of asset tags in the group.
|
IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
Class<AssetTag> |
getModelClass() |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
PersistedModel |
getPersistedModel(Serializable primaryKeyObj) |
List<AssetTag> |
getSocialActivityCounterOffsetTags(long groupId,
String socialActivityCounterName,
int startOffset,
int endOffset) |
List<AssetTag> |
getSocialActivityCounterPeriodTags(long groupId,
String socialActivityCounterName,
int startPeriod,
int endPeriod) |
AssetTag |
getTag(long tagId)
Returns the asset tag with the primary key.
|
AssetTag |
getTag(long groupId,
String name)
Returns the asset tag with the name in the group.
|
long[] |
getTagIds(long[] groupIds,
String name)
Returns the primary keys of the asset tags with the name in the groups.
|
long[] |
getTagIds(long[] groupIds,
String[] names)
Returns the primary keys of the asset tags with the names in the groups.
|
long[] |
getTagIds(long groupId,
String[] names)
Returns the primary keys of the asset tags with the names in the group.
|
long[] |
getTagIds(String name)
Returns the primary keys of the asset tags with the names.
|
String[] |
getTagNames()
Returns the names of all the asset tags.
|
String[] |
getTagNames(long classNameId,
long classPK)
Returns the names of the asset tags of the entity.
|
String[] |
getTagNames(String className,
long classPK)
Returns the names of the asset tags of the entity
|
List<AssetTag> |
getTags()
Returns all the asset tags.
|
List<AssetTag> |
getTags(long classNameId,
long classPK)
Returns the asset tags of the entity.
|
List<AssetTag> |
getTags(long groupId,
long classNameId,
String name) |
List<AssetTag> |
getTags(long groupId,
long classNameId,
String name,
int start,
int end) |
List<AssetTag> |
getTags(String className,
long classPK)
Returns the asset tags of the entity.
|
int |
getTagsSize(long groupId,
long classNameId,
String name) |
int |
getTagsSize(long groupId,
String name) |
AssetTagLocalService |
getWrappedService() |
boolean |
hasAssetEntryAssetTag(long entryId,
long tagId) |
boolean |
hasAssetEntryAssetTags(long entryId) |
boolean |
hasTag(long groupId,
String name)
Returns
true if the group contains an asset tag with the
name. |
AssetTag |
incrementAssetCount(long tagId,
long classNameId)
Increments the number of assets to which the asset tag has been applied.
|
void |
mergeTags(long fromTagId,
long toTagId)
Replaces all occurrences of the first asset tag with the second asset tag
and deletes the first asset tag.
|
List<AssetTag> |
search(long[] groupIds,
String name,
int start,
int end)
Returns the asset tags in the groups whose names match the pattern.
|
List<AssetTag> |
search(long groupId,
String name,
int start,
int end)
Returns the asset tags in the group whose names match the pattern.
|
BaseModelSearchResult<AssetTag> |
searchTags(long[] groupIds,
String name,
int start,
int end,
Sort sort) |
void |
setAssetEntryAssetTags(long entryId,
long[] tagIds) |
void |
setWrappedService(AssetTagLocalService assetTagLocalService) |
void |
subscribeTag(long userId,
long groupId,
long tagId) |
void |
unsubscribeTag(long userId,
long tagId) |
AssetTag |
updateAssetTag(AssetTag assetTag)
Updates the asset tag in the database or adds it if it does not yet exist.
|
AssetTag |
updateTag(long userId,
long tagId,
String name,
ServiceContext serviceContext) |
<R,E extends Throwable> |
updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<AssetTag>,R,E> updateUnsafeFunction) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBasePersistence
public AssetTagLocalServiceWrapper()
public AssetTagLocalServiceWrapper(AssetTagLocalService assetTagLocalService)
public void addAssetEntryAssetTag(long entryId, AssetTag assetTag)
addAssetEntryAssetTag
in interface AssetTagLocalService
public void addAssetEntryAssetTag(long entryId, long tagId)
addAssetEntryAssetTag
in interface AssetTagLocalService
public void addAssetEntryAssetTags(long entryId, List<AssetTag> assetTags)
addAssetEntryAssetTags
in interface AssetTagLocalService
public void addAssetEntryAssetTags(long entryId, long[] tagIds)
addAssetEntryAssetTags
in interface AssetTagLocalService
public AssetTag addAssetTag(AssetTag assetTag)
Important: Inspect AssetTagLocalServiceImpl 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.
addAssetTag
in interface AssetTagLocalService
assetTag
- the asset tagpublic AssetTag addTag(long userId, long groupId, String name, ServiceContext serviceContext) throws PortalException
addTag
in interface AssetTagLocalService
userId
- the primary key of the user adding the asset taggroupId
- the primary key of the group in which the asset tag is to
be addedname
- the asset tag's nameserviceContext
- the service context to be appliedPortalException
public List<AssetTag> checkTags(long userId, Group group, String[] names) throws PortalException
For each name, if an asset tag with the name doesn't already exist in the group, this method creates a new asset tag with the name in the group.
checkTags
in interface AssetTagLocalService
userId
- the primary key of the user checking the asset tagsgroup
- the group in which to check the asset tagsnames
- the asset tag namesPortalException
public List<AssetTag> checkTags(long userId, long groupId, String[] names) throws PortalException
checkTags
in interface AssetTagLocalService
userId
- the primary key of the user checking the asset tagsgroupId
- the primary key of the group in which check the asset
tagsnames
- the asset tag namesPortalException
public void clearAssetEntryAssetTags(long entryId)
clearAssetEntryAssetTags
in interface AssetTagLocalService
public AssetTag createAssetTag(long tagId)
createAssetTag
in interface AssetTagLocalService
tagId
- the primary key for the new asset tagpublic PersistedModel createPersistedModel(Serializable primaryKeyObj) throws PortalException
createPersistedModel
in interface AssetTagLocalService
createPersistedModel
in interface PersistedModelLocalService
PortalException
public AssetTag decrementAssetCount(long tagId, long classNameId) throws PortalException
decrementAssetCount
in interface AssetTagLocalService
tagId
- the primary key of the asset tagclassNameId
- the class name ID of the entity to which the asset
tag had been appliedPortalException
public void deleteAssetEntryAssetTag(long entryId, AssetTag assetTag)
deleteAssetEntryAssetTag
in interface AssetTagLocalService
public void deleteAssetEntryAssetTag(long entryId, long tagId)
deleteAssetEntryAssetTag
in interface AssetTagLocalService
public void deleteAssetEntryAssetTags(long entryId, List<AssetTag> assetTags)
deleteAssetEntryAssetTags
in interface AssetTagLocalService
public void deleteAssetEntryAssetTags(long entryId, long[] tagIds)
deleteAssetEntryAssetTags
in interface AssetTagLocalService
public AssetTag deleteAssetTag(AssetTag assetTag)
Important: Inspect AssetTagLocalServiceImpl 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.
deleteAssetTag
in interface AssetTagLocalService
assetTag
- the asset tagpublic AssetTag deleteAssetTag(long tagId) throws PortalException
Important: Inspect AssetTagLocalServiceImpl 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.
deleteAssetTag
in interface AssetTagLocalService
tagId
- the primary key of the asset tagPortalException
- if a asset tag with the primary key could not be foundpublic void deleteGroupTags(long groupId) throws PortalException
deleteGroupTags
in interface AssetTagLocalService
groupId
- the primary key of the group in which to delete all asset
tagsPortalException
public PersistedModel deletePersistedModel(PersistedModel persistedModel) throws PortalException
deletePersistedModel
in interface AssetTagLocalService
deletePersistedModel
in interface PersistedModelLocalService
PortalException
public void deleteTag(AssetTag tag) throws PortalException
deleteTag
in interface AssetTagLocalService
tag
- the asset tag to be deletedPortalException
public void deleteTag(long tagId) throws PortalException
deleteTag
in interface AssetTagLocalService
tagId
- the primary key of the asset tagPortalException
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQuery
in interface AssetTagLocalService
dslQuery
in interface PersistedModelLocalService
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
dslQueryCount
in interface AssetTagLocalService
dslQueryCount
in interface PersistedModelLocalService
public DynamicQuery dynamicQuery()
dynamicQuery
in interface AssetTagLocalService
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
dynamicQuery
in interface AssetTagLocalService
dynamicQuery
- the dynamic querypublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
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.portlet.asset.model.impl.AssetTagModelImpl
.
dynamicQuery
in interface AssetTagLocalService
dynamicQuery
- the dynamic querystart
- the lower bound of the range of model instancesend
- the upper bound of the range of model instances (not inclusive)public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
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.portlet.asset.model.impl.AssetTagModelImpl
.
dynamicQuery
in interface AssetTagLocalService
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 (optionally null
)public long dynamicQueryCount(DynamicQuery dynamicQuery)
dynamicQueryCount
in interface AssetTagLocalService
dynamicQuery
- the dynamic querypublic long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
dynamicQueryCount
in interface AssetTagLocalService
dynamicQuery
- the dynamic queryprojection
- the projection to apply to the querypublic AssetTag fetchAssetTag(long tagId)
fetchAssetTag
in interface AssetTagLocalService
public AssetTag fetchAssetTagByUuidAndGroupId(String uuid, long groupId)
fetchAssetTagByUuidAndGroupId
in interface AssetTagLocalService
uuid
- the asset tag's UUIDgroupId
- the primary key of the groupnull
if a matching asset tag could not be foundpublic AssetTag fetchTag(long groupId, String name)
fetchTag
in interface AssetTagLocalService
groupId
- the primary key of the groupname
- the asset tag's namenull
if
it could not be foundpublic ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery
in interface AssetTagLocalService
public List<AssetTag> getAssetEntryAssetTags(long entryId)
getAssetEntryAssetTags
in interface AssetTagLocalService
public List<AssetTag> getAssetEntryAssetTags(long entryId, int start, int end)
getAssetEntryAssetTags
in interface AssetTagLocalService
public List<AssetTag> getAssetEntryAssetTags(long entryId, int start, int end, OrderByComparator<AssetTag> orderByComparator)
getAssetEntryAssetTags
in interface AssetTagLocalService
public int getAssetEntryAssetTagsCount(long entryId)
getAssetEntryAssetTagsCount
in interface AssetTagLocalService
public long[] getAssetEntryPrimaryKeys(long tagId)
getAssetEntryPrimaryKeys
in interface AssetTagLocalService
tagId
- the tagId of the asset tagpublic AssetTag getAssetTag(long tagId) throws PortalException
getAssetTag
in interface AssetTagLocalService
tagId
- the primary key of the asset tagPortalException
- if a asset tag with the primary key could not be foundpublic AssetTag getAssetTagByUuidAndGroupId(String uuid, long groupId) throws PortalException
getAssetTagByUuidAndGroupId
in interface AssetTagLocalService
uuid
- the asset tag's UUIDgroupId
- the primary key of the groupPortalException
- if a matching asset tag could not be foundpublic List<AssetTag> getAssetTags(int start, int end)
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.portlet.asset.model.impl.AssetTagModelImpl
.
getAssetTags
in interface AssetTagLocalService
start
- the lower bound of the range of asset tagsend
- the upper bound of the range of asset tags (not inclusive)public List<AssetTag> getAssetTagsByUuidAndCompanyId(String uuid, long companyId)
getAssetTagsByUuidAndCompanyId
in interface AssetTagLocalService
uuid
- the UUID of the asset tagscompanyId
- the primary key of the companypublic List<AssetTag> getAssetTagsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<AssetTag> orderByComparator)
getAssetTagsByUuidAndCompanyId
in interface AssetTagLocalService
uuid
- the UUID of the asset tagscompanyId
- the primary key of the companystart
- the lower bound of the range of asset tagsend
- the upper bound of the range of asset tags (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public int getAssetTagsCount()
getAssetTagsCount
in interface AssetTagLocalService
public List<AssetTag> getEntryTags(long entryId)
getEntryTags
in interface AssetTagLocalService
entryId
- the primary key of the asset entrypublic ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
getExportActionableDynamicQuery
in interface AssetTagLocalService
public List<AssetTag> getGroupsTags(long[] groupIds)
getGroupsTags
in interface AssetTagLocalService
groupIds
- the primary keys of the groupspublic List<AssetTag> getGroupTags(long groupId)
getGroupTags
in interface AssetTagLocalService
groupId
- the primary key of the grouppublic List<AssetTag> getGroupTags(long groupId, int start, int end)
getGroupTags
in interface AssetTagLocalService
groupId
- the primary key of the groupstart
- the lower bound of the range of asset tagsend
- the upper bound of the range of asset tags (not inclusive)public int getGroupTagsCount(long groupId)
getGroupTagsCount
in interface AssetTagLocalService
groupId
- the primary key of the grouppublic IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery
in interface AssetTagLocalService
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface AssetTagLocalService
public PersistedModel getPersistedModel(Serializable primaryKeyObj) throws PortalException
getPersistedModel
in interface AssetTagLocalService
getPersistedModel
in interface PersistedModelLocalService
PortalException
public List<AssetTag> getSocialActivityCounterOffsetTags(long groupId, String socialActivityCounterName, int startOffset, int endOffset)
getSocialActivityCounterOffsetTags
in interface AssetTagLocalService
public List<AssetTag> getSocialActivityCounterPeriodTags(long groupId, String socialActivityCounterName, int startPeriod, int endPeriod)
getSocialActivityCounterPeriodTags
in interface AssetTagLocalService
public AssetTag getTag(long tagId) throws PortalException
getTag
in interface AssetTagLocalService
tagId
- the primary key of the asset tagPortalException
public AssetTag getTag(long groupId, String name) throws PortalException
getTag
in interface AssetTagLocalService
groupId
- the primary key of the groupname
- the name of the asset tagPortalException
public long[] getTagIds(long groupId, String[] names)
getTagIds
in interface AssetTagLocalService
groupId
- the primary key of the groupnames
- the names of the asset tagspublic long[] getTagIds(long[] groupIds, String name)
getTagIds
in interface AssetTagLocalService
groupIds
- the primary keys of the groupsname
- the name of the asset tagspublic long[] getTagIds(long[] groupIds, String[] names)
getTagIds
in interface AssetTagLocalService
groupIds
- the primary keys of the groupsnames
- the names of the asset tagspublic long[] getTagIds(String name)
getTagIds
in interface AssetTagLocalService
name
- the name of the asset tagspublic String[] getTagNames()
getTagNames
in interface AssetTagLocalService
public String[] getTagNames(long classNameId, long classPK)
getTagNames
in interface AssetTagLocalService
classNameId
- the class name ID of the entityclassPK
- the primary key of the entitypublic String[] getTagNames(String className, long classPK)
getTagNames
in interface AssetTagLocalService
className
- the class name of the entityclassPK
- the primary key of the entitypublic List<AssetTag> getTags()
getTags
in interface AssetTagLocalService
public List<AssetTag> getTags(long classNameId, long classPK)
getTags
in interface AssetTagLocalService
classNameId
- the class name ID of the entityclassPK
- the primary key of the entitypublic List<AssetTag> getTags(long groupId, long classNameId, String name)
getTags
in interface AssetTagLocalService
public List<AssetTag> getTags(long groupId, long classNameId, String name, int start, int end)
getTags
in interface AssetTagLocalService
public List<AssetTag> getTags(String className, long classPK)
getTags
in interface AssetTagLocalService
className
- the class name of the entityclassPK
- the primary key of the entitypublic int getTagsSize(long groupId, long classNameId, String name)
getTagsSize
in interface AssetTagLocalService
public int getTagsSize(long groupId, String name)
getTagsSize
in interface AssetTagLocalService
public boolean hasAssetEntryAssetTag(long entryId, long tagId)
hasAssetEntryAssetTag
in interface AssetTagLocalService
public boolean hasAssetEntryAssetTags(long entryId)
hasAssetEntryAssetTags
in interface AssetTagLocalService
public boolean hasTag(long groupId, String name)
true
if the group contains an asset tag with the
name.hasTag
in interface AssetTagLocalService
groupId
- the primary key of the groupname
- the name of the asset tagtrue
if the group contains an asset tag with the
name; false
otherwise.public AssetTag incrementAssetCount(long tagId, long classNameId) throws PortalException
incrementAssetCount
in interface AssetTagLocalService
tagId
- the primary key of the asset tagclassNameId
- the class name ID of the entity to which the asset
tag is being appliedPortalException
public void mergeTags(long fromTagId, long toTagId) throws PortalException
mergeTags
in interface AssetTagLocalService
fromTagId
- the primary key of the asset tag to be replacedtoTagId
- the primary key of the asset tag to apply to the asset
entries of the other asset tagPortalException
public List<AssetTag> search(long groupId, String name, int start, int end)
search
in interface AssetTagLocalService
groupId
- the primary key of the groupname
- the pattern to matchstart
- the lower bound of the range of asset tagsend
- the upper bound of the range of asset tags (not inclusive)public List<AssetTag> search(long[] groupIds, String name, int start, int end)
search
in interface AssetTagLocalService
groupIds
- the primary keys of the groupsname
- the pattern to matchstart
- the lower bound of the range of asset tagsend
- the upper bound of the range of asset tags (not inclusive)public BaseModelSearchResult<AssetTag> searchTags(long[] groupIds, String name, int start, int end, Sort sort) throws PortalException
searchTags
in interface AssetTagLocalService
PortalException
public void setAssetEntryAssetTags(long entryId, long[] tagIds)
setAssetEntryAssetTags
in interface AssetTagLocalService
public void subscribeTag(long userId, long groupId, long tagId) throws PortalException
subscribeTag
in interface AssetTagLocalService
PortalException
public void unsubscribeTag(long userId, long tagId) throws PortalException
unsubscribeTag
in interface AssetTagLocalService
PortalException
public AssetTag updateAssetTag(AssetTag assetTag)
Important: Inspect AssetTagLocalServiceImpl 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.
updateAssetTag
in interface AssetTagLocalService
assetTag
- the asset tagpublic AssetTag updateTag(long userId, long tagId, String name, ServiceContext serviceContext) throws PortalException
updateTag
in interface AssetTagLocalService
PortalException
public CTPersistence<AssetTag> getCTPersistence()
getCTPersistence
in interface AssetTagLocalService
getCTPersistence
in interface CTService<AssetTag>
public Class<AssetTag> getModelClass()
getModelClass
in interface AssetTagLocalService
getModelClass
in interface CTService<AssetTag>
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<AssetTag>,R,E> updateUnsafeFunction) throws E extends Throwable
updateWithUnsafeFunction
in interface AssetTagLocalService
updateWithUnsafeFunction
in interface CTService<AssetTag>
E extends Throwable
public AssetTagLocalService getWrappedService()
getWrappedService
in interface ServiceWrapper<AssetTagLocalService>
public void setWrappedService(AssetTagLocalService assetTagLocalService)
setWrappedService
in interface ServiceWrapper<AssetTagLocalService>