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

java.lang.Object
  extended by com.liferay.portlet.asset.service.base.AssetCategoryLocalServiceBaseImpl
      extended by com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.asset.service.AssetCategoryLocalService

public class AssetCategoryLocalServiceImpl
extends AssetCategoryLocalServiceBaseImpl

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.AssetCategoryLocalServiceBaseImpl
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
AssetCategoryLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.asset.model.AssetCategory addCategory(java.lang.String uuid, long userId, long parentCategoryId, java.util.Map<java.util.Locale,java.lang.String> titleMap, long vocabularyId, java.lang.String[] categoryProperties, com.liferay.portal.service.ServiceContext serviceContext)
           
 void addCategoryResources(com.liferay.portlet.asset.model.AssetCategory category, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(com.liferay.portlet.asset.model.AssetCategory category, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void deleteCategory(com.liferay.portlet.asset.model.AssetCategory category)
           
 void deleteCategory(long categoryId)
           
 void deleteVocabularyCategories(long vocabularyId)
           
 java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories()
           
 java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(long classNameId, long classPK)
           
 java.util.List<com.liferay.portlet.asset.model.AssetCategory> getCategories(java.lang.String className, long classPK)
           
 com.liferay.portlet.asset.model.AssetCategory getCategory(long categoryId)
           
protected  long[] getCategoryIds(java.util.List<com.liferay.portlet.asset.model.AssetCategory> categories)
           
 long[] getCategoryIds(java.lang.String className, long classPK)
           
 java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(long parentCategoryId)
           
 java.util.List<com.liferay.portlet.asset.model.AssetCategory> getEntryCategories(long entryId)
           
 java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(long vocabularyId)
           
 java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(long vocabularyId)
           
 void mergeCategories(long fromCategoryId, long toCategoryId)
           
 com.liferay.portal.kernel.json.JSONArray search(long groupId, java.lang.String name, java.lang.String[] categoryProperties, int start, int end)
           
 com.liferay.portlet.asset.model.AssetCategory updateCategory(long userId, long categoryId, long parentCategoryId, java.util.Map<java.util.Locale,java.lang.String> titleMap, long vocabularyId, java.lang.String[] categoryProperties, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  void validate(long categoryId, long parentCategoryId, java.lang.String name, long vocabularyId)
           
 
Methods inherited from class com.liferay.portlet.asset.service.base.AssetCategoryLocalServiceBaseImpl
addAssetCategory, createAssetCategory, deleteAssetCategory, deleteAssetCategory, dynamicQuery, dynamicQuery, getAssetCategories, getAssetCategoriesCount, getAssetCategory, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryPropertyFinder, getAssetCategoryPropertyLocalService, getAssetCategoryPropertyPersistence, getAssetCategoryPropertyService, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagPropertyFinder, getAssetTagPropertyKeyFinder, getAssetTagPropertyLocalService, getAssetTagPropertyPersistence, getAssetTagPropertyService, 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, updateAssetCategory, updateAssetCategory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetCategoryLocalServiceImpl

public AssetCategoryLocalServiceImpl()
Method Detail

addCategory

public com.liferay.portlet.asset.model.AssetCategory addCategory(java.lang.String uuid,
                                                                 long userId,
                                                                 long parentCategoryId,
                                                                 java.util.Map<java.util.Locale,java.lang.String> titleMap,
                                                                 long vocabularyId,
                                                                 java.lang.String[] categoryProperties,
                                                                 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

addCategoryResources

public void addCategoryResources(com.liferay.portlet.asset.model.AssetCategory category,
                                 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

addCategoryResources

public void addCategoryResources(com.liferay.portlet.asset.model.AssetCategory category,
                                 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

deleteCategory

public void deleteCategory(com.liferay.portlet.asset.model.AssetCategory category)
                    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

deleteCategory

public void deleteCategory(long categoryId)
                    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

deleteVocabularyCategories

public void deleteVocabularyCategories(long vocabularyId)
                                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

getCategories

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

getCategories

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

getCategories

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

getCategory

public com.liferay.portlet.asset.model.AssetCategory getCategory(long categoryId)
                                                          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

getCategoryIds

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

getChildCategories

public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getChildCategories(long parentCategoryId)
                                                                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getEntryCategories

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

getVocabularyCategories

public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(long vocabularyId)
                                                                                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getVocabularyRootCategories

public java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(long vocabularyId)
                                                                                          throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

mergeCategories

public void mergeCategories(long fromCategoryId,
                            long toCategoryId)
                     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[] categoryProperties,
                                                       int start,
                                                       int end)
                                                throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

updateCategory

public com.liferay.portlet.asset.model.AssetCategory updateCategory(long userId,
                                                                    long categoryId,
                                                                    long parentCategoryId,
                                                                    java.util.Map<java.util.Locale,java.lang.String> titleMap,
                                                                    long vocabularyId,
                                                                    java.lang.String[] categoryProperties,
                                                                    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

getCategoryIds

protected long[] getCategoryIds(java.util.List<com.liferay.portlet.asset.model.AssetCategory> categories)

validate

protected void validate(long categoryId,
                        long parentCategoryId,
                        java.lang.String name,
                        long vocabularyId)
                 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