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

java.lang.Object
  extended by com.liferay.portlet.asset.service.base.AssetTagLocalServiceBaseImpl
      extended by com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.asset.service.AssetTagLocalService

public class AssetTagLocalServiceImpl
extends AssetTagLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan, Alvaro del Castillo, Jorge Ferrer, Bruno Farache

Field Summary
 
Fields inherited from class com.liferay.portlet.asset.service.base.AssetTagLocalServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryPropertyFinder, assetCategoryPropertyLocalService, assetCategoryPropertyPersistence, assetCategoryPropertyService, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagPropertyFinder, assetTagPropertyKeyFinder, assetTagPropertyLocalService, assetTagPropertyPersistence, assetTagPropertyService, assetTagService, assetTagStatsLocalService, assetTagStatsPersistence, assetVocabularyLocalService, assetVocabularyPersistence, assetVocabularyService, counterLocalService, counterService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
AssetTagLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.asset.model.AssetTag addTag(long userId, java.lang.String name, java.lang.String[] tagProperties, com.liferay.portal.service.ServiceContext serviceContext)
           
 void addTagResources(com.liferay.portlet.asset.model.AssetTag tag, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addTagResources(com.liferay.portlet.asset.model.AssetTag tag, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void checkTags(long userId, long groupId, java.lang.String[] names)
           
 com.liferay.portlet.asset.model.AssetTag decrementAssetCount(long tagId, long classNameId)
           
 void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
           
 void deleteTag(long tagId)
           
 java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(long entryId)
           
 java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(long groupId)
           
 com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
           
 com.liferay.portlet.asset.model.AssetTag getTag(long groupId, java.lang.String name)
           
 long[] getTagIds(long groupId, java.lang.String[] names)
           
 java.lang.String[] getTagNames()
           
protected  java.lang.String[] getTagNames(java.util.List<com.liferay.portlet.asset.model.AssetTag> tags)
           
 java.lang.String[] getTagNames(long classNameId, long classPK)
           
 java.lang.String[] getTagNames(java.lang.String className, long classPK)
           
 java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
           
 java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(long classNameId, long classPK)
           
 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)
           
 int getTagsSize(long groupId, long classNameId, java.lang.String name)
           
 boolean hasTag(long groupId, java.lang.String name)
           
 com.liferay.portlet.asset.model.AssetTag incrementAssetCount(long tagId, long classNameId)
           
 void mergeTags(long fromTagId, long toTagId)
           
protected  void reindex(java.util.List<com.liferay.portlet.asset.model.AssetEntry> entries)
           
 com.liferay.portal.kernel.json.JSONArray search(long groupId, java.lang.String name, java.lang.String[] tagProperties, int start, int end)
           
 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)
           
 
Methods inherited from class com.liferay.portlet.asset.service.base.AssetTagLocalServiceBaseImpl
addAssetTag, createAssetTag, deleteAssetTag, deleteAssetTag, dynamicQuery, dynamicQuery, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryPropertyFinder, getAssetCategoryPropertyLocalService, getAssetCategoryPropertyPersistence, getAssetCategoryPropertyService, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTag, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagPropertyFinder, getAssetTagPropertyKeyFinder, getAssetTagPropertyLocalService, getAssetTagPropertyPersistence, getAssetTagPropertyService, getAssetTags, getAssetTagsCount, getAssetTagService, getAssetTagStatsLocalService, getAssetTagStatsPersistence, getAssetVocabularyLocalService, getAssetVocabularyPersistence, getAssetVocabularyService, getCounterLocalService, getCounterService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryPropertyFinder, setAssetCategoryPropertyLocalService, setAssetCategoryPropertyPersistence, setAssetCategoryPropertyService, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagPropertyFinder, setAssetTagPropertyKeyFinder, setAssetTagPropertyLocalService, setAssetTagPropertyPersistence, setAssetTagPropertyService, setAssetTagService, setAssetTagStatsLocalService, setAssetTagStatsPersistence, setAssetVocabularyLocalService, setAssetVocabularyPersistence, setAssetVocabularyService, setCounterLocalService, setCounterService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateAssetTag, updateAssetTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetTagLocalServiceImpl

public AssetTagLocalServiceImpl()
Method Detail

addTag

public 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
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addTagResources

public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
                            boolean addCommunityPermissions,
                            boolean addGuestPermissions)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

addTagResources

public void addTagResources(com.liferay.portlet.asset.model.AssetTag tag,
                            java.lang.String[] communityPermissions,
                            java.lang.String[] guestPermissions)
                     throws com.liferay.portal.kernel.exception.PortalException,
                            com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

checkTags

public void checkTags(long userId,
                      long groupId,
                      java.lang.String[] names)
               throws com.liferay.portal.kernel.exception.PortalException,
                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

decrementAssetCount

public com.liferay.portlet.asset.model.AssetTag decrementAssetCount(long tagId,
                                                                    long classNameId)
                                                             throws com.liferay.portal.kernel.exception.PortalException,
                                                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteTag

public void deleteTag(com.liferay.portlet.asset.model.AssetTag tag)
               throws com.liferay.portal.kernel.exception.PortalException,
                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

deleteTag

public void deleteTag(long tagId)
               throws com.liferay.portal.kernel.exception.PortalException,
                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getEntryTags

public java.util.List<com.liferay.portlet.asset.model.AssetTag> getEntryTags(long entryId)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getGroupTags

public java.util.List<com.liferay.portlet.asset.model.AssetTag> getGroupTags(long groupId)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTag

public com.liferay.portlet.asset.model.AssetTag getTag(long tagId)
                                                throws com.liferay.portal.kernel.exception.PortalException,
                                                       com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getTag

public 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
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getTagIds

public long[] getTagIds(long groupId,
                        java.lang.String[] names)
                 throws com.liferay.portal.kernel.exception.PortalException,
                        com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getTagNames

public java.lang.String[] getTagNames()
                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTagNames

public java.lang.String[] getTagNames(long classNameId,
                                      long classPK)
                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTagNames

public java.lang.String[] getTagNames(java.lang.String className,
                                      long classPK)
                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTags

public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags()
                                                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTags

public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(long classNameId,
                                                                        long classPK)
                                                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTags

public 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
Throws:
com.liferay.portal.kernel.exception.SystemException

getTags

public 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
Throws:
com.liferay.portal.kernel.exception.SystemException

getTags

public java.util.List<com.liferay.portlet.asset.model.AssetTag> getTags(java.lang.String className,
                                                                        long classPK)
                                                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getTagsSize

public int getTagsSize(long groupId,
                       long classNameId,
                       java.lang.String name)
                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

hasTag

public boolean hasTag(long groupId,
                      java.lang.String name)
               throws com.liferay.portal.kernel.exception.PortalException,
                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

incrementAssetCount

public com.liferay.portlet.asset.model.AssetTag incrementAssetCount(long tagId,
                                                                    long classNameId)
                                                             throws com.liferay.portal.kernel.exception.PortalException,
                                                                    com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

mergeTags

public void mergeTags(long fromTagId,
                      long toTagId)
               throws com.liferay.portal.kernel.exception.PortalException,
                      com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

search

public com.liferay.portal.kernel.json.JSONArray search(long groupId,
                                                       java.lang.String name,
                                                       java.lang.String[] tagProperties,
                                                       int start,
                                                       int end)
                                                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateTag

public 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
Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException

getTagNames

protected java.lang.String[] getTagNames(java.util.List<com.liferay.portlet.asset.model.AssetTag> tags)

reindex

protected void reindex(java.util.List<com.liferay.portlet.asset.model.AssetEntry> entries)
                throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

validate

protected void validate(java.lang.String name)
                 throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException