Liferay 7.0-ce-b4

com.liferay.portlet.asset.service
Interface AssetCategoryService

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

@AccessControlled
@JSONWebService
@ProviderType
@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
 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)
           
 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)
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 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)
           
 AssetCategory updateCategory(long categoryId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext)
           
 

Method Detail

addCategory

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

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

deleteCategories

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

deleteCategories

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

Throws:
PortalException

deleteCategory

void deleteCategory(long categoryId)
                    throws PortalException
Throws:
PortalException

fetchCategory

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

getCategories

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

getCategory

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

getCategoryPath

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String getCategoryPath(long categoryId)
                       throws PortalException
Throws:
PortalException

getChildCategories

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

getChildCategories

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

getJSONSearch

@Deprecated
@Transactional(propagation=SUPPORTS,
               readOnly=true)
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
@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

getJSONVocabularyCategories

@Deprecated
@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

getOSGiServiceIdentifier

String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Returns:
the OSGi service identifier

getVocabularyCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getVocabularyCategories(long groupId,
                                                                                     String name,
                                                                                     long vocabularyId,
                                                                                     int start,
                                                                                     int end,
                                                                                     OrderByComparator<AssetCategory> obc)

getVocabularyCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getVocabularyCategories(long groupId,
                                                                                     long parentCategoryId,
                                                                                     long vocabularyId,
                                                                                     int start,
                                                                                     int end,
                                                                                     OrderByComparator<AssetCategory> obc)

getVocabularyCategories

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

getVocabularyCategories

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

getVocabularyCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getVocabularyCategoriesCount(long groupId,
                                                                          String name,
                                                                          long vocabularyId)

getVocabularyCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getVocabularyCategoriesCount(long groupId,
                                                                          long parentCategory,
                                                                          long vocabularyId)

getVocabularyCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getVocabularyCategoriesCount(long groupId,
                                                                          long vocabularyId)

getVocabularyCategoriesDisplay

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

getVocabularyCategoriesDisplay

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

getVocabularyRootCategories

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

getVocabularyRootCategories

@Deprecated
@Transactional(propagation=SUPPORTS,
               readOnly=true)
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

getVocabularyRootCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getVocabularyRootCategoriesCount(long groupId,
                                                                              long vocabularyId)

moveCategory

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

search

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

search

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

search

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

searchCategoriesDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategoryDisplay searchCategoriesDisplay(long groupId,
                                                                                      String title,
                                                                                      long parentCategoryId,
                                                                                      long vocabularyId,
                                                                                      int start,
                                                                                      int end)
                                             throws PortalException
Throws:
PortalException

searchCategoriesDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategoryDisplay searchCategoriesDisplay(long groupId,
                                                                                      String title,
                                                                                      long vocabularyId,
                                                                                      long parentCategoryId,
                                                                                      int start,
                                                                                      int end,
                                                                                      Sort sort)
                                             throws PortalException
Throws:
PortalException

searchCategoriesDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategoryDisplay searchCategoriesDisplay(long groupId,
                                                                                      String title,
                                                                                      long vocabularyId,
                                                                                      int start,
                                                                                      int end)
                                             throws PortalException
Throws:
PortalException

searchCategoriesDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
                                                                                      String title,
                                                                                      long[] parentCategoryIds,
                                                                                      long[] vocabularyIds,
                                                                                      int start,
                                                                                      int end)
                                             throws PortalException
Throws:
PortalException

searchCategoriesDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
                                                                                      String title,
                                                                                      long[] vocabularyIds,
                                                                                      long[] parentCategoryIds,
                                                                                      int start,
                                                                                      int end,
                                                                                      Sort sort)
                                             throws PortalException
Throws:
PortalException

searchCategoriesDisplay

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
                                                                                      String title,
                                                                                      long[] vocabularyIds,
                                                                                      int start,
                                                                                      int end)
                                             throws PortalException
Throws:
PortalException

updateCategory

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

Liferay 7.0-ce-b4