Class AssetTagServiceImpl
Object
com.liferay.portal.kernel.service.BaseServiceImpl
com.liferay.portlet.asset.service.base.AssetTagServiceBaseImpl
com.liferay.portlet.asset.service.impl.AssetTagServiceImpl
- All Implemented Interfaces:
com.liferay.asset.kernel.service.AssetTagService
,com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
,com.liferay.portal.kernel.service.BaseService
Provides the remote service for accessing, adding, checking, deleting,
merging, and updating asset tags. Its methods include permission checks.
- Author:
- Brian Wing Shun Chan, Jorge Ferrer, Alvaro del Castillo, Eduardo Lundgren, Bruno Farache, Juan Fernández
-
Field Summary
Fields inherited from class com.liferay.portlet.asset.service.base.AssetTagServiceBaseImpl
assetEntryPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, counterLocalService
Fields inherited from class com.liferay.portal.kernel.service.BaseServiceImpl
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.asset.kernel.model.AssetTag
addTag
(String externalReferenceCode, long groupId, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
deleteTag
(long tagId) void
deleteTags
(long[] tagIds) com.liferay.asset.kernel.model.AssetTag
fetchAssetTagByExternalReferenceCode
(String externalReferenceCode, long groupId) com.liferay.asset.kernel.model.AssetTag
getAssetTagByExternalReferenceCode
(String externalReferenceCode, long groupId) List<com.liferay.asset.kernel.model.AssetTag>
getGroupsTags
(long[] groupIds) List<com.liferay.asset.kernel.model.AssetTag>
getGroupTags
(long groupId) List<com.liferay.asset.kernel.model.AssetTag>
getGroupTags
(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) int
getGroupTagsCount
(long groupId) com.liferay.asset.kernel.model.AssetTagDisplay
getGroupTagsDisplay
(long groupId, String name, int start, int end) com.liferay.asset.kernel.model.AssetTag
getTag
(long tagId) List<com.liferay.asset.kernel.model.AssetTag>
List<com.liferay.asset.kernel.model.AssetTag>
getTags
(long[] groupIds, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) List<com.liferay.asset.kernel.model.AssetTag>
List<com.liferay.asset.kernel.model.AssetTag>
getTags
(long groupId, long classNameId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) List<com.liferay.asset.kernel.model.AssetTag>
List<com.liferay.asset.kernel.model.AssetTag>
getTags
(long groupId, String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) List<com.liferay.asset.kernel.model.AssetTag>
int
getTagsCount
(long[] groupIds, String name) int
getTagsCount
(long groupId, String name) int
getVisibleAssetsTagsCount
(long groupId, long classNameId, String name) void
mergeTags
(long[] fromTagIds, long toTagId) void
mergeTags
(long fromTagId, long toTagId) protected com.liferay.asset.kernel.model.AssetTag
sanitize
(com.liferay.asset.kernel.model.AssetTag tag) protected List<com.liferay.asset.kernel.model.AssetTag>
com.liferay.portal.kernel.json.JSONArray
com.liferay.portal.kernel.json.JSONArray
void
subscribeTag
(long userId, long groupId, long tagId) void
unsubscribeTag
(long userId, long tagId) com.liferay.asset.kernel.model.AssetTag
updateTag
(String externalReferenceCode, long tagId, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) Methods inherited from class com.liferay.portlet.asset.service.base.AssetTagServiceBaseImpl
afterPropertiesSet, destroy, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getCounterLocalService, getModelClass, getModelClassName, getOSGiServiceIdentifier, runSQL, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setCounterLocalService
Methods inherited from class com.liferay.portal.kernel.service.BaseServiceImpl
getClassLoader, getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId
-
Constructor Details
-
AssetTagServiceImpl
public AssetTagServiceImpl()
-
-
Method Details
-
addTag
public com.liferay.asset.kernel.model.AssetTag addTag(String externalReferenceCode, long groupId, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteTag
public void deleteTag(long tagId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteTags
public void deleteTags(long[] tagIds) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchAssetTagByExternalReferenceCode
public com.liferay.asset.kernel.model.AssetTag fetchAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) -
getAssetTagByExternalReferenceCode
public com.liferay.asset.kernel.model.AssetTag getAssetTagByExternalReferenceCode(String externalReferenceCode, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupsTags
-
getGroupTags
-
getGroupTags
public List<com.liferay.asset.kernel.model.AssetTag> getGroupTags(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetTag> orderByComparator) -
getGroupTagsCount
public int getGroupTagsCount(long groupId) -
getGroupTagsDisplay
public com.liferay.asset.kernel.model.AssetTagDisplay getGroupTagsDisplay(long groupId, String name, int start, int end) -
getTag
public com.liferay.asset.kernel.model.AssetTag getTag(long tagId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getTags
-
getTags
-
getTags
-
getTags
-
getTags
-
getTags
-
getTags
-
getTagsCount
-
getTagsCount
-
getVisibleAssetsTagsCount
-
mergeTags
public void mergeTags(long fromTagId, long toTagId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
mergeTags
public void mergeTags(long[] fromTagIds, long toTagId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
search
public com.liferay.portal.kernel.json.JSONArray search(long groupId, String name, int start, int end) -
search
@AccessControlled(guestAccessEnabled=true) public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds, String name, int start, int end) -
subscribeTag
public void subscribeTag(long userId, long groupId, long tagId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribeTag
public void unsubscribeTag(long userId, long tagId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateTag
public com.liferay.asset.kernel.model.AssetTag updateTag(String externalReferenceCode, long tagId, String name, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
sanitize
protected com.liferay.asset.kernel.model.AssetTag sanitize(com.liferay.asset.kernel.model.AssetTag tag) -
sanitize
-