Liferay 6.2.0

com.liferay.portlet.asset.service
Interface AssetCategoryService

All Superinterfaces:
BaseService
All Known Implementing Classes:
AssetCategoryServiceBaseImpl, AssetCategoryServiceImpl, AssetCategoryServiceWrapper

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

Provides the remote service interface for AssetCategory. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
AssetCategoryServiceUtil, AssetCategoryServiceBaseImpl, AssetCategoryServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
abstract  AssetCategory addCategory(long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext)
           
abstract  AssetCategory addCategory(String title, long vocabularyId, ServiceContext serviceContext)
           
abstract  void deleteCategories(long[] categoryIds)
          Deprecated. As of 6.2.0, Replaced by deleteCategories(long[], ServiceContext)
abstract  List<AssetCategory> deleteCategories(long[] categoryIds, ServiceContext serviceContext)
           
abstract  void deleteCategory(long categoryId)
           
abstract  String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
abstract  List<AssetCategory> getCategories(String className, long classPK)
           
abstract  AssetCategory getCategory(long categoryId)
           
abstract  List<AssetCategory> getChildCategories(long parentCategoryId)
           
abstract  List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator obc)
           
abstract  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)
abstract  JSONObject getJSONVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator obc)
          Deprecated. As of 6.2.0, replaced by getVocabularyCategoriesDisplay(long, int, int, OrderByComparator)
abstract  JSONObject getJSONVocabularyCategories(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator obc)
          Deprecated. As of 6.2.0, replaced by getVocabularyCategoriesDisplay(long, String, long, int, int, OrderByComparator)
abstract  List<AssetCategory> getVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator obc)
           
abstract  List<AssetCategory> getVocabularyCategories(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator obc)
           
abstract  List<AssetCategory> getVocabularyCategories(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator obc)
           
abstract  int getVocabularyCategoriesCount(long groupId, long vocabularyId)
           
abstract  int getVocabularyCategoriesCount(long groupId, String name, long vocabularyId)
           
abstract  AssetCategoryDisplay getVocabularyCategoriesDisplay(long vocabularyId, int start, int end, OrderByComparator obc)
           
abstract  AssetCategoryDisplay getVocabularyCategoriesDisplay(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator obc)
           
abstract  List<AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, OrderByComparator obc)
          Deprecated. As of 6.2.0, replaced by getVocabularyRootCategories(long, long, int, int, OrderByComparator)
abstract  List<AssetCategory> getVocabularyRootCategories(long groupId, long vocabularyId, int start, int end, OrderByComparator obc)
           
abstract  int getVocabularyRootCategoriesCount(long groupId, long vocabularyId)
           
abstract  AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, ServiceContext serviceContext)
           
abstract  JSONArray search(long[] groupIds, String name, long[] vocabularyIds, int start, int end)
           
abstract  List<AssetCategory> search(long groupId, String keywords, long vocabularyId, int start, int end, OrderByComparator obc)
           
abstract  JSONArray search(long groupId, String name, String[] categoryProperties, int start, int end)
           
abstract  void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
abstract  AssetCategory updateCategory(long categoryId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext)
           
 

Method Detail

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addCategory

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

addCategory

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

deleteCategories

void deleteCategories(long[] categoryIds)
                      throws PortalException,
                             SystemException
Deprecated. As of 6.2.0, Replaced by deleteCategories(long[], ServiceContext)

Throws:
PortalException
SystemException

deleteCategories

List<AssetCategory> deleteCategories(long[] categoryIds,
                                     ServiceContext serviceContext)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

deleteCategory

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

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getCategories(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)
List<AssetCategory> getChildCategories(long parentCategoryId)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

getChildCategories

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

getJSONSearch

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JSONArray getJSONSearch(long groupId,
                                                                 String name,
                                                                 long[] vocabularyIds,
                                                                 int start,
                                                                 int end)
                        throws PortalException,
                               SystemException
Deprecated. As of 6.2.0, replaced by search(long[], String, long[], int, int)

Throws:
PortalException
SystemException

getJSONVocabularyCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JSONObject getJSONVocabularyCategories(long vocabularyId,
                                                                                int start,
                                                                                int end,
                                                                                OrderByComparator obc)
                                       throws PortalException,
                                              SystemException
Deprecated. As of 6.2.0, replaced by getVocabularyCategoriesDisplay(long, int, int, OrderByComparator)

Throws:
PortalException
SystemException

getJSONVocabularyCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JSONObject getJSONVocabularyCategories(long groupId,
                                                                                String name,
                                                                                long vocabularyId,
                                                                                int start,
                                                                                int end,
                                                                                OrderByComparator obc)
                                       throws PortalException,
                                              SystemException
Deprecated. As of 6.2.0, replaced by getVocabularyCategoriesDisplay(long, String, long, int, int, OrderByComparator)

Throws:
PortalException
SystemException

getVocabularyCategories

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

getVocabularyCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
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)
List<AssetCategory> getVocabularyCategories(long groupId,
                                                                                     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,
                                                                          String name,
                                                                          long vocabularyId)
                                 throws SystemException
Throws:
SystemException

getVocabularyCategoriesDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategoryDisplay getVocabularyCategoriesDisplay(long vocabularyId,
                                                                                             int start,
                                                                                             int end,
                                                                                             OrderByComparator obc)
                                                    throws PortalException,
                                                           SystemException
Throws:
PortalException
SystemException

getVocabularyCategoriesDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategoryDisplay getVocabularyCategoriesDisplay(long groupId,
                                                                                             String name,
                                                                                             long vocabularyId,
                                                                                             int start,
                                                                                             int end,
                                                                                             OrderByComparator obc)
                                                    throws PortalException,
                                                           SystemException
Throws:
PortalException
SystemException

getVocabularyRootCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getVocabularyRootCategories(long vocabularyId,
                                                                                         int start,
                                                                                         int end,
                                                                                         OrderByComparator obc)
                                                throws PortalException,
                                                       SystemException
Deprecated. As of 6.2.0, replaced by getVocabularyRootCategories(long, long, int, int, OrderByComparator)

Throws:
PortalException
SystemException

getVocabularyRootCategories

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

getVocabularyRootCategoriesCount

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

moveCategory

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

search

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

search

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

search

@Transactional(propagation=SUPPORTS,
               readOnly=true)
JSONArray search(long[] groupIds,
                                                          String name,
                                                          long[] vocabularyIds,
                                                          int start,
                                                          int end)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

updateCategory

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

Liferay 6.2.0