Liferay 7.0-ga1 portal-impl

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

java.lang.Object
  extended by com.liferay.portal.kernel.service.BaseServiceImpl
      extended by com.liferay.portlet.asset.service.base.AssetCategoryServiceBaseImpl
          extended by com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl
All Implemented Interfaces:
com.liferay.asset.kernel.service.AssetCategoryService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseService

public class AssetCategoryServiceImpl
extends AssetCategoryServiceBaseImpl

Provides the remote service for accessing, adding, deleting, moving, and updating asset categories. Its methods include permission checks.


Field Summary
 
Fields inherited from class com.liferay.portlet.asset.service.base.AssetCategoryServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryPropertyFinder, assetCategoryPropertyLocalService, assetCategoryPropertyPersistence, assetCategoryPropertyService, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, assetVocabularyFinder, assetVocabularyLocalService, assetVocabularyPersistence, assetVocabularyService, classNameLocalService, classNamePersistence, classNameService, counterLocalService, resourceLocalService, userFinder, userLocalService, userPersistence, userService
 
Fields inherited from class com.liferay.portal.kernel.service.BaseServiceImpl
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
AssetCategoryServiceImpl()
           
 
Method Summary
 com.liferay.asset.kernel.model.AssetCategory addCategory(long groupId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 com.liferay.asset.kernel.model.AssetCategory addCategory(long groupId, String title, long vocabularyId, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 void deleteCategories(long[] categoryIds)
           
 List<com.liferay.asset.kernel.model.AssetCategory> deleteCategories(long[] categoryIds, com.liferay.portal.kernel.service.ServiceContext serviceContext)
          Deprecated. As of 7.0.0, Replaced by deleteCategories(long[])
 void deleteCategory(long categoryId)
           
 com.liferay.asset.kernel.model.AssetCategory fetchCategory(long categoryId)
           
protected  List<com.liferay.asset.kernel.model.AssetCategory> filterCategories(List<com.liferay.asset.kernel.model.AssetCategory> categories)
           
 List<com.liferay.asset.kernel.model.AssetCategory> getCategories(String className, long classPK)
           
 com.liferay.asset.kernel.model.AssetCategory getCategory(long categoryId)
           
 String getCategoryPath(long categoryId)
           
 List<com.liferay.asset.kernel.model.AssetCategory> getChildCategories(long parentCategoryId)
           
 List<com.liferay.asset.kernel.model.AssetCategory> getChildCategories(long parentCategoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
           
 List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
           
 List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(long parentCategoryId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
           
 List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(long groupId, long parentCategoryId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
           
 List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(long groupId, String name, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
           
 int getVocabularyCategoriesCount(long groupId, long vocabularyId)
           
 int getVocabularyCategoriesCount(long groupId, long parentCategory, long vocabularyId)
           
 int getVocabularyCategoriesCount(long groupId, String name, long vocabularyId)
           
 com.liferay.asset.kernel.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
           
 com.liferay.asset.kernel.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(long groupId, String name, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
           
 List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyRootCategories(long groupId, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
           
 int getVocabularyRootCategoriesCount(long groupId, long vocabularyId)
           
 com.liferay.asset.kernel.model.AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 com.liferay.portal.kernel.json.JSONArray search(long[] groupIds, String name, long[] vocabularyIds, int start, int end)
           
 List<com.liferay.asset.kernel.model.AssetCategory> search(long groupId, String keywords, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
           
 com.liferay.portal.kernel.json.JSONArray search(long groupId, String name, String[] categoryProperties, int start, int end)
           
 com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] vocabularyIds, int start, int end)
           
 com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end)
           
 com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] vocabularyIds, long[] parentCategoryIds, int start, int end, com.liferay.portal.kernel.search.Sort sort)
           
 com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long vocabularyId, int start, int end)
           
 com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long parentCategoryId, long vocabularyId, int start, int end)
           
 com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long vocabularyId, long parentCategoryId, int start, int end, com.liferay.portal.kernel.search.Sort sort)
           
protected  com.liferay.portal.kernel.json.JSONArray toJSONArray(List<com.liferay.asset.kernel.model.AssetCategory> categories)
           
 com.liferay.asset.kernel.model.AssetCategory updateCategory(long categoryId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, com.liferay.portal.kernel.service.ServiceContext serviceContext)
           
 
Methods inherited from class com.liferay.portlet.asset.service.base.AssetCategoryServiceBaseImpl
afterPropertiesSet, destroy, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryPropertyFinder, getAssetCategoryPropertyLocalService, getAssetCategoryPropertyPersistence, getAssetCategoryPropertyService, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getAssetVocabularyFinder, getAssetVocabularyLocalService, getAssetVocabularyPersistence, getAssetVocabularyService, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCounterLocalService, getModelClass, getModelClassName, getOSGiServiceIdentifier, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryPropertyFinder, setAssetCategoryPropertyLocalService, setAssetCategoryPropertyPersistence, setAssetCategoryPropertyService, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setAssetVocabularyFinder, setAssetVocabularyLocalService, setAssetVocabularyPersistence, setAssetVocabularyService, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCounterLocalService, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, setUserService
 
Methods inherited from class com.liferay.portal.kernel.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

AssetCategoryServiceImpl

public AssetCategoryServiceImpl()
Method Detail

addCategory

public com.liferay.asset.kernel.model.AssetCategory addCategory(long groupId,
                                                                long parentCategoryId,
                                                                Map<Locale,String> titleMap,
                                                                Map<Locale,String> descriptionMap,
                                                                long vocabularyId,
                                                                String[] categoryProperties,
                                                                com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                         throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

addCategory

public com.liferay.asset.kernel.model.AssetCategory addCategory(long groupId,
                                                                String title,
                                                                long vocabularyId,
                                                                com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                         throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

deleteCategories

public void deleteCategories(long[] categoryIds)
                      throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

deleteCategories

@Deprecated
public List<com.liferay.asset.kernel.model.AssetCategory> deleteCategories(long[] categoryIds,
                                                                                      com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                                    throws com.liferay.portal.kernel.exception.PortalException
Deprecated. As of 7.0.0, Replaced by deleteCategories(long[])

Throws:
com.liferay.portal.kernel.exception.PortalException

deleteCategory

public void deleteCategory(long categoryId)
                    throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

fetchCategory

public com.liferay.asset.kernel.model.AssetCategory fetchCategory(long categoryId)
                                                           throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getCategories

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

getCategory

public com.liferay.asset.kernel.model.AssetCategory getCategory(long categoryId)
                                                         throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getCategoryPath

public String getCategoryPath(long categoryId)
                       throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getChildCategories

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

getChildCategories

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

getVocabularyCategories

public List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(long vocabularyId,
                                                                                  int start,
                                                                                  int end,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
                                                                           throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getVocabularyCategories

public List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(long parentCategoryId,
                                                                                  long vocabularyId,
                                                                                  int start,
                                                                                  int end,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
                                                                           throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getVocabularyCategories

public List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(long groupId,
                                                                                  long parentCategoryId,
                                                                                  long vocabularyId,
                                                                                  int start,
                                                                                  int end,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)

getVocabularyCategories

public List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(long groupId,
                                                                                  String name,
                                                                                  long vocabularyId,
                                                                                  int start,
                                                                                  int end,
                                                                                  com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)

getVocabularyCategoriesCount

public int getVocabularyCategoriesCount(long groupId,
                                        long vocabularyId)

getVocabularyCategoriesCount

public int getVocabularyCategoriesCount(long groupId,
                                        long parentCategory,
                                        long vocabularyId)

getVocabularyCategoriesCount

public int getVocabularyCategoriesCount(long groupId,
                                        String name,
                                        long vocabularyId)

getVocabularyCategoriesDisplay

public com.liferay.asset.kernel.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(long vocabularyId,
                                                                                          int start,
                                                                                          int end,
                                                                                          com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
                                                                                   throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getVocabularyCategoriesDisplay

public com.liferay.asset.kernel.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(long groupId,
                                                                                          String name,
                                                                                          long vocabularyId,
                                                                                          int start,
                                                                                          int end,
                                                                                          com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
                                                                                   throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

getVocabularyRootCategories

public List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyRootCategories(long groupId,
                                                                                      long vocabularyId,
                                                                                      int start,
                                                                                      int end,
                                                                                      com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)

getVocabularyRootCategoriesCount

public int getVocabularyRootCategoriesCount(long groupId,
                                            long vocabularyId)

moveCategory

public com.liferay.asset.kernel.model.AssetCategory moveCategory(long categoryId,
                                                                 long parentCategoryId,
                                                                 long vocabularyId,
                                                                 com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                          throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

search

public List<com.liferay.asset.kernel.model.AssetCategory> search(long groupId,
                                                                 String keywords,
                                                                 long vocabularyId,
                                                                 int start,
                                                                 int end,
                                                                 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)

search

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

search

public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
                                                       String name,
                                                       long[] vocabularyIds,
                                                       int start,
                                                       int end)
                                                throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

searchCategoriesDisplay

public com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long groupId,
                                                                                   String title,
                                                                                   long vocabularyId,
                                                                                   int start,
                                                                                   int end)
                                                                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

searchCategoriesDisplay

public com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long groupId,
                                                                                   String title,
                                                                                   long parentCategoryId,
                                                                                   long vocabularyId,
                                                                                   int start,
                                                                                   int end)
                                                                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

searchCategoriesDisplay

public com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long groupId,
                                                                                   String title,
                                                                                   long vocabularyId,
                                                                                   long parentCategoryId,
                                                                                   int start,
                                                                                   int end,
                                                                                   com.liferay.portal.kernel.search.Sort sort)
                                                                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

searchCategoriesDisplay

public com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
                                                                                   String title,
                                                                                   long[] vocabularyIds,
                                                                                   int start,
                                                                                   int end)
                                                                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

searchCategoriesDisplay

public com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
                                                                                   String title,
                                                                                   long[] parentCategoryIds,
                                                                                   long[] vocabularyIds,
                                                                                   int start,
                                                                                   int end)
                                                                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

searchCategoriesDisplay

public com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
                                                                                   String title,
                                                                                   long[] vocabularyIds,
                                                                                   long[] parentCategoryIds,
                                                                                   int start,
                                                                                   int end,
                                                                                   com.liferay.portal.kernel.search.Sort sort)
                                                                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

updateCategory

public com.liferay.asset.kernel.model.AssetCategory updateCategory(long categoryId,
                                                                   long parentCategoryId,
                                                                   Map<Locale,String> titleMap,
                                                                   Map<Locale,String> descriptionMap,
                                                                   long vocabularyId,
                                                                   String[] categoryProperties,
                                                                   com.liferay.portal.kernel.service.ServiceContext serviceContext)
                                                            throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

filterCategories

protected List<com.liferay.asset.kernel.model.AssetCategory> filterCategories(List<com.liferay.asset.kernel.model.AssetCategory> categories)
                                                                       throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

toJSONArray

protected com.liferay.portal.kernel.json.JSONArray toJSONArray(List<com.liferay.asset.kernel.model.AssetCategory> categories)
                                                        throws com.liferay.portal.kernel.exception.PortalException
Throws:
com.liferay.portal.kernel.exception.PortalException

Liferay 7.0-ga1 portal-impl