Liferay 7.0-ce-b4

com.liferay.portlet.asset.service.impl
Class AssetTagServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.BaseServiceImpl
      extended by com.liferay.portlet.asset.service.base.AssetTagServiceBaseImpl
          extended by com.liferay.portlet.asset.service.impl.AssetTagServiceImpl
All Implemented Interfaces:
IdentifiableOSGiService, BaseService, AssetTagService

public class AssetTagServiceImpl
extends AssetTagServiceBaseImpl

Provides the remote service for accessing, adding, checking, deleting, merging, and updating asset tags. Its methods include permission checks.


Field Summary
 
Fields inherited from class com.liferay.portlet.asset.service.base.AssetTagServiceBaseImpl
assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, assetTagStatsLocalService, assetTagStatsPersistence, classNameLocalService, classNamePersistence, classNameService, counterLocalService, groupFinder, groupLocalService, groupPersistence, groupService, resourceLocalService, userFinder, userLocalService, userPersistence, userService
 
Fields inherited from class com.liferay.portal.service.BaseServiceImpl
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
AssetTagServiceImpl()
           
 
Method Summary
 AssetTag addTag(long groupId, String name, ServiceContext serviceContext)
           
 void deleteTag(long tagId)
           
 void deleteTags(long[] tagIds)
           
 List<AssetTag> getGroupsTags(long[] groupIds)
           
 List<AssetTag> getGroupTags(long groupId)
           
 List<AssetTag> getGroupTags(long groupId, int start, int end, OrderByComparator<AssetTag> obc)
           
 int getGroupTagsCount(long groupId)
           
 AssetTagDisplay getGroupTagsDisplay(long groupId, String name, int start, int end)
           
 JSONObject getJSONGroupTags(long groupId, String name, int start, int end)
          Deprecated. As of 6.2.0, replaced by getGroupTagsDisplay(long, String, int, int)
 AssetTag getTag(long tagId)
           
 List<AssetTag> getTags(long[] groupIds, String name, int start, int end)
           
 List<AssetTag> getTags(long[] groupIds, String name, int start, int end, OrderByComparator<AssetTag> obc)
           
 List<AssetTag> getTags(long groupId, long classNameId, String name)
           
 List<AssetTag> getTags(long groupId, long classNameId, String name, int start, int end, OrderByComparator<AssetTag> obc)
           
 List<AssetTag> getTags(long groupId, String name, int start, int end)
           
 List<AssetTag> getTags(long groupId, String name, int start, int end, OrderByComparator<AssetTag> obc)
           
 List<AssetTag> getTags(String className, long classPK)
           
 int getTagsCount(long groupId, String name)
           
 int getVisibleAssetsTagsCount(long groupId, long classNameId, String name)
           
 int getVisibleAssetsTagsCount(long groupId, String name)
           
 void mergeTags(long[] fromTagIds, long toTagId)
           
 void mergeTags(long fromTagId, long toTagId)
           
 JSONArray search(long[] groupIds, String name, int start, int end)
           
 JSONArray search(long groupId, String name, int start, int end)
           
 AssetTag updateTag(long tagId, String name, ServiceContext serviceContext)
           
 
Methods inherited from class com.liferay.portlet.asset.service.base.AssetTagServiceBaseImpl
afterPropertiesSet, destroy, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getAssetTagStatsLocalService, getAssetTagStatsPersistence, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCounterLocalService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroupService, getModelClass, getModelClassName, getOSGiServiceIdentifier, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setAssetTagStatsLocalService, setAssetTagStatsPersistence, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCounterLocalService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, setUserService
 
Methods inherited from class com.liferay.portal.service.BaseServiceImpl
getClassLoader, getGuestOrUser, getGuestOrUserId, getPermissionChecker, getUser, getUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetTagServiceImpl

public AssetTagServiceImpl()
Method Detail

addTag

public AssetTag addTag(long groupId,
                       String name,
                       ServiceContext serviceContext)
                throws PortalException
Throws:
PortalException

deleteTag

public void deleteTag(long tagId)
               throws PortalException
Throws:
PortalException

deleteTags

public void deleteTags(long[] tagIds)
                throws PortalException
Throws:
PortalException

getGroupsTags

public List<AssetTag> getGroupsTags(long[] groupIds)

getGroupTags

public List<AssetTag> getGroupTags(long groupId)

getGroupTags

public List<AssetTag> getGroupTags(long groupId,
                                   int start,
                                   int end,
                                   OrderByComparator<AssetTag> obc)

getGroupTagsCount

public int getGroupTagsCount(long groupId)

getGroupTagsDisplay

public AssetTagDisplay getGroupTagsDisplay(long groupId,
                                           String name,
                                           int start,
                                           int end)

getJSONGroupTags

@Deprecated
public JSONObject getJSONGroupTags(long groupId,
                                              String name,
                                              int start,
                                              int end)
                            throws PortalException
Deprecated. As of 6.2.0, replaced by getGroupTagsDisplay(long, String, int, int)

Throws:
PortalException

getTag

public AssetTag getTag(long tagId)
                throws PortalException
Throws:
PortalException

getTags

public List<AssetTag> getTags(long groupId,
                              long classNameId,
                              String name)

getTags

public List<AssetTag> getTags(long groupId,
                              long classNameId,
                              String name,
                              int start,
                              int end,
                              OrderByComparator<AssetTag> obc)

getTags

public List<AssetTag> getTags(long groupId,
                              String name,
                              int start,
                              int end)

getTags

public List<AssetTag> getTags(long groupId,
                              String name,
                              int start,
                              int end,
                              OrderByComparator<AssetTag> obc)

getTags

public List<AssetTag> getTags(long[] groupIds,
                              String name,
                              int start,
                              int end)

getTags

public List<AssetTag> getTags(long[] groupIds,
                              String name,
                              int start,
                              int end,
                              OrderByComparator<AssetTag> obc)

getTags

public List<AssetTag> getTags(String className,
                              long classPK)

getTagsCount

public int getTagsCount(long groupId,
                        String name)

getVisibleAssetsTagsCount

public int getVisibleAssetsTagsCount(long groupId,
                                     long classNameId,
                                     String name)

getVisibleAssetsTagsCount

public int getVisibleAssetsTagsCount(long groupId,
                                     String name)

mergeTags

public void mergeTags(long fromTagId,
                      long toTagId)
               throws PortalException
Throws:
PortalException

mergeTags

public void mergeTags(long[] fromTagIds,
                      long toTagId)
               throws PortalException
Throws:
PortalException

search

public JSONArray search(long groupId,
                        String name,
                        int start,
                        int end)

search

public JSONArray search(long[] groupIds,
                        String name,
                        int start,
                        int end)

updateTag

public AssetTag updateTag(long tagId,
                          String name,
                          ServiceContext serviceContext)
                   throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4