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

public class AssetTagServiceImpl extends AssetTagServiceBaseImpl
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
  • 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

      public List<com.liferay.asset.kernel.model.AssetTag> getGroupsTags(long[] groupIds)
    • getGroupTags

      public List<com.liferay.asset.kernel.model.AssetTag> getGroupTags(long groupId)
    • 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

      public List<com.liferay.asset.kernel.model.AssetTag> getTags(long groupId, long classNameId, String name)
    • getTags

      public 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)
    • getTags

      public List<com.liferay.asset.kernel.model.AssetTag> getTags(long groupId, String name, int start, int end)
    • getTags

      public 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)
    • getTags

      public List<com.liferay.asset.kernel.model.AssetTag> getTags(long[] groupIds, String name, int start, int end)
    • getTags

      public 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)
    • getTags

      public List<com.liferay.asset.kernel.model.AssetTag> getTags(String className, long classPK)
    • getTagsCount

      public int getTagsCount(long groupId, String name)
    • getTagsCount

      public int getTagsCount(long[] groupIds, String name)
    • getVisibleAssetsTagsCount

      public int getVisibleAssetsTagsCount(long groupId, long classNameId, String name)
    • 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

      protected List<com.liferay.asset.kernel.model.AssetTag> sanitize(List<com.liferay.asset.kernel.model.AssetTag> tags)