Class AssetTagLocalServiceWrapper
- All Implemented Interfaces:
AssetTagLocalService,BaseLocalService,CTService<AssetTag>,PersistedModelLocalService,ServiceWrapper<AssetTagLocalService>
AssetTagLocalService.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAssetEntryAssetTag(long entryId, long tagId) booleanaddAssetEntryAssetTag(long entryId, AssetTag assetTag) booleanaddAssetEntryAssetTags(long entryId, long[] tagIds) booleanaddAssetEntryAssetTags(long entryId, List<AssetTag> assetTags) addAssetTag(AssetTag assetTag) Adds the asset tag to the database.addTag(String externalReferenceCode, long userId, long groupId, String name, ServiceContext serviceContext) Adds an asset tag.Returns the asset tags matching the group and names, creating new asset tags matching the names if the group doesn't already have them.Returns the asset tags matching the group and names, creating new asset tags matching the names if the group doesn't already have them.voidclearAssetEntryAssetTags(long entryId) createAssetTag(long tagId) Creates a new asset tag with the primary key.createPersistedModel(Serializable primaryKeyObj) decrementAssetCount(long tagId, long classNameId) Decrements the number of assets to which the asset tag has been applied.voiddeleteAssetEntryAssetTag(long entryId, long tagId) voiddeleteAssetEntryAssetTag(long entryId, AssetTag assetTag) voiddeleteAssetEntryAssetTags(long entryId, long[] tagIds) voiddeleteAssetEntryAssetTags(long entryId, List<AssetTag> assetTags) deleteAssetTag(long tagId) Deletes the asset tag with the primary key from the database.deleteAssetTag(AssetTag assetTag) Deletes the asset tag from the database.voiddeleteGroupTags(long groupId) Deletes all asset tags in the group.deletePersistedModel(PersistedModel persistedModel) voiddeleteTag(long tagId) Deletes the asset tag.voidDeletes the asset tag.<T> TdslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) intdslQueryCount(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.longdynamicQueryCount(DynamicQuery dynamicQuery) Returns the number of rows matching the dynamic query.longdynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) Returns the number of rows matching the dynamic query.fetchAssetTag(long tagId) fetchAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) fetchAssetTagByUuidAndGroupId(String uuid, long groupId) Returns the asset tag matching the UUID and group.Returns the asset tag with the name in the group.getAssetEntryAssetTags(long entryId) getAssetEntryAssetTags(long entryId, int start, int end) getAssetEntryAssetTags(long entryId, int start, int end, OrderByComparator<AssetTag> orderByComparator) intgetAssetEntryAssetTagsCount(long entryId) long[]getAssetEntryPrimaryKeys(long tagId) Returns the entryIds of the asset entries associated with the asset tag.getAssetTag(long tagId) Returns the asset tag with the primary key.getAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) getAssetTagByUuidAndGroupId(String uuid, long groupId) Returns the asset tag matching the UUID and group.getAssetTags(int start, int end) Returns a range of all the asset tags.getAssetTagsByUuidAndCompanyId(String uuid, long companyId) Returns all the asset tags matching the UUID and company.getAssetTagsByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns a range of asset tags matching the UUID and company.intReturns the number of asset tags.getEntryTags(long entryId) Returns the asset tags of the asset entry.getExportActionableDynamicQuery(PortletDataContext portletDataContext) getGroupsTags(long[] groupIds) Returns the asset tags in the groups.getGroupTags(long groupId) Returns the asset tags in the group.getGroupTags(long groupId, int start, int end) Returns a range of all the asset tags in the group.getGroupTags(long groupId, int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns a range of all the asset tags in the group.intgetGroupTagsCount(long groupId) Returns the number of asset tags in the group.Returns the OSGi service identifier.getPersistedModel(Serializable primaryKeyObj) getTag(long tagId) Returns the asset tag with the primary key.Returns the asset tag with the name in the group.long[]Returns the primary keys of the asset tags with the name in the groups.long[]Returns the primary keys of the asset tags with the names in the groups.long[]Returns the primary keys of the asset tags with the names in the group.long[]Returns the primary keys of the asset tags with the names.String[]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 entitygetTags()Returns all the asset tags.getTags(long classNameId, long classPK) Returns the asset tags of the entity.Returns the asset tags of the entity.intgetTagsSize(long groupId, long classNameId, String name) booleanhasAssetEntryAssetTag(long entryId, long tagId) booleanhasAssetEntryAssetTags(long entryId) booleanReturnstrueif the group contains an asset tag with the name.incrementAssetCount(long tagId, long classNameId) Increments the number of assets to which the asset tag has been applied.voidmergeTags(long fromTagId, long toTagId) Replaces all occurrences of the first asset tag with the second asset tag and deletes the first asset tag.Returns the asset tags in the groups whose names match the pattern.Returns the asset tags in the group whose names match the pattern.searchTags(long[] groupIds, String name, int start, int end, Sort sort) voidsetAssetEntryAssetTags(long entryId, long[] tagIds) voidsetWrappedService(AssetTagLocalService assetTagLocalService) voidsubscribeTag(long userId, long groupId, long tagId) voidunsubscribeTag(long userId, long tagId) updateAssetTag(AssetTag assetTag) Updates the asset tag in the database or adds it if it does not yet exist.updateTag(String externalReferenceCode, long userId, long tagId, String name, ServiceContext serviceContext) <R,E extends Throwable>
RupdateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<AssetTag>, R, E> updateUnsafeFunction) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
AssetTagLocalServiceWrapper
public AssetTagLocalServiceWrapper() -
AssetTagLocalServiceWrapper
-
-
Method Details
-
addAssetEntryAssetTag
- Specified by:
addAssetEntryAssetTagin interfaceAssetTagLocalService
-
addAssetEntryAssetTag
public boolean addAssetEntryAssetTag(long entryId, long tagId) - Specified by:
addAssetEntryAssetTagin interfaceAssetTagLocalService
-
addAssetEntryAssetTags
- Specified by:
addAssetEntryAssetTagsin interfaceAssetTagLocalService
-
addAssetEntryAssetTags
public boolean addAssetEntryAssetTags(long entryId, long[] tagIds) - Specified by:
addAssetEntryAssetTagsin interfaceAssetTagLocalService
-
addAssetTag
Adds the asset tag to the database. Also notifies the appropriate model listeners.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.
- Specified by:
addAssetTagin interfaceAssetTagLocalService- Parameters:
assetTag- the asset tag- Returns:
- the asset tag that was added
-
addTag
public AssetTag addTag(String externalReferenceCode, long userId, long groupId, String name, ServiceContext serviceContext) throws PortalException Adds an asset tag.- Specified by:
addTagin interfaceAssetTagLocalService- Parameters:
externalReferenceCode-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 applied- Returns:
- the asset tag that was added
- Throws:
PortalException
-
checkTags
Returns the asset tags matching the group and names, creating new asset tags matching the names if the group doesn't already have them.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.
- Specified by:
checkTagsin interfaceAssetTagLocalService- Parameters:
userId- the primary key of the user checking the asset tagsgroup- the group in which to check the asset tagsnames- the asset tag names- Returns:
- the asset tags matching the group and names and new asset tags matching the names that don't already exist in the group
- Throws:
PortalException
-
checkTags
Returns the asset tags matching the group and names, creating new asset tags matching the names if the group doesn't already have them.- Specified by:
checkTagsin interfaceAssetTagLocalService- Parameters:
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 names- Returns:
- the asset tags matching the group and names and new asset tags matching the names that don't already exist in the group
- Throws:
PortalException
-
clearAssetEntryAssetTags
public void clearAssetEntryAssetTags(long entryId) - Specified by:
clearAssetEntryAssetTagsin interfaceAssetTagLocalService
-
createAssetTag
Creates a new asset tag with the primary key. Does not add the asset tag to the database.- Specified by:
createAssetTagin interfaceAssetTagLocalService- Parameters:
tagId- the primary key for the new asset tag- Returns:
- the new asset tag
-
createPersistedModel
- Specified by:
createPersistedModelin interfaceAssetTagLocalService- Specified by:
createPersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
decrementAssetCount
Decrements the number of assets to which the asset tag has been applied.- Specified by:
decrementAssetCountin interfaceAssetTagLocalService- Parameters:
tagId- the primary key of the asset tagclassNameId- the class name ID of the entity to which the asset tag had been applied- Returns:
- the asset tag
- Throws:
PortalException
-
deleteAssetEntryAssetTag
- Specified by:
deleteAssetEntryAssetTagin interfaceAssetTagLocalService
-
deleteAssetEntryAssetTag
public void deleteAssetEntryAssetTag(long entryId, long tagId) - Specified by:
deleteAssetEntryAssetTagin interfaceAssetTagLocalService
-
deleteAssetEntryAssetTags
- Specified by:
deleteAssetEntryAssetTagsin interfaceAssetTagLocalService
-
deleteAssetEntryAssetTags
public void deleteAssetEntryAssetTags(long entryId, long[] tagIds) - Specified by:
deleteAssetEntryAssetTagsin interfaceAssetTagLocalService
-
deleteAssetTag
Deletes the asset tag from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteAssetTagin interfaceAssetTagLocalService- Parameters:
assetTag- the asset tag- Returns:
- the asset tag that was removed
-
deleteAssetTag
Deletes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.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.
- Specified by:
deleteAssetTagin interfaceAssetTagLocalService- Parameters:
tagId- the primary key of the asset tag- Returns:
- the asset tag that was removed
- Throws:
PortalException- if a asset tag with the primary key could not be foundPortalException
-
deleteGroupTags
Deletes all asset tags in the group.- Specified by:
deleteGroupTagsin interfaceAssetTagLocalService- Parameters:
groupId- the primary key of the group in which to delete all asset tags- Throws:
PortalException
-
deletePersistedModel
- Specified by:
deletePersistedModelin interfaceAssetTagLocalService- Specified by:
deletePersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
deleteTag
Deletes the asset tag.- Specified by:
deleteTagin interfaceAssetTagLocalService- Parameters:
tag- the asset tag to be deleted- Throws:
PortalException
-
deleteTag
Deletes the asset tag.- Specified by:
deleteTagin interfaceAssetTagLocalService- Parameters:
tagId- the primary key of the asset tag- Throws:
PortalException
-
dslQuery
public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryin interfaceAssetTagLocalService- Specified by:
dslQueryin interfacePersistedModelLocalService
-
dslQueryCount
public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) - Specified by:
dslQueryCountin interfaceAssetTagLocalService- Specified by:
dslQueryCountin interfacePersistedModelLocalService
-
dynamicQuery
- Specified by:
dynamicQueryin interfaceAssetTagLocalService
-
dynamicQuery
Performs a dynamic query on the database and returns the matching rows.- Specified by:
dynamicQueryin interfaceAssetTagLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the matching rows
-
dynamicQuery
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.portlet.asset.model.impl.AssetTagModelImpl.- Specified by:
dynamicQueryin interfaceAssetTagLocalService- 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 <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 - 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.portlet.asset.model.impl.AssetTagModelImpl.- Specified by:
dynamicQueryin interfaceAssetTagLocalService- 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
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceAssetTagLocalService- Parameters:
dynamicQuery- the dynamic query- Returns:
- the number of rows matching the dynamic query
-
dynamicQueryCount
Returns the number of rows matching the dynamic query.- Specified by:
dynamicQueryCountin interfaceAssetTagLocalService- Parameters:
dynamicQuery- the dynamic queryprojection- the projection to apply to the query- Returns:
- the number of rows matching the dynamic query
-
fetchAssetTag
- Specified by:
fetchAssetTagin interfaceAssetTagLocalService
-
fetchAssetTagByExternalReferenceCode
- Specified by:
fetchAssetTagByExternalReferenceCodein interfaceAssetTagLocalService
-
fetchAssetTagByUuidAndGroupId
Returns the asset tag matching the UUID and group.- Specified by:
fetchAssetTagByUuidAndGroupIdin interfaceAssetTagLocalService- Parameters:
uuid- the asset tag's UUIDgroupId- the primary key of the group- Returns:
- the matching asset tag, or
nullif a matching asset tag could not be found
-
fetchTag
Returns the asset tag with the name in the group.- Specified by:
fetchTagin interfaceAssetTagLocalService- Parameters:
groupId- the primary key of the groupname- the asset tag's name- Returns:
- the asset tag with the name in the group or
nullif it could not be found
-
getActionableDynamicQuery
- Specified by:
getActionableDynamicQueryin interfaceAssetTagLocalService
-
getAssetEntryAssetTags
- Specified by:
getAssetEntryAssetTagsin interfaceAssetTagLocalService
-
getAssetEntryAssetTags
- Specified by:
getAssetEntryAssetTagsin interfaceAssetTagLocalService
-
getAssetEntryAssetTags
public List<AssetTag> getAssetEntryAssetTags(long entryId, int start, int end, OrderByComparator<AssetTag> orderByComparator) - Specified by:
getAssetEntryAssetTagsin interfaceAssetTagLocalService
-
getAssetEntryAssetTagsCount
public int getAssetEntryAssetTagsCount(long entryId) - Specified by:
getAssetEntryAssetTagsCountin interfaceAssetTagLocalService
-
getAssetEntryPrimaryKeys
public long[] getAssetEntryPrimaryKeys(long tagId) Returns the entryIds of the asset entries associated with the asset tag.- Specified by:
getAssetEntryPrimaryKeysin interfaceAssetTagLocalService- Parameters:
tagId- the tagId of the asset tag- Returns:
- long[] the entryIds of asset entries associated with the asset tag
-
getAssetTag
Returns the asset tag with the primary key.- Specified by:
getAssetTagin interfaceAssetTagLocalService- Parameters:
tagId- the primary key of the asset tag- Returns:
- the asset tag
- Throws:
PortalException- if a asset tag with the primary key could not be foundPortalException
-
getAssetTagByExternalReferenceCode
public AssetTag getAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Specified by:
getAssetTagByExternalReferenceCodein interfaceAssetTagLocalService- Throws:
PortalException
-
getAssetTagByUuidAndGroupId
Returns the asset tag matching the UUID and group.- Specified by:
getAssetTagByUuidAndGroupIdin interfaceAssetTagLocalService- Parameters:
uuid- the asset tag's UUIDgroupId- the primary key of the group- Returns:
- the matching asset tag
- Throws:
PortalException- if a matching asset tag could not be foundPortalException
-
getAssetTags
Returns a range of all the asset tags.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.portlet.asset.model.impl.AssetTagModelImpl.- Specified by:
getAssetTagsin interfaceAssetTagLocalService- Parameters:
start- the lower bound of the range of asset tagsend- the upper bound of the range of asset tags (not inclusive)- Returns:
- the range of asset tags
-
getAssetTagsByUuidAndCompanyId
Returns all the asset tags matching the UUID and company.- Specified by:
getAssetTagsByUuidAndCompanyIdin interfaceAssetTagLocalService- Parameters:
uuid- the UUID of the asset tagscompanyId- the primary key of the company- Returns:
- the matching asset tags, or an empty list if no matches were found
-
getAssetTagsByUuidAndCompanyId
public 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.- Specified by:
getAssetTagsByUuidAndCompanyIdin interfaceAssetTagLocalService- Parameters:
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 (optionallynull)- Returns:
- the range of matching asset tags, or an empty list if no matches were found
-
getAssetTagsCount
public int getAssetTagsCount()Returns the number of asset tags.- Specified by:
getAssetTagsCountin interfaceAssetTagLocalService- Returns:
- the number of asset tags
-
getEntryTags
Returns the asset tags of the asset entry.- Specified by:
getEntryTagsin interfaceAssetTagLocalService- Parameters:
entryId- the primary key of the asset entry- Returns:
- the asset tags of the asset entry
-
getExportActionableDynamicQuery
public ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext) - Specified by:
getExportActionableDynamicQueryin interfaceAssetTagLocalService
-
getGroupsTags
Returns the asset tags in the groups.- Specified by:
getGroupsTagsin interfaceAssetTagLocalService- Parameters:
groupIds- the primary keys of the groups- Returns:
- the asset tags in the groups
-
getGroupTags
Returns the asset tags in the group.- Specified by:
getGroupTagsin interfaceAssetTagLocalService- Parameters:
groupId- the primary key of the group- Returns:
- the asset tags in the group
-
getGroupTags
Returns a range of all the asset tags in the group.- Specified by:
getGroupTagsin interfaceAssetTagLocalService- Parameters:
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)- Returns:
- the range of matching asset tags
-
getGroupTags
public List<AssetTag> getGroupTags(long groupId, int start, int end, OrderByComparator<AssetTag> orderByComparator) Returns a range of all the asset tags in the group.- Specified by:
getGroupTagsin interfaceAssetTagLocalService- Parameters:
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)orderByComparator- the comparator to order the asset tags (optionallynull)- Returns:
- the range of matching asset tags
-
getGroupTagsCount
public int getGroupTagsCount(long groupId) Returns the number of asset tags in the group.- Specified by:
getGroupTagsCountin interfaceAssetTagLocalService- Parameters:
groupId- the primary key of the group- Returns:
- the number of asset tags in the group
-
getIndexableActionableDynamicQuery
- Specified by:
getIndexableActionableDynamicQueryin interfaceAssetTagLocalService
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifierin interfaceAssetTagLocalService- Returns:
- the OSGi service identifier
-
getPersistedModel
- Specified by:
getPersistedModelin interfaceAssetTagLocalService- Specified by:
getPersistedModelin interfacePersistedModelLocalService- Throws:
PortalExceptionPortalException
-
getTag
Returns the asset tag with the primary key.- Specified by:
getTagin interfaceAssetTagLocalService- Parameters:
tagId- the primary key of the asset tag- Returns:
- the asset tag with the primary key
- Throws:
PortalException
-
getTag
Returns the asset tag with the name in the group.- Specified by:
getTagin interfaceAssetTagLocalService- Parameters:
groupId- the primary key of the groupname- the name of the asset tag- Returns:
- the asset tag with the name in the group
- Throws:
PortalException
-
getTagIds
Returns the primary keys of the asset tags with the names in the group.- Specified by:
getTagIdsin interfaceAssetTagLocalService- Parameters:
groupId- the primary key of the groupnames- the names of the asset tags- Returns:
- the primary keys of the asset tags with the names in the group
-
getTagIds
Returns the primary keys of the asset tags with the name in the groups.- Specified by:
getTagIdsin interfaceAssetTagLocalService- Parameters:
groupIds- the primary keys of the groupsname- the name of the asset tags- Returns:
- the primary keys of the asset tags with the name in the groups
-
getTagIds
Returns the primary keys of the asset tags with the names in the groups.- Specified by:
getTagIdsin interfaceAssetTagLocalService- Parameters:
groupIds- the primary keys of the groupsnames- the names of the asset tags- Returns:
- the primary keys of the asset tags with the names in the groups
-
getTagIds
Returns the primary keys of the asset tags with the names.- Specified by:
getTagIdsin interfaceAssetTagLocalService- Parameters:
name- the name of the asset tags- Returns:
- the primary keys of the asset tags with the names
-
getTagNames
Returns the names of all the asset tags.- Specified by:
getTagNamesin interfaceAssetTagLocalService- Returns:
- the names of all the asset tags
-
getTagNames
Returns the names of the asset tags of the entity.- Specified by:
getTagNamesin interfaceAssetTagLocalService- Parameters:
classNameId- the class name ID of the entityclassPK- the primary key of the entity- Returns:
- the names of the asset tags of the entity
-
getTagNames
Returns the names of the asset tags of the entity- Specified by:
getTagNamesin interfaceAssetTagLocalService- Parameters:
className- the class name of the entityclassPK- the primary key of the entity- Returns:
- the names of the asset tags of the entity
-
getTags
Returns all the asset tags.- Specified by:
getTagsin interfaceAssetTagLocalService- Returns:
- the asset tags
-
getTags
Returns the asset tags of the entity.- Specified by:
getTagsin interfaceAssetTagLocalService- Parameters:
classNameId- the class name ID of the entityclassPK- the primary key of the entity- Returns:
- the asset tags of the entity
-
getTags
- Specified by:
getTagsin interfaceAssetTagLocalService
-
getTags
- Specified by:
getTagsin interfaceAssetTagLocalService
-
getTags
Returns the asset tags of the entity.- Specified by:
getTagsin interfaceAssetTagLocalService- Parameters:
className- the class name of the entityclassPK- the primary key of the entity- Returns:
- the asset tags of the entity
-
getTagsSize
- Specified by:
getTagsSizein interfaceAssetTagLocalService
-
hasAssetEntryAssetTag
public boolean hasAssetEntryAssetTag(long entryId, long tagId) - Specified by:
hasAssetEntryAssetTagin interfaceAssetTagLocalService
-
hasAssetEntryAssetTags
public boolean hasAssetEntryAssetTags(long entryId) - Specified by:
hasAssetEntryAssetTagsin interfaceAssetTagLocalService
-
hasTag
Returnstrueif the group contains an asset tag with the name.- Specified by:
hasTagin interfaceAssetTagLocalService- Parameters:
groupId- the primary key of the groupname- the name of the asset tag- Returns:
trueif the group contains an asset tag with the name;falseotherwise.
-
incrementAssetCount
Increments the number of assets to which the asset tag has been applied.- Specified by:
incrementAssetCountin interfaceAssetTagLocalService- Parameters:
tagId- the primary key of the asset tagclassNameId- the class name ID of the entity to which the asset tag is being applied- Returns:
- the asset tag
- Throws:
PortalException
-
mergeTags
Replaces all occurrences of the first asset tag with the second asset tag and deletes the first asset tag.- Specified by:
mergeTagsin interfaceAssetTagLocalService- Parameters:
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 tag- Throws:
PortalException
-
search
Returns the asset tags in the group whose names match the pattern.- Specified by:
searchin interfaceAssetTagLocalService- Parameters:
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)- Returns:
- the asset tags in the group whose names match the pattern
-
search
Returns the asset tags in the groups whose names match the pattern.- Specified by:
searchin interfaceAssetTagLocalService- Parameters:
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)- Returns:
- the asset tags in the groups whose names match the pattern
-
searchTags
public BaseModelSearchResult<AssetTag> searchTags(long[] groupIds, String name, int start, int end, Sort sort) throws PortalException - Specified by:
searchTagsin interfaceAssetTagLocalService- Throws:
PortalException
-
setAssetEntryAssetTags
public void setAssetEntryAssetTags(long entryId, long[] tagIds) - Specified by:
setAssetEntryAssetTagsin interfaceAssetTagLocalService
-
subscribeTag
- Specified by:
subscribeTagin interfaceAssetTagLocalService- Throws:
PortalException
-
unsubscribeTag
- Specified by:
unsubscribeTagin interfaceAssetTagLocalService- Throws:
PortalException
-
updateAssetTag
Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.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.
- Specified by:
updateAssetTagin interfaceAssetTagLocalService- Parameters:
assetTag- the asset tag- Returns:
- the asset tag that was updated
-
updateTag
public AssetTag updateTag(String externalReferenceCode, long userId, long tagId, String name, ServiceContext serviceContext) throws PortalException - Specified by:
updateTagin interfaceAssetTagLocalService- Throws:
PortalException
-
getBasePersistence
- Specified by:
getBasePersistencein interfacePersistedModelLocalService
-
getCTPersistence
- Specified by:
getCTPersistencein interfaceAssetTagLocalService- Specified by:
getCTPersistencein interfaceCTService<AssetTag>
-
getModelClass
- Specified by:
getModelClassin interfaceAssetTagLocalService- Specified by:
getModelClassin interfaceCTService<AssetTag>
-
updateWithUnsafeFunction
public <R,E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<CTPersistence<AssetTag>, R, throws EE> updateUnsafeFunction) - Specified by:
updateWithUnsafeFunctionin interfaceAssetTagLocalService- Specified by:
updateWithUnsafeFunctionin interfaceCTService<AssetTag>- Throws:
E extends Throwable
-
getWrappedService
- Specified by:
getWrappedServicein interfaceServiceWrapper<AssetTagLocalService>
-
setWrappedService
- Specified by:
setWrappedServicein interfaceServiceWrapper<AssetTagLocalService>
-