com.liferay.portlet.asset.service
Interface AssetCategoryService

All Known Implementing Classes:
AssetCategoryServiceWrapper

@JSONWebService
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface AssetCategoryService

The interface for the asset category remote service.

This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

Author:
Brian Wing Shun Chan
See Also:
AssetCategoryServiceUtil, com.liferay.portlet.asset.service.base.AssetCategoryServiceBaseImpl, com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl
Generated:

Method Summary
 AssetCategory addCategory(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, ServiceContext serviceContext)
           
 void deleteCategories(long[] categoryIds)
           
 void deleteCategory(long categoryId)
           
 java.util.List<AssetCategory> getCategories(java.lang.String className, long classPK)
           
 AssetCategory getCategory(long categoryId)
           
 java.util.List<AssetCategory> getChildCategories(long parentCategoryId)
           
 java.util.List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator obc)
           
 JSONObject getJSONVocabularyCategories(long groupId, java.lang.String name, long vocabularyId, int start, int end, OrderByComparator obc)
           
 java.util.List<AssetCategory> getVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator obc)
           
 java.util.List<AssetCategory> getVocabularyCategories(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator obc)
           
 java.util.List<AssetCategory> getVocabularyCategories(long groupId, java.lang.String name, long vocabularyId, int start, int end, OrderByComparator obc)
           
 int getVocabularyCategoriesCount(long groupId, long vocabularyId)
           
 int getVocabularyCategoriesCount(long groupId, java.lang.String name, long vocabularyId)
           
 java.util.List<AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, OrderByComparator obc)
           
 AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, ServiceContext serviceContext)
           
 java.util.List<AssetCategory> search(long groupId, java.lang.String keywords, long vocabularyId, int start, int end, OrderByComparator obc)
           
 JSONArray search(long groupId, java.lang.String name, java.lang.String[] categoryProperties, int start, int end)
           
 AssetCategory updateCategory(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, ServiceContext serviceContext)
           
 

Method Detail

addCategory

AssetCategory addCategory(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,
                          ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

deleteCategories

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

deleteCategory

void deleteCategory(long categoryId)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getCategories(java.lang.String className,
                                                                                     long classPK)
                                            throws PortalException,
                                                   SystemException
Throws:
PortalException
SystemException

getCategory

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategory getCategory(long categoryId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getChildCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getChildCategories(long parentCategoryId)
                                                 throws PortalException,
                                                        SystemException
Throws:
PortalException
SystemException

getChildCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getChildCategories(long parentCategoryId,
                                                                                          int start,
                                                                                          int end,
                                                                                          OrderByComparator obc)
                                                 throws PortalException,
                                                        SystemException
Throws:
PortalException
SystemException

getJSONVocabularyCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JSONObject getJSONVocabularyCategories(long groupId,
                                                                                java.lang.String name,
                                                                                long vocabularyId,
                                                                                int start,
                                                                                int end,
                                                                                OrderByComparator obc)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getVocabularyCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getVocabularyCategories(long vocabularyId,
                                                                                               int start,
                                                                                               int end,
                                                                                               OrderByComparator obc)
                                                      throws PortalException,
                                                             SystemException
Throws:
PortalException
SystemException

getVocabularyCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getVocabularyCategories(long parentCategoryId,
                                                                                               long vocabularyId,
                                                                                               int start,
                                                                                               int end,
                                                                                               OrderByComparator obc)
                                                      throws PortalException,
                                                             SystemException
Throws:
PortalException
SystemException

getVocabularyCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getVocabularyCategories(long groupId,
                                                                                               java.lang.String name,
                                                                                               long vocabularyId,
                                                                                               int start,
                                                                                               int end,
                                                                                               OrderByComparator obc)
                                                      throws SystemException
Throws:
SystemException

getVocabularyCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getVocabularyCategoriesCount(long groupId,
                                                                          long vocabularyId)
                                 throws SystemException
Throws:
SystemException

getVocabularyCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getVocabularyCategoriesCount(long groupId,
                                                                          java.lang.String name,
                                                                          long vocabularyId)
                                 throws SystemException
Throws:
SystemException

getVocabularyRootCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> getVocabularyRootCategories(long vocabularyId,
                                                                                                   int start,
                                                                                                   int end,
                                                                                                   OrderByComparator obc)
                                                          throws PortalException,
                                                                 SystemException
Throws:
PortalException
SystemException

moveCategory

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

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<AssetCategory> search(long groupId,
                                                                              java.lang.String keywords,
                                                                              long vocabularyId,
                                                                              int start,
                                                                              int end,
                                                                              OrderByComparator obc)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JSONArray search(long groupId,
                                                          java.lang.String name,
                                                          java.lang.String[] categoryProperties,
                                                          int start,
                                                          int end)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

updateCategory

AssetCategory updateCategory(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,
                             ServiceContext serviceContext)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException