Package com.liferay.asset.kernel.service
Class AssetCategoryServiceWrapper
Object
com.liferay.asset.kernel.service.AssetCategoryServiceWrapper
- All Implemented Interfaces:
AssetCategoryService
,BaseService
,ServiceWrapper<AssetCategoryService>
public class AssetCategoryServiceWrapper
extends Object
implements AssetCategoryService, ServiceWrapper<AssetCategoryService>
Provides a wrapper for
AssetCategoryService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCategory
(long groupId, long parentCategoryId, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) addCategory
(long groupId, String title, long vocabularyId, ServiceContext serviceContext) addCategory
(String externalReferenceCode, long groupId, long parentCategoryId, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) void
deleteCategories
(long[] categoryIds) void
deleteCategory
(long categoryId) fetchCategory
(long categoryId) fetchCategoryByExternalReferenceCode
(String externalReferenceCode, long groupId) getAssetCategoryByExternalReferenceCode
(long groupId, String externalReferenceCode) getCategories
(long classNameId, long classPK, int start, int end) Returns a range of assetCategories related to an AssetEntry with the given "classNameId-classPK".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".getCategory
(long categoryId) getCategoryPath
(long categoryId) getChildCategories
(long parentCategoryId) 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 categoriesReturns the OSGi service identifier.getVocabularyCategories
(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) getVocabularyCategories
(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) getVocabularyCategories
(long groupId, long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) 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) getVocabularyCategoriesDisplay
(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) getVocabularyCategoriesDisplay
(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) getVocabularyRootCategories
(long groupId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) int
getVocabularyRootCategoriesCount
(long groupId, long vocabularyId) moveCategory
(long categoryId, long parentCategoryId, long vocabularyId, ServiceContext serviceContext) search
(long groupId, String keywords, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) searchCategoriesDisplay
(long[] groupIds, String title, long[] vocabularyIds, int start, int end) searchCategoriesDisplay
(long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end) searchCategoriesDisplay
(long[] groupIds, String title, long[] vocabularyIds, long[] parentCategoryIds, int start, int end, Sort sort) searchCategoriesDisplay
(long groupId, String title, long vocabularyId, int start, int end) searchCategoriesDisplay
(long groupId, String title, long parentCategoryId, long vocabularyId, int start, int end) searchCategoriesDisplay
(long groupId, String title, long vocabularyId, long parentCategoryId, int start, int end, Sort sort) void
setWrappedService
(AssetCategoryService assetCategoryService) updateCategory
(long categoryId, long parentCategoryId, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext)
-
Constructor Details
-
AssetCategoryServiceWrapper
public AssetCategoryServiceWrapper() -
AssetCategoryServiceWrapper
-
-
Method Details
-
addCategory
public AssetCategory addCategory(long groupId, long parentCategoryId, Map<Locale, String> titleMap, Map<Locale, throws PortalExceptionString> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) - Specified by:
addCategory
in interfaceAssetCategoryService
- Throws:
PortalException
-
addCategory
public AssetCategory addCategory(long groupId, String title, long vocabularyId, ServiceContext serviceContext) throws PortalException - Specified by:
addCategory
in interfaceAssetCategoryService
- Throws:
PortalException
-
addCategory
public AssetCategory addCategory(String externalReferenceCode, long groupId, long parentCategoryId, Map<Locale, String> titleMap, Map<Locale, throws PortalExceptionString> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) - Specified by:
addCategory
in interfaceAssetCategoryService
- Throws:
PortalException
-
deleteCategories
- Specified by:
deleteCategories
in interfaceAssetCategoryService
- Throws:
PortalException
-
deleteCategory
- Specified by:
deleteCategory
in interfaceAssetCategoryService
- Throws:
PortalException
-
fetchCategory
- Specified by:
fetchCategory
in interfaceAssetCategoryService
- Throws:
PortalException
-
fetchCategoryByExternalReferenceCode
public AssetCategory fetchCategoryByExternalReferenceCode(String externalReferenceCode, long groupId) throws PortalException - Specified by:
fetchCategoryByExternalReferenceCode
in interfaceAssetCategoryService
- Throws:
PortalException
-
getAssetCategoryByExternalReferenceCode
public AssetCategory getAssetCategoryByExternalReferenceCode(long groupId, String externalReferenceCode) throws PortalException - Specified by:
getAssetCategoryByExternalReferenceCode
in interfaceAssetCategoryService
- Throws:
PortalException
-
getCategories
Returns a range of assetCategories related to an AssetEntry with the given "classNameId-classPK".- Specified by:
getCategories
in interfaceAssetCategoryService
- Parameters:
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)- Returns:
- the matching assetCategories
-
getCategories
- Specified by:
getCategories
in interfaceAssetCategoryService
- Throws:
PortalException
-
getCategoriesCount
public int getCategoriesCount(long classNameId, long classPK) Returns the number of assetCategories related to an AssetEntry with the given "classNameId-classPK".- Specified by:
getCategoriesCount
in interfaceAssetCategoryService
- Parameters:
classNameId
- the className of the assetclassPK
- the classPK of the asset- Returns:
- the number of matching assetCategories
-
getCategory
- Specified by:
getCategory
in interfaceAssetCategoryService
- Throws:
PortalException
-
getCategoryPath
- Specified by:
getCategoryPath
in interfaceAssetCategoryService
- Throws:
PortalException
-
getChildCategories
- Specified by:
getChildCategories
in interfaceAssetCategoryService
- Throws:
PortalException
-
getChildCategories
public List<AssetCategory> getChildCategories(long parentCategoryId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) throws PortalException eturns a range of child assetCategories.- Specified by:
getChildCategories
in interfaceAssetCategoryService
- Parameters:
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 comparator- Returns:
- the matching categories
- Throws:
PortalException
PortalException
-
getChildCategoriesCount
Returns the number of child categories- Specified by:
getChildCategoriesCount
in interfaceAssetCategoryService
- Parameters:
parentCategoryId
- the parent category ID- Returns:
- the number of child categories
- Throws:
PortalException
PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceAssetCategoryService
- Returns:
- the OSGi service identifier
-
getVocabularyCategories
public List<AssetCategory> getVocabularyCategories(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) throws PortalException - Specified by:
getVocabularyCategories
in interfaceAssetCategoryService
- Throws:
PortalException
-
getVocabularyCategories
public List<AssetCategory> getVocabularyCategories(long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) throws PortalException - Specified by:
getVocabularyCategories
in interfaceAssetCategoryService
- Throws:
PortalException
-
getVocabularyCategories
public List<AssetCategory> getVocabularyCategories(long groupId, long parentCategoryId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) - Specified by:
getVocabularyCategories
in interfaceAssetCategoryService
-
getVocabularyCategories
public List<AssetCategory> getVocabularyCategories(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) - Specified by:
getVocabularyCategories
in interfaceAssetCategoryService
-
getVocabularyCategoriesCount
public int getVocabularyCategoriesCount(long groupId, long vocabularyId) - Specified by:
getVocabularyCategoriesCount
in interfaceAssetCategoryService
-
getVocabularyCategoriesCount
public int getVocabularyCategoriesCount(long groupId, long parentCategory, long vocabularyId) - Specified by:
getVocabularyCategoriesCount
in interfaceAssetCategoryService
-
getVocabularyCategoriesCount
- Specified by:
getVocabularyCategoriesCount
in interfaceAssetCategoryService
-
getVocabularyCategoriesDisplay
public AssetCategoryDisplay getVocabularyCategoriesDisplay(long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) throws PortalException - Specified by:
getVocabularyCategoriesDisplay
in interfaceAssetCategoryService
- Throws:
PortalException
-
getVocabularyCategoriesDisplay
public AssetCategoryDisplay getVocabularyCategoriesDisplay(long groupId, String name, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) throws PortalException - Specified by:
getVocabularyCategoriesDisplay
in interfaceAssetCategoryService
- Throws:
PortalException
-
getVocabularyRootCategories
public List<AssetCategory> getVocabularyRootCategories(long groupId, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) - Specified by:
getVocabularyRootCategories
in interfaceAssetCategoryService
-
getVocabularyRootCategoriesCount
public int getVocabularyRootCategoriesCount(long groupId, long vocabularyId) - Specified by:
getVocabularyRootCategoriesCount
in interfaceAssetCategoryService
-
moveCategory
public AssetCategory moveCategory(long categoryId, long parentCategoryId, long vocabularyId, ServiceContext serviceContext) throws PortalException - Specified by:
moveCategory
in interfaceAssetCategoryService
- Throws:
PortalException
-
search
public List<AssetCategory> search(long groupId, String keywords, long vocabularyId, int start, int end, OrderByComparator<AssetCategory> orderByComparator) - Specified by:
search
in interfaceAssetCategoryService
-
search
public JSONArray search(long groupId, String name, String[] categoryProperties, int start, int end) throws PortalException - Specified by:
search
in interfaceAssetCategoryService
- Throws:
PortalException
-
search
public JSONArray search(long[] groupIds, String name, long[] vocabularyIds, int start, int end) throws PortalException - Specified by:
search
in interfaceAssetCategoryService
- Throws:
PortalException
-
searchCategoriesDisplay
public AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long vocabularyId, int start, int end) throws PortalException - Specified by:
searchCategoriesDisplay
in interfaceAssetCategoryService
- Throws:
PortalException
-
searchCategoriesDisplay
public AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long parentCategoryId, long vocabularyId, int start, int end) throws PortalException - Specified by:
searchCategoriesDisplay
in interfaceAssetCategoryService
- Throws:
PortalException
-
searchCategoriesDisplay
public AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long vocabularyId, long parentCategoryId, int start, int end, Sort sort) throws PortalException - Specified by:
searchCategoriesDisplay
in interfaceAssetCategoryService
- Throws:
PortalException
-
searchCategoriesDisplay
public AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] vocabularyIds, int start, int end) throws PortalException - Specified by:
searchCategoriesDisplay
in interfaceAssetCategoryService
- Throws:
PortalException
-
searchCategoriesDisplay
public AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end) throws PortalException - Specified by:
searchCategoriesDisplay
in interfaceAssetCategoryService
- Throws:
PortalException
-
searchCategoriesDisplay
public AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] vocabularyIds, long[] parentCategoryIds, int start, int end, Sort sort) throws PortalException - Specified by:
searchCategoriesDisplay
in interfaceAssetCategoryService
- Throws:
PortalException
-
updateCategory
public AssetCategory updateCategory(long categoryId, long parentCategoryId, Map<Locale, String> titleMap, Map<Locale, throws PortalExceptionString> descriptionMap, long vocabularyId, String[] categoryProperties, ServiceContext serviceContext) - Specified by:
updateCategory
in interfaceAssetCategoryService
- Throws:
PortalException
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<AssetCategoryService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<AssetCategoryService>
-