Liferay 7.0-ce-b4

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
 AssetCategory addAssetCategory(AssetCategory assetCategory)
          Adds the asset category to the database.
 void addAssetEntryAssetCategories(long entryId, List<AssetCategory> AssetCategories)
           
 void addAssetEntryAssetCategories(long entryId, long[] categoryIds)
           
 void addAssetEntryAssetCategory(long entryId, AssetCategory assetCategory)
           
 void addAssetEntryAssetCategory(long entryId, long categoryId)
           
 AssetCategory addCategory(long userId, long groupId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext)
           
 AssetCategory addCategory(long userId, long groupId, String title, long vocabularyId, ServiceContext serviceContext)
           
 void addCategoryResources(AssetCategory category, boolean addGroupPermissions, boolean addGuestPermissions)
           
 void addCategoryResources(AssetCategory category, ModelPermissions modelPermissions)
           
 void clearAssetEntryAssetCategories(long entryId)
           
 AssetCategory createAssetCategory(long categoryId)
          Creates a new asset category with the primary key.
 AssetCategory deleteAssetCategory(AssetCategory assetCategory)
          Deletes the asset category from the database.
 AssetCategory deleteAssetCategory(long categoryId)
          Deletes the asset category with the primary key from the database.
 void deleteAssetEntryAssetCategories(long entryId, List<AssetCategory> AssetCategories)
           
 void deleteAssetEntryAssetCategories(long entryId, long[] categoryIds)
           
 void deleteAssetEntryAssetCategory(long entryId, AssetCategory assetCategory)
           
 void deleteAssetEntryAssetCategory(long entryId, long categoryId)
           
 void deleteCategories(List<AssetCategory> categories)
           
 void deleteCategories(long[] categoryIds)
           
 AssetCategory deleteCategory(AssetCategory category)
           
 AssetCategory deleteCategory(AssetCategory category, boolean skipRebuildTree)
           
 AssetCategory deleteCategory(long categoryId)
           
 PersistedModel deletePersistedModel(PersistedModel persistedModel)
           
 void deleteVocabularyCategories(long vocabularyId)
           
 DynamicQuery dynamicQuery()
           
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery)
          Performs a dynamic query on the database and returns the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
          Performs a dynamic query on the database and returns a range of the matching rows.
<T> List<T>
dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<T> orderByComparator)
          Performs a dynamic query on the database and returns an ordered range of the matching rows.
 long dynamicQueryCount(DynamicQuery dynamicQuery)
          Returns the number of rows matching the dynamic query.
 long dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection)
          Returns the number of rows matching the dynamic query.
 AssetCategory fetchAssetCategory(long categoryId)
           
 AssetCategory fetchAssetCategoryByUuidAndGroupId(String uuid, long groupId)
          Returns the asset category matching the UUID and group.
 AssetCategory fetchCategory(long categoryId)
           
 ActionableDynamicQuery getActionableDynamicQuery()
           
 List<AssetCategory> getAssetCategories(int start, int end)
          Returns a range of all the asset categories.
 List<AssetCategory> getAssetCategoriesByUuidAndCompanyId(String uuid, long companyId)
          Returns all the asset categories matching the UUID and company.
 List<AssetCategory> getAssetCategoriesByUuidAndCompanyId(String uuid, long companyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
          Returns a range of asset categories matching the UUID and company.
 int getAssetCategoriesCount()
          Returns the number of asset categories.
 AssetCategory getAssetCategory(long categoryId)
          Returns the asset category with the primary key.
 AssetCategory getAssetCategoryByUuidAndGroupId(String uuid, long groupId)
          Returns the asset category matching the UUID and group.
 List<AssetCategory> getAssetEntryAssetCategories(long entryId)
           
 List<AssetCategory> getAssetEntryAssetCategories(long entryId, int start, int end)
           
 List<AssetCategory> getAssetEntryAssetCategories(long entryId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
           
 int getAssetEntryAssetCategoriesCount(long entryId)
           
 long[] getAssetEntryPrimaryKeys(long categoryId)
          Returns the entryIds of the asset entries associated with the asset category.
 List<AssetCategory> getCategories()
           
 List<AssetCategory> getCategories(Hits hits)
           
 List<AssetCategory> getCategories(long classNameId, long classPK)
           
 List<AssetCategory> getCategories(String className, long classPK)
           
 AssetCategory getCategory(long categoryId)
           
 AssetCategory getCategory(String uuid, long groupId)
           
 long[] getCategoryIds(String className, long classPK)
           
 String[] getCategoryNames()
           
 String[] getCategoryNames(long classNameId, long classPK)
           
 String[] getCategoryNames(String className, long classPK)
           
 List<AssetCategory> getChildCategories(long parentCategoryId)
           
 List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator<AssetCategory> obc)
           
 int getChildCategoriesCount(long parentCategoryId)
           
 List<AssetCategory> getEntryCategories(long entryId)
           
 ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)
           
 IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
           
 String getOSGiServiceIdentifier()
          Returns the OSGi service identifier.
 PersistedModel getPersistedModel(Serializable primaryKeyObj)
           
 List<Long> getSubcategoryIds(long parentCategoryId)
           
 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)
           
 int getVocabularyCategoriesCount(long vocabularyId)
           
 List<AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> obc)
           
 int getVocabularyRootCategoriesCount(long vocabularyId)
           
 boolean hasAssetEntryAssetCategories(long entryId)
           
 boolean hasAssetEntryAssetCategory(long entryId, long categoryId)
           
 AssetCategory mergeCategories(long fromCategoryId, long toCategoryId)
           
 AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, ServiceContext serviceContext)
           
 void rebuildTree(long groupId, boolean force)
           
 List<AssetCategory> search(long groupId, String name, String[] categoryProperties, int start, int end)
           
 BaseModelSearchResult<AssetCategory> searchCategories(long companyId, long[] groupIds, String title, long[] vocabularyIds, int start, int end)
           
 BaseModelSearchResult<AssetCategory> searchCategories(long companyId, long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end)
           
 BaseModelSearchResult<AssetCategory> searchCategories(long companyId, long[] groupIds, String title, long[] vocabularyIds, long[] parentCategoryIds, int start, int end, Sort sort)
           
 BaseModelSearchResult<AssetCategory> searchCategories(long companyId, long groupIds, String title, long vocabularyId, int start, int end)
           
 void setAssetEntryAssetCategories(long entryId, long[] categoryIds)
           
 AssetCategory updateAssetCategory(AssetCategory assetCategory)
          Updates the asset category in the database or adds it if it does not yet exist.
 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

@Indexable(type=REINDEX)
AssetCategory addAssetCategory(AssetCategory assetCategory)
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

addAssetEntryAssetCategories

void addAssetEntryAssetCategories(long entryId,
                                  List<AssetCategory> AssetCategories)

addAssetEntryAssetCategories

void addAssetEntryAssetCategories(long entryId,
                                  long[] categoryIds)

addAssetEntryAssetCategory

void addAssetEntryAssetCategory(long entryId,
                                AssetCategory assetCategory)

addAssetEntryAssetCategory

void addAssetEntryAssetCategory(long entryId,
                                long categoryId)

addCategory

@Indexable(type=REINDEX)
AssetCategory addCategory(long userId,
                                               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 userId,
                          long groupId,
                          String title,
                          long vocabularyId,
                          ServiceContext serviceContext)
                          throws PortalException
Throws:
PortalException

addCategoryResources

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

addCategoryResources

void addCategoryResources(AssetCategory category,
                          ModelPermissions modelPermissions)
                          throws PortalException
Throws:
PortalException

clearAssetEntryAssetCategories

void clearAssetEntryAssetCategories(long entryId)

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

@Indexable(type=DELETE)
AssetCategory deleteAssetCategory(AssetCategory assetCategory)
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

deleteAssetCategory

@Indexable(type=DELETE)
AssetCategory deleteAssetCategory(long categoryId)
                                  throws PortalException
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

deleteAssetEntryAssetCategories

void deleteAssetEntryAssetCategories(long entryId,
                                     List<AssetCategory> AssetCategories)

deleteAssetEntryAssetCategories

void deleteAssetEntryAssetCategories(long entryId,
                                     long[] categoryIds)

deleteAssetEntryAssetCategory

void deleteAssetEntryAssetCategory(long entryId,
                                   AssetCategory assetCategory)

deleteAssetEntryAssetCategory

void deleteAssetEntryAssetCategory(long entryId,
                                   long categoryId)

deleteCategories

void deleteCategories(List<AssetCategory> categories)
                      throws PortalException
Throws:
PortalException

deleteCategories

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

deleteCategory

AssetCategory deleteCategory(AssetCategory category)
                             throws PortalException
Throws:
PortalException

deleteCategory

@Indexable(type=DELETE)
@SystemEvent(type=1)
AssetCategory deleteCategory(AssetCategory category,
                                                                 boolean skipRebuildTree)
                             throws PortalException
Throws:
PortalException

deleteCategory

AssetCategory deleteCategory(long categoryId)
                             throws PortalException
Throws:
PortalException

deletePersistedModel

PersistedModel deletePersistedModel(PersistedModel persistedModel)
                                    throws PortalException
Specified by:
deletePersistedModel in interface PersistedModelLocalService
Throws:
PortalException

deleteVocabularyCategories

void deleteVocabularyCategories(long vocabularyId)
                                throws PortalException
Throws:
PortalException

dynamicQuery

DynamicQuery dynamicQuery()

dynamicQuery

<T> List<T> dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.

Parameters:
dynamicQuery - the dynamic query
Returns:
the matching rows

dynamicQuery

<T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end)
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

dynamicQuery

<T> List<T> dynamicQuery(DynamicQuery dynamicQuery,
                         int start,
                         int end,
                         OrderByComparator<T> orderByComparator)
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

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
Returns:
the number of rows matching the dynamic query

dynamicQueryCount

long dynamicQueryCount(DynamicQuery dynamicQuery,
                       Projection projection)
Returns the number of rows matching the dynamic query.

Parameters:
dynamicQuery - the dynamic query
projection - the projection to apply to the query
Returns:
the number of rows matching the dynamic query

fetchAssetCategory

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategory fetchAssetCategory(long categoryId)

fetchAssetCategoryByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategory fetchAssetCategoryByUuidAndGroupId(String uuid,
                                                                                          long groupId)
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

fetchCategory

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategory fetchCategory(long categoryId)

getActionableDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ActionableDynamicQuery getActionableDynamicQuery()

getAssetCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getAssetCategories(int start,
                                                                                int end)
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

getAssetCategoriesByUuidAndCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getAssetCategoriesByUuidAndCompanyId(String uuid,
                                                                                                  long companyId)
Returns all the asset categories matching the UUID and company.

Parameters:
uuid - the UUID of the asset categories
companyId - the primary key of the company
Returns:
the matching asset categories, or an empty list if no matches were found

getAssetCategoriesByUuidAndCompanyId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getAssetCategoriesByUuidAndCompanyId(String uuid,
                                                                                                  long companyId,
                                                                                                  int start,
                                                                                                  int end,
                                                                                                  OrderByComparator<AssetCategory> orderByComparator)
Returns a range of asset categories matching the UUID and company.

Parameters:
uuid - the UUID of the asset categories
companyId - the primary key of the company
start - the lower bound of the range of asset categories
end - the upper bound of the range of asset categories (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the range of matching asset categories, or an empty list if no matches were found

getAssetCategoriesCount

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

Returns:
the number of asset categories

getAssetCategory

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategory getAssetCategory(long categoryId)
                               throws PortalException
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

getAssetCategoryByUuidAndGroupId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
AssetCategory getAssetCategoryByUuidAndGroupId(String uuid,
                                                                                        long groupId)
                                               throws PortalException
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

getAssetEntryAssetCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getAssetEntryAssetCategories(long entryId)

getAssetEntryAssetCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getAssetEntryAssetCategories(long entryId,
                                                                                          int start,
                                                                                          int end)

getAssetEntryAssetCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getAssetEntryAssetCategories(long entryId,
                                                                                          int start,
                                                                                          int end,
                                                                                          OrderByComparator<AssetCategory> orderByComparator)

getAssetEntryAssetCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getAssetEntryAssetCategoriesCount(long entryId)

getAssetEntryPrimaryKeys

@Transactional(propagation=SUPPORTS,
               readOnly=true)
long[] getAssetEntryPrimaryKeys(long categoryId)
Returns the entryIds of the asset entries associated with the asset category.

Parameters:
categoryId - the categoryId of the asset category
Returns:
long[] the entryIds of asset entries associated with the asset category

getCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getCategories()

getCategories

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

getCategories

@ThreadLocalCachable
@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<AssetCategory> getCategories(long classNameId,
                                                                                               long classPK)

getCategories

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

getCategory

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

getCategory

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

getCategoryIds

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

getCategoryNames

@Transactional(propagation=SUPPORTS,
               readOnly=true)
String[] getCategoryNames()

getCategoryNames

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

getCategoryNames

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

getChildCategories

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

getChildCategories

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

getChildCategoriesCount

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int getChildCategoriesCount(long parentCategoryId)

getEntryCategories

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

getExportActionableDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
ExportActionableDynamicQuery getExportActionableDynamicQuery(PortletDataContext portletDataContext)

getIndexableActionableDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()

getOSGiServiceIdentifier

String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Returns:
the OSGi service identifier

getPersistedModel

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

getSubcategoryIds

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

getVocabularyCategories

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

getVocabularyCategories

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

getVocabularyCategoriesCount

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

getVocabularyRootCategories

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

getVocabularyRootCategoriesCount

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

hasAssetEntryAssetCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasAssetEntryAssetCategories(long entryId)

hasAssetEntryAssetCategory

@Transactional(propagation=SUPPORTS,
               readOnly=true)
boolean hasAssetEntryAssetCategory(long entryId,
                                                                            long categoryId)

mergeCategories

@Indexable(type=REINDEX)
AssetCategory mergeCategories(long fromCategoryId,
                                                   long toCategoryId)
                              throws PortalException
Throws:
PortalException

moveCategory

@Indexable(type=REINDEX)
AssetCategory moveCategory(long categoryId,
                                                long parentCategoryId,
                                                long vocabularyId,
                                                ServiceContext serviceContext)
                           throws PortalException
Throws:
PortalException

rebuildTree

void rebuildTree(long groupId,
                 boolean force)

search

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

searchCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
BaseModelSearchResult<AssetCategory> searchCategories(long companyId,
                                                                                               long[] groupIds,
                                                                                               String title,
                                                                                               long[] parentCategoryIds,
                                                                                               long[] vocabularyIds,
                                                                                               int start,
                                                                                               int end)
                                                      throws PortalException
Throws:
PortalException

searchCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
BaseModelSearchResult<AssetCategory> searchCategories(long companyId,
                                                                                               long groupIds,
                                                                                               String title,
                                                                                               long vocabularyId,
                                                                                               int start,
                                                                                               int end)
                                                      throws PortalException
Throws:
PortalException

searchCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
BaseModelSearchResult<AssetCategory> searchCategories(long companyId,
                                                                                               long[] groupIds,
                                                                                               String title,
                                                                                               long[] vocabularyIds,
                                                                                               long[] parentCategoryIds,
                                                                                               int start,
                                                                                               int end,
                                                                                               Sort sort)
                                                      throws PortalException
Throws:
PortalException

searchCategories

@Transactional(propagation=SUPPORTS,
               readOnly=true)
BaseModelSearchResult<AssetCategory> searchCategories(long companyId,
                                                                                               long[] groupIds,
                                                                                               String title,
                                                                                               long[] vocabularyIds,
                                                                                               int start,
                                                                                               int end)
                                                      throws PortalException
Throws:
PortalException

setAssetEntryAssetCategories

void setAssetEntryAssetCategories(long entryId,
                                  long[] categoryIds)

updateAssetCategory

@Indexable(type=REINDEX)
AssetCategory updateAssetCategory(AssetCategory assetCategory)
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

updateCategory

@Indexable(type=REINDEX)
AssetCategory updateCategory(long userId,
                                                  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