@AccessControlled @CTAware @JSONWebService @ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface AssetCategoryService extends BaseService
AssetCategoryServiceUtil
Modifier and Type | Method and Description |
---|---|
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) |
void |
deleteCategory(long categoryId) |
AssetCategory |
fetchCategory(long categoryId) |
List<AssetCategory> |
getCategories(long classNameId,
long classPK,
int start,
int end)
Returns a range of assetCategories related to an AssetEntry with the
given "classNameId-classPK".
|
List<AssetCategory> |
getCategories(String className,
long classPK) |
int |
getCategoriesCount(long classNameId,
long classPK)
Returns the number of assetCategories related to an AssetEntry with the
given "classNameId-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> orderByComparator)
eturns a range of child assetCategories.
|
int |
getChildCategoriesCount(long parentCategoryId)
Returns the number of child categories
|
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
List<AssetCategory> |
getVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> orderByComparator) |
List<AssetCategory> |
getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> orderByComparator) |
List<AssetCategory> |
getVocabularyCategories(long groupId,
long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> orderByComparator) |
List<AssetCategory> |
getVocabularyCategories(long groupId,
String name,
long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> orderByComparator) |
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> orderByComparator) |
AssetCategoryDisplay |
getVocabularyCategoriesDisplay(long groupId,
String name,
long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> orderByComparator) |
List<AssetCategory> |
getVocabularyRootCategories(long groupId,
long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> orderByComparator) |
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> orderByComparator) |
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) |
AssetCategory addCategory(long groupId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) throws PortalException
PortalException
AssetCategory addCategory(long groupId, String title, long vocabularyId, ServiceContext serviceContext) throws PortalException
PortalException
void deleteCategories(long[] categoryIds) throws PortalException
PortalException
void deleteCategory(long categoryId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory fetchCategory(long categoryId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getCategories(long classNameId, long classPK, int start, int end)
classNameId
- the className of the assetclassPK
- the classPK of the assetstart
- the lower bound of the range of resultsend
- the upper bound of the range of results (not inclusive)@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getCategories(String className, long classPK) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) int getCategoriesCount(long classNameId, long classPK)
classNameId
- the className of the assetclassPK
- the classPK of the asset@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategory getCategory(long categoryId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) String getCategoryPath(long categoryId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getChildCategories(long parentCategoryId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) throws PortalException
parentCategoryId
- the parent category IDstart
- the lower bound of the range of resultsend
- the upper bound of the range of results (not inclusive)orderByComparator
- the comparatorPortalException
@Transactional(propagation=SUPPORTS, readOnly=true) int getChildCategoriesCount(long parentCategoryId) throws PortalException
parentCategoryId
- the parent category IDPortalException
String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getVocabularyCategories(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getVocabularyCategories(long groupId, long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getVocabularyCategories(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) int getVocabularyCategoriesCount(long groupId, long vocabularyId)
@Transactional(propagation=SUPPORTS, readOnly=true) int getVocabularyCategoriesCount(long groupId, long parentCategory, long vocabularyId)
@Transactional(propagation=SUPPORTS, readOnly=true) int getVocabularyCategoriesCount(long groupId, String name, long vocabularyId)
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategoryDisplay getVocabularyCategoriesDisplay(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategoryDisplay getVocabularyCategoriesDisplay(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> getVocabularyRootCategories(long groupId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) int getVocabularyRootCategoriesCount(long groupId, long vocabularyId)
AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, ServiceContext serviceContext) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<AssetCategory> search(long groupId, String keywords, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) JSONArray search(long groupId, String name, String[] categoryProperties, int start, int end) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) JSONArray search(long[] groupIds, String name, long[] vocabularyIds, int start, int end) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long vocabularyId, int start, int end) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long parentCategoryId, long vocabularyId, int start, int end) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long vocabularyId, long parentCategoryId, int start, int end, Sort sort) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] vocabularyIds, int start, int end) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] vocabularyIds, long[] parentCategoryIds, int start, int end, Sort sort) throws PortalException
PortalException
AssetCategory updateCategory(long categoryId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) throws PortalException
PortalException