public class AssetTagLocalServiceImpl extends AssetTagLocalServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryPropertyFinder, assetCategoryPropertyLocalService, assetCategoryPropertyPersistence, assetCategoryPropertyService, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagPropertyFinder, assetTagPropertyKeyFinder, assetTagPropertyLocalService, assetTagPropertyPersistence, assetTagPropertyService, assetTagService, assetTagStatsLocalService, assetTagStatsPersistence, assetVocabularyFinder, assetVocabularyLocalService, assetVocabularyPersistence, assetVocabularyService, counterLocalService, groupFinder, groupLocalService, groupPersistence, groupService, persistedModelLocalServiceRegistry, resourceLocalService, userFinder, userLocalService, userPersistence, userService| Constructor and Description |
|---|
AssetTagLocalServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portlet.asset.model.AssetTag |
addTag(long userId,
java.lang.String name,
java.lang.String[] tagProperties,
com.liferay.portal.service.ServiceContext serviceContext)
Adds an asset tag.
|
void |
addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
boolean addGroupPermissions,
boolean addGuestPermissions)
Adds resources for the asset tag.
|
void |
addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions)
Adds resources for the asset tag using the group and guest permissions.
|
java.util.List<com.liferay.portlet.asset.model.AssetTag> |
checkTags(long userId,
com.liferay.portal.model.Group group,
java.lang.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 |
checkTags(long userId,
long groupId,
java.lang.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.
|
com.liferay.portlet.asset.model.AssetTag |
decrementAssetCount(long tagId,
long classNameId)
Decrements the number of assets to which the asset tag has been applied.
|
void |
deleteGroupTags(long groupId)
Deletes all asset tags in the group.
|
void |
deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
Deletes the asset tag.
|
void |
deleteTag(long tagId)
Deletes the asset tag.
|
java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getEntryTags(long entryId)
Returns the asset tags of the asset entry.
|
java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getGroupsTags(long[] groupIds)
Returns the asset tags in the groups.
|
java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getGroupTags(long groupId)
Returns the asset tags in the group.
|
java.util.List<com.liferay.portlet.asset.model.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.
|
java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getSocialActivityCounterOffsetTags(long groupId,
java.lang.String socialActivityCounterName,
int startOffset,
int endOffset) |
java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getSocialActivityCounterPeriodTags(long groupId,
java.lang.String socialActivityCounterName,
int startPeriod,
int endPeriod) |
com.liferay.portlet.asset.model.AssetTag |
getTag(long tagId)
Returns the asset tag with the primary key.
|
com.liferay.portlet.asset.model.AssetTag |
getTag(long groupId,
java.lang.String name)
Returns the asset tag with the name in the group.
|
long[] |
getTagIds(long[] groupIds,
java.lang.String name)
Returns the primary keys of the asset tags with the name in the groups.
|
long[] |
getTagIds(long[] groupIds,
java.lang.String[] names)
Returns the primary keys of the asset tags with the names in the groups.
|
long[] |
getTagIds(long groupId,
java.lang.String[] names)
Returns the primary keys of the asset tags with the names in the group.
|
java.lang.String[] |
getTagNames()
Returns the names of all the asset tags.
|
protected java.lang.String[] |
getTagNames(java.util.List<com.liferay.portlet.asset.model.AssetTag> tags) |
java.lang.String[] |
getTagNames(long classNameId,
long classPK)
Returns the names of the asset tags of the entity.
|
java.lang.String[] |
getTagNames(java.lang.String className,
long classPK)
Returns the names of the asset tags of the entity
|
java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getTags()
Returns all the asset tags.
|
java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getTags(long classNameId,
long classPK)
Returns the asset tags of the entity.
|
java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getTags(long groupId,
long classNameId,
java.lang.String name) |
java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getTags(long groupId,
long classNameId,
java.lang.String name,
int start,
int end) |
java.util.List<com.liferay.portlet.asset.model.AssetTag> |
getTags(java.lang.String className,
long classPK)
Returns the asset tags of the entity.
|
int |
getTagsSize(long groupId,
long classNameId,
java.lang.String name) |
boolean |
hasTag(long groupId,
java.lang.String name)
Returns
true if the group contains an asset tag with the
name. |
com.liferay.portlet.asset.model.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,
boolean overrideProperties)
Replaces all occurrences of the first asset tag with the second asset tag
and deletes the first asset tag.
|
java.util.List<com.liferay.portlet.asset.model.AssetTag> |
search(long[] groupIds,
java.lang.String name,
java.lang.String[] tagProperties,
int start,
int end)
Returns the asset tags in the groups whose names match the pattern and
the properties.
|
java.util.List<com.liferay.portlet.asset.model.AssetTag> |
search(long groupId,
java.lang.String name,
java.lang.String[] tagProperties,
int start,
int end)
Returns the asset tags in the group whose names match the pattern and the
properties.
|
com.liferay.portlet.asset.model.AssetTag |
updateTag(long userId,
long tagId,
java.lang.String name,
java.lang.String[] tagProperties,
com.liferay.portal.service.ServiceContext serviceContext) |
protected void |
validate(java.lang.String name) |
addAssetEntryAssetTag, addAssetEntryAssetTag, addAssetEntryAssetTags, addAssetEntryAssetTags, addAssetTag, afterPropertiesSet, clearAssetEntryAssetTags, createAssetTag, deleteAssetEntryAssetTag, deleteAssetEntryAssetTag, deleteAssetEntryAssetTags, deleteAssetEntryAssetTags, deleteAssetTag, deleteAssetTag, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchAssetTag, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryPropertyFinder, getAssetCategoryPropertyLocalService, getAssetCategoryPropertyPersistence, getAssetCategoryPropertyService, getAssetCategoryService, getAssetEntryAssetTags, getAssetEntryAssetTags, getAssetEntryAssetTags, getAssetEntryAssetTagsCount, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTag, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagPropertyFinder, getAssetTagPropertyKeyFinder, getAssetTagPropertyLocalService, getAssetTagPropertyPersistence, getAssetTagPropertyService, getAssetTags, getAssetTagsCount, getAssetTagService, getAssetTagStatsLocalService, getAssetTagStatsPersistence, getAssetVocabularyFinder, getAssetVocabularyLocalService, getAssetVocabularyPersistence, getAssetVocabularyService, getBeanIdentifier, getCounterLocalService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getModelClass, getModelClassName, getPersistedModel, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, hasAssetEntryAssetTag, hasAssetEntryAssetTags, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryPropertyFinder, setAssetCategoryPropertyLocalService, setAssetCategoryPropertyPersistence, setAssetCategoryPropertyService, setAssetCategoryService, setAssetEntryAssetTags, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagPropertyFinder, setAssetTagPropertyKeyFinder, setAssetTagPropertyLocalService, setAssetTagPropertyPersistence, setAssetTagPropertyService, setAssetTagService, setAssetTagStatsLocalService, setAssetTagStatsPersistence, setAssetVocabularyFinder, setAssetVocabularyLocalService, setAssetVocabularyPersistence, setAssetVocabularyService, setBeanIdentifier, setCounterLocalService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateAssetTagpublic com.liferay.portlet.asset.model.AssetTag addTag(long userId,
java.lang.String name,
java.lang.String[] tagProperties,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
userId - the primary key of the user adding the asset tagname - the asset tag's nametagProperties - the tag's propertiesserviceContext - the service contextcom.liferay.portal.kernel.exception.PortalException - if a user with the primary key could not be
found, if an asset tag already exists with the name, or if a
portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
tag - the asset tag for which to add resourcesaddGroupPermissions - whether to add group permissionsaddGuestPermissions - whether to add guest permissionscom.liferay.portal.kernel.exception.PortalException - if resources could not be added for the asset tag
or if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
tag - the asset tag for which to add resourcesgroupPermissions - the group permissions to be appliedguestPermissions - the guest permissions to be appliedcom.liferay.portal.kernel.exception.PortalException - if resources could not be added for the asset tag
or if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetTag> checkTags(long userId,
com.liferay.portal.model.Group group,
java.lang.String[] names)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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.
userId - the primary key of the user checking the asset tagsgroup - the group in which to check the asset tagsnames - the asset tag namescom.liferay.portal.kernel.exception.PortalException - if a matching group could not be found or if a
portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void checkTags(long userId,
long groupId,
java.lang.String[] names)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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 namescom.liferay.portal.kernel.exception.PortalException - if a matching group could not be found or if a
portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.asset.model.AssetTag decrementAssetCount(long tagId,
long classNameId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
tagId - the primary key of the asset tagclassNameId - the class name ID of the entity to which the asset
tag had been appliedcom.liferay.portal.kernel.exception.PortalException - if an asset tag with the primary key could not be
found or if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void deleteGroupTags(long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
groupId - the primary key of the group in which to delete all asset
tagscom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
tag - the asset tag to be deletedcom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void deleteTag(long tagId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
tagId - the primary key of the asset tagcom.liferay.portal.kernel.exception.PortalException - if no asset tag could be found with the primary
key or if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(long entryId)
throws com.liferay.portal.kernel.exception.SystemException
entryId - the primary key of the asset entrycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupsTags(long[] groupIds)
throws com.liferay.portal.kernel.exception.SystemException
groupIds - the primary keys of the groupscom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
groupId - the primary key of the groupcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(long groupId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int getGroupTagsCount(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
groupId - the primary key of the groupcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterOffsetTags(long groupId,
java.lang.String socialActivityCounterName,
int startOffset,
int endOffset)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portlet.asset.model.AssetTag> getSocialActivityCounterPeriodTags(long groupId,
java.lang.String socialActivityCounterName,
int startPeriod,
int endPeriod)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
tagId - the primary key of the asset tagcom.liferay.portal.kernel.exception.PortalException - if an asset tag with the primary key could not be
foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.asset.model.AssetTag getTag(long groupId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
groupId - the primary key of the groupname - the name of the asset tagcom.liferay.portal.kernel.exception.PortalException - if a matching asset tag could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic long[] getTagIds(long groupId,
java.lang.String[] names)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
groupId - the primary key of the groupnames - the names of the asset tagscom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic long[] getTagIds(long[] groupIds,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
groupIds - the primary keys of the groupsname - the name of the asset tagscom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic long[] getTagIds(long[] groupIds,
java.lang.String[] names)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
groupIds - the primary keys of the groupsnames - the names of the asset tagscom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.lang.String[] getTagNames()
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.lang.String[] getTagNames(long classNameId,
long classPK)
throws com.liferay.portal.kernel.exception.SystemException
classNameId - the class name ID of the entityclassPK - the primary key of the entitycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.lang.String[] getTagNames(java.lang.String className,
long classPK)
throws com.liferay.portal.kernel.exception.SystemException
className - the class name of the entityclassPK - the primary key of the entitycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(long classNameId,
long classPK)
throws com.liferay.portal.kernel.exception.SystemException
classNameId - the class name ID of the entityclassPK - the primary key of the entitycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(long groupId,
long classNameId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(long groupId,
long classNameId,
java.lang.String name,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemException@ThreadLocalCachable
public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(java.lang.String className,
long classPK)
throws com.liferay.portal.kernel.exception.SystemException
className - the class name of the entityclassPK - the primary key of the entitycom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int getTagsSize(long groupId,
long classNameId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.SystemExceptionpublic boolean hasTag(long groupId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
true if the group contains an asset tag with the
name.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.com.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.asset.model.AssetTag incrementAssetCount(long tagId,
long classNameId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
tagId - the primary key of the asset tagclassNameId - the class name ID of the entity to which the asset
tag is being appliedcom.liferay.portal.kernel.exception.PortalException - if a asset tag with the primary key could not be
found or if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void mergeTags(long fromTagId,
long toTagId,
boolean overrideProperties)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
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 tagoverrideProperties - whether to override the properties of the
second asset tag with the properties of the first asset tagcom.liferay.portal.kernel.exception.PortalException - if a portal exception occurredcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetTag> search(long groupId,
java.lang.String name,
java.lang.String[] tagProperties,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
groupId - the primary key of the groupname - the pattern to matchtagProperties - the properties to matchstart - the lower bound of the range of asset tagsend - the upper bound of the range of asset tags (not inclusive)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.asset.model.AssetTag> search(long[] groupIds,
java.lang.String name,
java.lang.String[] tagProperties,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
groupIds - the primary keys of the groupsname - the pattern to matchtagProperties - the properties to matchstart - the lower bound of the range of asset tagsend - the upper bound of the range of asset tags (not inclusive)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.asset.model.AssetTag updateTag(long userId,
long tagId,
java.lang.String name,
java.lang.String[] tagProperties,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionprotected java.lang.String[] getTagNames(java.util.List<com.liferay.portlet.asset.model.AssetTag> tags)
protected void validate(java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException