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.portal.kernel.bean.IdentifiableBean, com.liferay.portal.service.PersistedModelLocalService, com.liferay.portlet.asset.service.AssetCategoryLocalService

public class AssetCategoryLocalServiceImpl
extends AssetCategoryLocalServiceBaseImpl

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, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagPropertyFinder, assetTagPropertyKeyFinder, assetTagPropertyLocalService, assetTagPropertyPersistence, assetTagPropertyService, assetTagService, assetTagStatsLocalService, assetTagStatsPersistence, assetVocabularyFinder, assetVocabularyLocalService, assetVocabularyPersistence, assetVocabularyService, counterLocalService, persistedModelLocalServiceRegistry, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
AssetCategoryLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.asset.model.AssetCategory addCategory(long userId, long parentCategoryId, java.util.Map<java.util.Locale,java.lang.String> titleMap, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, long vocabularyId, java.lang.String[] categoryProperties, com.liferay.portal.service.ServiceContext serviceContext)
           
 void addCategoryResources(com.liferay.portlet.asset.model.AssetCategory category, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(com.liferay.portlet.asset.model.AssetCategory category, java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
           
 void deleteCategory(com.liferay.portlet.asset.model.AssetCategory category)
           
 void deleteCategory(long categoryId)
           
 void deleteVocabularyCategories(long vocabularyId)
           
 com.liferay.portlet.asset.model.AssetCategory fetchCategory(long categoryId)
           
 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.lang.String[] getCategoryNames()
           
protected  java.lang.String[] getCategoryNames(java.util.List<com.liferay.portlet.asset.model.AssetCategory> categories)
           
 java.lang.String[] getCategoryNames(long classNameId, long classPK)
           
 java.lang.String[] getCategoryNames(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> getChildCategories(long parentCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getChildCategoriesCount(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, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyCategories(long parentCategoryId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getVocabularyCategoriesCount(long vocabularyId)
           
 java.util.List<com.liferay.portlet.asset.model.AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 void mergeCategories(long fromCategoryId, long toCategoryId)
           
 com.liferay.portlet.asset.model.AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, com.liferay.portal.service.ServiceContext serviceContext)
           
 void rebuildTree(long groupId, boolean force)
           
 java.util.List<com.liferay.portlet.asset.model.AssetCategory> 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, java.util.Map<java.util.Locale,java.lang.String> descriptionMap, long vocabularyId, java.lang.String[] categoryProperties, com.liferay.portal.service.ServiceContext serviceContext)
           
protected  void updateChildrenVocabularyId(com.liferay.portlet.asset.model.AssetCategory category, long vocabularyId)
           
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, afterPropertiesSet, createAssetCategory, deleteAssetCategory, deleteAssetCategory, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, fetchAssetCategory, getAssetCategories, getAssetCategoriesCount, getAssetCategory, getAssetCategoryByUuidAndGroupId, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryPropertyFinder, getAssetCategoryPropertyLocalService, getAssetCategoryPropertyPersistence, getAssetCategoryPropertyService, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagPropertyFinder, getAssetTagPropertyKeyFinder, getAssetTagPropertyLocalService, getAssetTagPropertyPersistence, getAssetTagPropertyService, getAssetTagService, getAssetTagStatsLocalService, getAssetTagStatsPersistence, getAssetVocabularyFinder, getAssetVocabularyLocalService, getAssetVocabularyPersistence, getAssetVocabularyService, getBeanIdentifier, getCounterLocalService, getModelClass, getModelClassName, getPersistedModel, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryPropertyFinder, setAssetCategoryPropertyLocalService, setAssetCategoryPropertyPersistence, setAssetCategoryPropertyService, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagPropertyFinder, setAssetTagPropertyKeyFinder, setAssetTagPropertyLocalService, setAssetTagPropertyPersistence, setAssetTagPropertyService, setAssetTagService, setAssetTagStatsLocalService, setAssetTagStatsPersistence, setAssetVocabularyFinder, setAssetVocabularyLocalService, setAssetVocabularyPersistence, setAssetVocabularyService, setBeanIdentifier, setCounterLocalService, 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(long userId,
                                                                 long parentCategoryId,
                                                                 java.util.Map<java.util.Locale,java.lang.String> titleMap,
                                                                 java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                                                                 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 addGroupPermissions,
                                 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[] groupPermissions,
                                 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

fetchCategory

public com.liferay.portlet.asset.model.AssetCategory fetchCategory(long categoryId)
                                                            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()
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getCategories

@ThreadLocalCachable
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

getCategoryNames

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

getCategoryNames

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

getCategoryNames

public java.lang.String[] getCategoryNames(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

getChildCategories

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

getChildCategoriesCount

public int getChildCategoriesCount(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,
                                                                                             int start,
                                                                                             int end,
                                                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                      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 parentCategoryId,
                                                                                             long vocabularyId,
                                                                                             int start,
                                                                                             int end,
                                                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                      throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getVocabularyCategoriesCount

public int getVocabularyCategoriesCount(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,
                                                                                                 int start,
                                                                                                 int end,
                                                                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                          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

moveCategory

public com.liferay.portlet.asset.model.AssetCategory moveCategory(long categoryId,
                                                                  long parentCategoryId,
                                                                  long vocabularyId,
                                                                  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

rebuildTree

public void rebuildTree(long groupId,
                        boolean force)
                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

search

public java.util.List<com.liferay.portlet.asset.model.AssetCategory> 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,
                                                                    java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
                                                                    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)

getCategoryNames

protected java.lang.String[] getCategoryNames(java.util.List<com.liferay.portlet.asset.model.AssetCategory> categories)

updateChildrenVocabularyId

protected void updateChildrenVocabularyId(com.liferay.portlet.asset.model.AssetCategory category,
                                          long vocabularyId)
                                   throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

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