Liferay 7.0-ce-b4

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

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

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.service.BaseServiceImpl
ANONYMOUS_NAMES, JRUN_ANONYMOUS, ORACLE_ANONYMOUS, SUN_ANONYMOUS, WEBLOGIC_ANONYMOUS
 
Constructor Summary
AssetCategoryServiceImpl()
           
 
Method Summary
 AssetCategory addCategory(long groupId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext)
           
 AssetCategory addCategory(long groupId, String title, long vocabularyId, ServiceContext serviceContext)
           
 void deleteCategories(long[] categoryIds)
           
 List<AssetCategory> deleteCategories(long[] categoryIds, ServiceContext serviceContext)
          Deprecated. As of 7.0.0, Replaced by deleteCategories(long[])
 void deleteCategory(long categoryId)
           
 AssetCategory fetchCategory(long categoryId)
           
protected  List<AssetCategory> filterCategories(List<AssetCategory> categories)
           
 List<AssetCategory> getCategories(String className, long classPK)
           
 AssetCategory getCategory(long categoryId)
           
 String getCategoryPath(long categoryId)
           
 List<AssetCategory> getChildCategories(long parentCategoryId)
           
 List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator<AssetCategory> obc)
           
 JSONArray getJSONSearch(long groupId, String name, long[] vocabularyIds, int start, int end)
          Deprecated. As of 6.2.0, replaced by search(long[], String, long[], int, int)
 JSONObject getJSONVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
          Deprecated. As of 6.2.0, replaced by getVocabularyCategoriesDisplay(long, int, int, OrderByComparator)
 JSONObject getJSONVocabularyCategories(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
          Deprecated. As of 6.2.0, replaced by getVocabularyCategoriesDisplay(long, String, long, int, int, OrderByComparator)
 List<AssetCategory> getVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
 List<AssetCategory> getVocabularyCategories(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
 List<AssetCategory> getVocabularyCategories(long groupId, long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
 List<AssetCategory> getVocabularyCategories(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
 int getVocabularyCategoriesCount(long groupId, long vocabularyId)
           
 int getVocabularyCategoriesCount(long groupId, long parentCategory, long vocabularyId)
           
 int getVocabularyCategoriesCount(long groupId, String name, long vocabularyId)
           
 AssetCategoryDisplay getVocabularyCategoriesDisplay(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
 AssetCategoryDisplay getVocabularyCategoriesDisplay(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
 List<AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
          Deprecated. As of 6.2.0, replaced by getVocabularyRootCategories(long, long, int, int, OrderByComparator)
 List<AssetCategory> getVocabularyRootCategories(long groupId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
 int getVocabularyRootCategoriesCount(long groupId, long vocabularyId)
           
 AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, ServiceContext serviceContext)
           
 JSONArray search(long[] groupIds, String name, long[] vocabularyIds, int start, int end)
           
 List<AssetCategory> search(long groupId, String keywords, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
 JSONArray search(long groupId, String name, String[] categoryProperties, int start, int end)
           
 AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] vocabularyIds, int start, int end)
           
 AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end)
           
 AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] vocabularyIds, long[] parentCategoryIds, int start, int end, Sort sort)
           
 AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long vocabularyId, int start, int end)
           
 AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long parentCategoryId, long vocabularyId, int start, int end)
           
 AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long vocabularyId, long parentCategoryId, int start, int end, Sort sort)
           
protected  JSONArray toJSONArray(List<AssetCategory> categories)
           
 AssetCategory updateCategory(long categoryId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, 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.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 AssetCategory addCategory(long groupId,
                                 long parentCategoryId,
                                 Map<Locale,String> titleMap,
                                 Map<Locale,String> descriptionMap,
                                 long vocabularyId,
                                 String[] categoryProperties,
                                 ServiceContext serviceContext)
                          throws PortalException
Throws:
PortalException

addCategory

public AssetCategory addCategory(long groupId,
                                 String title,
                                 long vocabularyId,
                                 ServiceContext serviceContext)
                          throws PortalException
Throws:
PortalException

deleteCategories

public void deleteCategories(long[] categoryIds)
                      throws PortalException
Throws:
PortalException

deleteCategories

@Deprecated
public List<AssetCategory> deleteCategories(long[] categoryIds,
                                                       ServiceContext serviceContext)
                                     throws PortalException
Deprecated. As of 7.0.0, Replaced by deleteCategories(long[])

Throws:
PortalException

deleteCategory

public void deleteCategory(long categoryId)
                    throws PortalException
Throws:
PortalException

fetchCategory

public AssetCategory fetchCategory(long categoryId)
                            throws PortalException
Throws:
PortalException

getCategories

public List<AssetCategory> getCategories(String className,
                                         long classPK)
                                  throws PortalException
Throws:
PortalException

getCategory

public AssetCategory getCategory(long categoryId)
                          throws PortalException
Throws:
PortalException

getCategoryPath

public String getCategoryPath(long categoryId)
                       throws PortalException
Throws:
PortalException

getChildCategories

public List<AssetCategory> getChildCategories(long parentCategoryId)
                                       throws PortalException
Throws:
PortalException

getChildCategories

public List<AssetCategory> getChildCategories(long parentCategoryId,
                                              int start,
                                              int end,
                                              OrderByComparator<AssetCategory> obc)
                                       throws PortalException
Throws:
PortalException

getJSONSearch

@Deprecated
public JSONArray getJSONSearch(long groupId,
                                          String name,
                                          long[] vocabularyIds,
                                          int start,
                                          int end)
                        throws PortalException
Deprecated. As of 6.2.0, replaced by search(long[], String, long[], int, int)

Throws:
PortalException

getJSONVocabularyCategories

@Deprecated
public JSONObject getJSONVocabularyCategories(long vocabularyId,
                                                         int start,
                                                         int end,
                                                         OrderByComparator<AssetCategory> obc)
                                       throws PortalException
Deprecated. As of 6.2.0, replaced by getVocabularyCategoriesDisplay(long, int, int, OrderByComparator)

Throws:
PortalException

getJSONVocabularyCategories

@Deprecated
public JSONObject getJSONVocabularyCategories(long groupId,
                                                         String name,
                                                         long vocabularyId,
                                                         int start,
                                                         int end,
                                                         OrderByComparator<AssetCategory> obc)
                                       throws PortalException
Deprecated. As of 6.2.0, replaced by getVocabularyCategoriesDisplay(long, String, long, int, int, OrderByComparator)

Throws:
PortalException

getVocabularyCategories

public List<AssetCategory> getVocabularyCategories(long vocabularyId,
                                                   int start,
                                                   int end,
                                                   OrderByComparator<AssetCategory> obc)
                                            throws PortalException
Throws:
PortalException

getVocabularyCategories

public List<AssetCategory> getVocabularyCategories(long parentCategoryId,
                                                   long vocabularyId,
                                                   int start,
                                                   int end,
                                                   OrderByComparator<AssetCategory> obc)
                                            throws PortalException
Throws:
PortalException

getVocabularyCategories

public List<AssetCategory> getVocabularyCategories(long groupId,
                                                   long parentCategoryId,
                                                   long vocabularyId,
                                                   int start,
                                                   int end,
                                                   OrderByComparator<AssetCategory> obc)

getVocabularyCategories

public List<AssetCategory> getVocabularyCategories(long groupId,
                                                   String name,
                                                   long vocabularyId,
                                                   int start,
                                                   int end,
                                                   OrderByComparator<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 AssetCategoryDisplay getVocabularyCategoriesDisplay(long vocabularyId,
                                                           int start,
                                                           int end,
                                                           OrderByComparator<AssetCategory> obc)
                                                    throws PortalException
Throws:
PortalException

getVocabularyCategoriesDisplay

public AssetCategoryDisplay getVocabularyCategoriesDisplay(long groupId,
                                                           String name,
                                                           long vocabularyId,
                                                           int start,
                                                           int end,
                                                           OrderByComparator<AssetCategory> obc)
                                                    throws PortalException
Throws:
PortalException

getVocabularyRootCategories

@Deprecated
public List<AssetCategory> getVocabularyRootCategories(long vocabularyId,
                                                                  int start,
                                                                  int end,
                                                                  OrderByComparator<AssetCategory> obc)
                                                throws PortalException
Deprecated. As of 6.2.0, replaced by getVocabularyRootCategories(long, long, int, int, OrderByComparator)

Throws:
PortalException

getVocabularyRootCategories

public List<AssetCategory> getVocabularyRootCategories(long groupId,
                                                       long vocabularyId,
                                                       int start,
                                                       int end,
                                                       OrderByComparator<AssetCategory> obc)

getVocabularyRootCategoriesCount

public int getVocabularyRootCategoriesCount(long groupId,
                                            long vocabularyId)

moveCategory

public AssetCategory moveCategory(long categoryId,
                                  long parentCategoryId,
                                  long vocabularyId,
                                  ServiceContext serviceContext)
                           throws PortalException
Throws:
PortalException

search

public List<AssetCategory> search(long groupId,
                                  String keywords,
                                  long vocabularyId,
                                  int start,
                                  int end,
                                  OrderByComparator<AssetCategory> obc)

search

public JSONArray search(long groupId,
                        String name,
                        String[] categoryProperties,
                        int start,
                        int end)
                 throws PortalException
Throws:
PortalException

search

public JSONArray search(long[] groupIds,
                        String name,
                        long[] vocabularyIds,
                        int start,
                        int end)
                 throws PortalException
Throws:
PortalException

searchCategoriesDisplay

public AssetCategoryDisplay searchCategoriesDisplay(long groupId,
                                                    String title,
                                                    long vocabularyId,
                                                    int start,
                                                    int end)
                                             throws PortalException
Throws:
PortalException

searchCategoriesDisplay

public AssetCategoryDisplay searchCategoriesDisplay(long groupId,
                                                    String title,
                                                    long parentCategoryId,
                                                    long vocabularyId,
                                                    int start,
                                                    int end)
                                             throws PortalException
Throws:
PortalException

searchCategoriesDisplay

public AssetCategoryDisplay searchCategoriesDisplay(long groupId,
                                                    String title,
                                                    long vocabularyId,
                                                    long parentCategoryId,
                                                    int start,
                                                    int end,
                                                    Sort sort)
                                             throws PortalException
Throws:
PortalException

searchCategoriesDisplay

public AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
                                                    String title,
                                                    long[] vocabularyIds,
                                                    int start,
                                                    int end)
                                             throws PortalException
Throws:
PortalException

searchCategoriesDisplay

public AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
                                                    String title,
                                                    long[] parentCategoryIds,
                                                    long[] vocabularyIds,
                                                    int start,
                                                    int end)
                                             throws PortalException
Throws:
PortalException

searchCategoriesDisplay

public AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
                                                    String title,
                                                    long[] vocabularyIds,
                                                    long[] parentCategoryIds,
                                                    int start,
                                                    int end,
                                                    Sort sort)
                                             throws PortalException
Throws:
PortalException

updateCategory

public AssetCategory updateCategory(long categoryId,
                                    long parentCategoryId,
                                    Map<Locale,String> titleMap,
                                    Map<Locale,String> descriptionMap,
                                    long vocabularyId,
                                    String[] categoryProperties,
                                    ServiceContext serviceContext)
                             throws PortalException
Throws:
PortalException

filterCategories

protected List<AssetCategory> filterCategories(List<AssetCategory> categories)
                                        throws PortalException
Throws:
PortalException

toJSONArray

protected JSONArray toJSONArray(List<AssetCategory> categories)
                         throws PortalException
Throws:
PortalException

Liferay 7.0-ce-b4