Liferay 6.2.0

com.liferay.portlet.asset.service
Interface AssetCategoryLocalService

All Superinterfaces:
BaseLocalService, PersistedModelLocalService
All Known Implementing Classes:
AssetCategoryLocalServiceBaseImpl, AssetCategoryLocalServiceImpl, AssetCategoryLocalServiceWrapper

@ProviderType
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface AssetCategoryLocalService
extends BaseLocalService, PersistedModelLocalService

Provides the local service interface for AssetCategory. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

See Also:
AssetCategoryLocalServiceUtil, AssetCategoryLocalServiceBaseImpl, AssetCategoryLocalServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
abstract  AssetCategory addAssetCategory(AssetCategory assetCategory)
          Adds the asset category to the database.
abstract  void addAssetEntryAssetCategories(long entryId, List<AssetCategory> AssetCategories)
           
abstract  void addAssetEntryAssetCategories(long entryId, long[] categoryIds)
           
abstract  void addAssetEntryAssetCategory(long entryId, AssetCategory assetCategory)
           
abstract  void addAssetEntryAssetCategory(long entryId, long categoryId)
           
abstract  AssetCategory addCategory(long userId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext)
           
abstract  AssetCategory addCategory(long userId, String title, long vocabularyId, ServiceContext serviceContext)
           
abstract  void addCategoryResources(AssetCategory category, boolean addGroupPermissions, boolean addGuestPermissions)
           
abstract  void addCategoryResources(AssetCategory category, String[] groupPermissions, String[] guestPermissions)
           
abstract  void clearAssetEntryAssetCategories(long entryId)
           
abstract  AssetCategory createAssetCategory(long categoryId)
          Creates a new asset category with the primary key.
abstract  AssetCategory deleteAssetCategory(AssetCategory assetCategory)
          Deletes the asset category from the database.
abstract  AssetCategory deleteAssetCategory(long categoryId)
          Deletes the asset category with the primary key from the database.
abstract  void deleteAssetEntryAssetCategories(long entryId, List<AssetCategory> AssetCategories)
           
abstract  void deleteAssetEntryAssetCategories(long entryId, long[] categoryIds)
           
abstract  void deleteAssetEntryAssetCategory(long entryId, AssetCategory assetCategory)
           
abstract  void deleteAssetEntryAssetCategory(long entryId, long categoryId)
           
abstract  void deleteCategory(AssetCategory category)
           
abstract  void deleteCategory(long categoryId)
           
abstract  void deleteVocabularyCategories(long vocabularyId)
           
abstract  DynamicQuery dynamicQuery()
           
abstract  List dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
abstract  List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
abstract  List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
abstract  long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows that match the dynamic query.
abstract  long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows that match the dynamic query.
abstract  AssetCategory fetchAssetCategory(long categoryId)
           
abstract  AssetCategory fetchAssetCategoryByUuidAndCompanyId(String uuid, long companyId)
          Returns the asset category with the matching UUID and company.
abstract  AssetCategory fetchAssetCategoryByUuidAndGroupId(String uuid, long groupId)
          Returns the asset category matching the UUID and group.
abstract  AssetCategory fetchCategory(long categoryId)
           
abstract  List<AssetCategory> getAssetCategories(int start, int end)
          Returns a range of all the asset categories.
abstract  int getAssetCategoriesCount()
          Returns the number of asset categories.
abstract  AssetCategory getAssetCategory(long categoryId)
          Returns the asset category with the primary key.
abstract  AssetCategory getAssetCategoryByUuidAndCompanyId(String uuid, long companyId)
          Returns the asset category with the matching UUID and company.
abstract  AssetCategory getAssetCategoryByUuidAndGroupId(String uuid, long groupId)
          Returns the asset category matching the UUID and group.
abstract  List<AssetCategory> getAssetEntryAssetCategories(long entryId)
           
abstract  List<AssetCategory> getAssetEntryAssetCategories(long entryId, int start, int end)
           
abstract  List<AssetCategory> getAssetEntryAssetCategories(long entryId, int start, int end, OrderByComparator orderByComparator)
           
abstract  int getAssetEntryAssetCategoriesCount(long entryId)
           
abstract  String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
abstract  List<AssetCategory> getCategories()
           
abstract  List<AssetCategory> getCategories(long classNameId, long classPK)
           
abstract  List<AssetCategory> getCategories(String className, long classPK)
           
abstract  AssetCategory getCategory(long categoryId)
           
abstract  AssetCategory getCategory(String uuid, long groupId)
           
abstract  long[] getCategoryIds(String className, long classPK)
           
abstract  String[] getCategoryNames()
           
abstract  String[] getCategoryNames(long classNameId, long classPK)
           
abstract  String[] getCategoryNames(String className, long classPK)
           
abstract  List<AssetCategory> getChildCategories(long parentCategoryId)
           
abstract  List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator obc)
           
abstract  int getChildCategoriesCount(long parentCategoryId)
           
abstract  List<AssetCategory> getEntryCategories(long entryId)
           
abstract  PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
abstract  List<Long> getSubcategoryIds(long parentCategoryId)
           
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  int getVocabularyCategoriesCount(long vocabularyId)
           
abstract  List<AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, OrderByComparator obc)
           
abstract  int getVocabularyRootCategoriesCount(long vocabularyId)
           
abstract  boolean hasAssetEntryAssetCategories(long entryId)
           
abstract  boolean hasAssetEntryAssetCategory(long entryId, long categoryId)
           
abstract  void mergeCategories(long fromCategoryId, long toCategoryId)
           
abstract  AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, ServiceContext serviceContext)
           
abstract  void rebuildTree(long groupId, boolean force)
           
abstract  List<AssetCategory> search(long groupId, String name, String[] categoryProperties, int start, int end)
           
abstract  void setAssetEntryAssetCategories(long entryId, long[] categoryIds)
           
abstract  void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
abstract  AssetCategory updateAssetCategory(AssetCategory assetCategory)
          Updates the asset category in the database or adds it if it does not yet exist.
abstract  AssetCategory updateCategory(long userId, long categoryId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext)
           
 

Method Detail

addAssetCategory

AssetCategory addAssetCategory(AssetCategory assetCategory)
                               throws SystemException
Adds the asset category to the database. Also notifies the appropriate model listeners.

Parameters:
assetCategory - the asset category
Returns:
the asset category that was added
Throws:
SystemException - if a system exception occurred

createAssetCategory

AssetCategory createAssetCategory(long categoryId)
Creates a new asset category with the primary key. Does not add the asset category to the database.

Parameters:
categoryId - the primary key for the new asset category
Returns:
the new asset category

deleteAssetCategory

AssetCategory deleteAssetCategory(long categoryId)
                                  throws PortalException,
                                         SystemException
Deletes the asset category with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
categoryId - the primary key of the asset category
Returns:
the asset category that was removed
Throws:
PortalException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

deleteAssetCategory

AssetCategory deleteAssetCategory(AssetCategory assetCategory)
                                  throws SystemException
Deletes the asset category from the database. Also notifies the appropriate model listeners.

Parameters:
assetCategory - the asset category
Returns:
the asset category that was removed
Throws:
SystemException - if a system exception occurred

dynamicQuery

DynamicQuery dynamicQuery()

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery)
                  throws SystemException
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery,
                  int start,
                  int end)
                  throws SystemException
Performs a dynamic query on the database and returns a range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
Returns:
the range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQuery

List dynamicQuery(DynamicQuery dynamicQuery,
                  int start,
                  int end,
                  OrderByComparator orderByComparator)
                  throws SystemException
Performs a dynamic query on the database and returns an ordered range of the matching rows.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
dynamicQuery - the dynamic query
start - the lower bound of the range of model instances
end - the upper bound of the range of model instances (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching rows
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
                       throws SystemException
Returns the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery,
                       Projection projection)
                       throws SystemException
Returns the number of rows that match the dynamic query.

Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows that match the dynamic query
Throws:
SystemException - if a system exception occurred

fetchAssetCategory

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

fetchAssetCategoryByUuidAndCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategory fetchAssetCategoryByUuidAndCompanyId(String uuid,
                                                                                            long companyId)
                                                   throws SystemException
Returns the asset category with the matching UUID and company.

Parameters:
uuid - the asset category's UUID
companyId - the primary key of the company
Returns:
the matching asset category, or null if a matching asset category could not be found
Throws:
SystemException - if a system exception occurred

fetchAssetCategoryByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategory fetchAssetCategoryByUuidAndGroupId(String uuid,
                                                                                          long groupId)
                                                 throws SystemException
Returns the asset category matching the UUID and group.

Parameters:
uuid - the asset category's UUID
groupId - the primary key of the group
Returns:
the matching asset category, or null if a matching asset category could not be found
Throws:
SystemException - if a system exception occurred

getAssetCategory

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategory getAssetCategory(long categoryId)
                               throws PortalException,
                                      SystemException
Returns the asset category with the primary key.

Parameters:
categoryId - the primary key of the asset category
Returns:
the asset category
Throws:
PortalException - if a asset category with the primary key could not be found
SystemException - if a system exception occurred

getPersistedModel

@Transactional(propagation=SUPPORTS,
               readOnly=true)
PersistedModel getPersistedModel(Serializable primaryKeyObj)
                                 throws PortalException,
                                        SystemException
Specified by:
getPersistedModel in interface PersistedModelLocalService
Throws:
PortalException
SystemException

getAssetCategoryByUuidAndCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategory getAssetCategoryByUuidAndCompanyId(String uuid,
                                                                                          long companyId)
                                                 throws PortalException,
                                                        SystemException
Returns the asset category with the matching UUID and company.

Parameters:
uuid - the asset category's UUID
companyId - the primary key of the company
Returns:
the matching asset category
Throws:
PortalException - if a matching asset category could not be found
SystemException - if a system exception occurred

getAssetCategoryByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategory getAssetCategoryByUuidAndGroupId(String uuid,
                                                                                        long groupId)
                                               throws PortalException,
                                                      SystemException
Returns the asset category matching the UUID and group.

Parameters:
uuid - the asset category's UUID
groupId - the primary key of the group
Returns:
the matching asset category
Throws:
PortalException - if a matching asset category could not be found
SystemException - if a system exception occurred

getAssetCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getAssetCategories(int start,
                                                                                int end)
                                       throws SystemException
Returns a range of all the asset categories.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from AssetCategoryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

Parameters:
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
Returns:
the range of asset categories
Throws:
SystemException - if a system exception occurred

getAssetCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getAssetCategoriesCount()
                            throws SystemException
Returns the number of asset categories.

Returns:
the number of asset categories
Throws:
SystemException - if a system exception occurred

updateAssetCategory

AssetCategory updateAssetCategory(AssetCategory assetCategory)
                                  throws SystemException
Updates the asset category in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Parameters:
assetCategory - the asset category
Returns:
the asset category that was updated
Throws:
SystemException - if a system exception occurred

addAssetEntryAssetCategory

void addAssetEntryAssetCategory(long entryId,
                                long categoryId)
                                throws SystemException
Throws:
SystemException - if a system exception occurred

addAssetEntryAssetCategory

void addAssetEntryAssetCategory(long entryId,
                                AssetCategory assetCategory)
                                throws SystemException
Throws:
SystemException - if a system exception occurred

addAssetEntryAssetCategories

void addAssetEntryAssetCategories(long entryId,
                                  long[] categoryIds)
                                  throws SystemException
Throws:
SystemException - if a system exception occurred

addAssetEntryAssetCategories

void addAssetEntryAssetCategories(long entryId,
                                  List<AssetCategory> AssetCategories)
                                  throws SystemException
Throws:
SystemException - if a system exception occurred

clearAssetEntryAssetCategories

void clearAssetEntryAssetCategories(long entryId)
                                    throws SystemException
Throws:
SystemException - if a system exception occurred

deleteAssetEntryAssetCategory

void deleteAssetEntryAssetCategory(long entryId,
                                   long categoryId)
                                   throws SystemException
Throws:
SystemException - if a system exception occurred

deleteAssetEntryAssetCategory

void deleteAssetEntryAssetCategory(long entryId,
                                   AssetCategory assetCategory)
                                   throws SystemException
Throws:
SystemException - if a system exception occurred

deleteAssetEntryAssetCategories

void deleteAssetEntryAssetCategories(long entryId,
                                     long[] categoryIds)
                                     throws SystemException
Throws:
SystemException - if a system exception occurred

deleteAssetEntryAssetCategories

void deleteAssetEntryAssetCategories(long entryId,
                                     List<AssetCategory> AssetCategories)
                                     throws SystemException
Throws:
SystemException - if a system exception occurred

getAssetEntryAssetCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getAssetEntryAssetCategories(long entryId)
                                                 throws SystemException
Throws:
SystemException - if a system exception occurred

getAssetEntryAssetCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getAssetEntryAssetCategories(long entryId,
                                                                                          int start,
                                                                                          int end)
                                                 throws SystemException
Throws:
SystemException - if a system exception occurred

getAssetEntryAssetCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getAssetEntryAssetCategories(long entryId,
                                                                                          int start,
                                                                                          int end,
                                                                                          OrderByComparator orderByComparator)
                                                 throws SystemException
Throws:
SystemException - if a system exception occurred

getAssetEntryAssetCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getAssetEntryAssetCategoriesCount(long entryId)
                                      throws SystemException
Throws:
SystemException - if a system exception occurred

hasAssetEntryAssetCategory

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasAssetEntryAssetCategory(long entryId,
                                                                            long categoryId)
                                   throws SystemException
Throws:
SystemException - if a system exception occurred

hasAssetEntryAssetCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasAssetEntryAssetCategories(long entryId)
                                     throws SystemException
Throws:
SystemException - if a system exception occurred

setAssetEntryAssetCategories

void setAssetEntryAssetCategories(long entryId,
                                  long[] categoryIds)
                                  throws SystemException
Throws:
SystemException - if a system exception occurred

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 userId,
                          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(long userId,
                          String title,
                          long vocabularyId,
                          ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addCategoryResources

void addCategoryResources(AssetCategory category,
                          boolean addGroupPermissions,
                          boolean addGuestPermissions)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

addCategoryResources

void addCategoryResources(AssetCategory category,
                          String[] groupPermissions,
                          String[] guestPermissions)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

deleteCategory

void deleteCategory(AssetCategory category)
                    throws PortalException,
                           SystemException
Throws:
PortalException
SystemException

deleteCategory

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

deleteVocabularyCategories

void deleteVocabularyCategories(long vocabularyId)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

fetchCategory

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

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getCategories()
                                  throws SystemException
Throws:
SystemException

getCategories

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

getCategories

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

getCategory

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

getCategory

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

getCategoryIds

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long[] getCategoryIds(String className,
                                                               long classPK)
                      throws SystemException
Throws:
SystemException

getCategoryNames

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String[] getCategoryNames()
                          throws SystemException
Throws:
SystemException

getCategoryNames

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String[] getCategoryNames(long classNameId,
                                                                   long classPK)
                          throws SystemException
Throws:
SystemException

getCategoryNames

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String[] getCategoryNames(String className,
                                                                   long classPK)
                          throws SystemException
Throws:
SystemException

getChildCategories

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

getChildCategories

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

getChildCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getChildCategoriesCount(long parentCategoryId)
                            throws SystemException
Throws:
SystemException

getEntryCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getEntryCategories(long entryId)
                                       throws SystemException
Throws:
SystemException

getSubcategoryIds

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<Long> getSubcategoryIds(long parentCategoryId)
                             throws SystemException
Throws:
SystemException

getVocabularyCategories

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

getVocabularyCategories

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

getVocabularyCategoriesCount

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

getVocabularyRootCategories

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

getVocabularyRootCategoriesCount

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

mergeCategories

void mergeCategories(long fromCategoryId,
                     long toCategoryId)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

moveCategory

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

rebuildTree

void rebuildTree(long groupId,
                 boolean force)
                 throws SystemException
Throws:
SystemException

search

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

updateCategory

AssetCategory updateCategory(long userId,
                             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