public class AssetCategoryServiceImpl extends AssetCategoryServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, counterLocalService| Constructor and Description |
|---|
AssetCategoryServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.asset.kernel.model.AssetCategory |
addCategory(long groupId,
long parentCategoryId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
long vocabularyId,
java.lang.String[] categoryProperties,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.asset.kernel.model.AssetCategory |
addCategory(long groupId,
java.lang.String title,
long vocabularyId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.asset.kernel.model.AssetCategory |
addCategory(java.lang.String externalReferenceCode,
long groupId,
long parentCategoryId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
long vocabularyId,
java.lang.String[] categoryProperties,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
deleteCategories(long[] categoryIds) |
void |
deleteCategory(long categoryId) |
com.liferay.asset.kernel.model.AssetCategory |
fetchCategory(long categoryId) |
protected java.util.List<com.liferay.asset.kernel.model.AssetCategory> |
filterCategories(java.util.List<com.liferay.asset.kernel.model.AssetCategory> categories) |
com.liferay.asset.kernel.model.AssetCategory |
getAssetCategoryByExternalReferenceCode(long groupId,
java.lang.String externalReferenceCode) |
java.util.List<com.liferay.asset.kernel.model.AssetCategory> |
getCategories(long classNameId,
long classPK,
int start,
int end)
Returns a range of assetCategories related to an AssetEntry with the
given "classNameId-classPK".
|
java.util.List<com.liferay.asset.kernel.model.AssetCategory> |
getCategories(java.lang.String className,
long classPK) |
int |
getCategoriesCount(long classNameId,
long classPK)
Returns the number of assetCategories related to an AssetEntry with the
given "classNameId-classPK".
|
com.liferay.asset.kernel.model.AssetCategory |
getCategory(long categoryId) |
java.lang.String |
getCategoryPath(long categoryId) |
java.util.List<com.liferay.asset.kernel.model.AssetCategory> |
getChildCategories(long parentCategoryId) |
java.util.List<com.liferay.asset.kernel.model.AssetCategory> |
getChildCategories(long parentCategoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator)
eturns a range of child assetCategories.
|
int |
getChildCategoriesCount(long parentCategoryId)
Returns the number of child categories
|
java.util.List<com.liferay.asset.kernel.model.AssetCategory> |
getVocabularyCategories(long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator) |
java.util.List<com.liferay.asset.kernel.model.AssetCategory> |
getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator) |
java.util.List<com.liferay.asset.kernel.model.AssetCategory> |
getVocabularyCategories(long groupId,
long parentCategoryId,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator) |
java.util.List<com.liferay.asset.kernel.model.AssetCategory> |
getVocabularyCategories(long groupId,
java.lang.String name,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator) |
int |
getVocabularyCategoriesCount(long groupId,
long vocabularyId) |
int |
getVocabularyCategoriesCount(long groupId,
long parentCategory,
long vocabularyId) |
int |
getVocabularyCategoriesCount(long groupId,
java.lang.String name,
long vocabularyId) |
com.liferay.asset.kernel.model.AssetCategoryDisplay |
getVocabularyCategoriesDisplay(long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator) |
com.liferay.asset.kernel.model.AssetCategoryDisplay |
getVocabularyCategoriesDisplay(long groupId,
java.lang.String name,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator) |
java.util.List<com.liferay.asset.kernel.model.AssetCategory> |
getVocabularyRootCategories(long groupId,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator) |
int |
getVocabularyRootCategoriesCount(long groupId,
long vocabularyId) |
com.liferay.asset.kernel.model.AssetCategory |
moveCategory(long categoryId,
long parentCategoryId,
long vocabularyId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.portal.kernel.json.JSONArray |
search(long[] groupIds,
java.lang.String name,
long[] vocabularyIds,
int start,
int end) |
java.util.List<com.liferay.asset.kernel.model.AssetCategory> |
search(long groupId,
java.lang.String keywords,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator) |
com.liferay.portal.kernel.json.JSONArray |
search(long groupId,
java.lang.String name,
java.lang.String[] categoryProperties,
int start,
int end) |
com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(long[] groupIds,
java.lang.String title,
long[] vocabularyIds,
int start,
int end) |
com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(long[] groupIds,
java.lang.String title,
long[] parentCategoryIds,
long[] vocabularyIds,
int start,
int end) |
com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(long[] groupIds,
java.lang.String title,
long[] vocabularyIds,
long[] parentCategoryIds,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(long groupId,
java.lang.String title,
long vocabularyId,
int start,
int end) |
com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(long groupId,
java.lang.String title,
long parentCategoryId,
long vocabularyId,
int start,
int end) |
com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(long groupId,
java.lang.String title,
long vocabularyId,
long parentCategoryId,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort) |
protected com.liferay.portal.kernel.json.JSONArray |
toJSONArray(java.util.List<com.liferay.asset.kernel.model.AssetCategory> categories) |
com.liferay.asset.kernel.model.AssetCategory |
updateCategory(long categoryId,
long parentCategoryId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
long vocabularyId,
java.lang.String[] categoryProperties,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
afterPropertiesSet, destroy, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getCounterLocalService, getModelClass, getModelClassName, getOSGiServiceIdentifier, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setCounterLocalServicepublic com.liferay.asset.kernel.model.AssetCategory addCategory(long groupId,
long parentCategoryId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
long vocabularyId,
java.lang.String[] categoryProperties,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.asset.kernel.model.AssetCategory addCategory(long groupId,
java.lang.String title,
long vocabularyId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.asset.kernel.model.AssetCategory addCategory(java.lang.String externalReferenceCode,
long groupId,
long parentCategoryId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
long vocabularyId,
java.lang.String[] categoryProperties,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void deleteCategories(long[] categoryIds)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic void deleteCategory(long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.asset.kernel.model.AssetCategory fetchCategory(long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.asset.kernel.model.AssetCategory getAssetCategoryByExternalReferenceCode(long groupId,
java.lang.String externalReferenceCode)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.asset.kernel.model.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)public java.util.List<com.liferay.asset.kernel.model.AssetCategory> getCategories(java.lang.String className,
long classPK)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic int getCategoriesCount(long classNameId,
long classPK)
classNameId - the className of the assetclassPK - the classPK of the assetpublic com.liferay.asset.kernel.model.AssetCategory getCategory(long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic java.lang.String getCategoryPath(long categoryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.asset.kernel.model.AssetCategory> getChildCategories(long parentCategoryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.asset.kernel.model.AssetCategory> getChildCategories(long parentCategoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator)
throws com.liferay.portal.kernel.exception.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 comparatorcom.liferay.portal.kernel.exception.PortalExceptionpublic int getChildCategoriesCount(long parentCategoryId)
throws com.liferay.portal.kernel.exception.PortalException
parentCategoryId - the parent category IDcom.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(long groupId,
long parentCategoryId,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator)
public java.util.List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(long groupId,
java.lang.String name,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator)
public int getVocabularyCategoriesCount(long groupId,
long vocabularyId)
public int getVocabularyCategoriesCount(long groupId,
long parentCategory,
long vocabularyId)
public int getVocabularyCategoriesCount(long groupId,
java.lang.String name,
long vocabularyId)
public com.liferay.asset.kernel.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.asset.kernel.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(long groupId,
java.lang.String name,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyRootCategories(long groupId,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator)
public int getVocabularyRootCategoriesCount(long groupId,
long vocabularyId)
public com.liferay.asset.kernel.model.AssetCategory moveCategory(long categoryId,
long parentCategoryId,
long vocabularyId,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic java.util.List<com.liferay.asset.kernel.model.AssetCategory> search(long groupId,
java.lang.String keywords,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator)
public com.liferay.portal.kernel.json.JSONArray search(long groupId,
java.lang.String name,
java.lang.String[] categoryProperties,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.json.JSONArray search(long[] groupIds,
java.lang.String name,
long[] vocabularyIds,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long groupId,
java.lang.String title,
long vocabularyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long groupId,
java.lang.String title,
long parentCategoryId,
long vocabularyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long groupId,
java.lang.String title,
long vocabularyId,
long parentCategoryId,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
java.lang.String title,
long[] vocabularyIds,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
java.lang.String title,
long[] parentCategoryIds,
long[] vocabularyIds,
int start,
int end)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds,
java.lang.String title,
long[] vocabularyIds,
long[] parentCategoryIds,
int start,
int end,
com.liferay.portal.kernel.search.Sort sort)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.asset.kernel.model.AssetCategory updateCategory(long categoryId,
long parentCategoryId,
java.util.Map<java.util.Locale,java.lang.String> titleMap,
java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
long vocabularyId,
java.lang.String[] categoryProperties,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected java.util.List<com.liferay.asset.kernel.model.AssetCategory> filterCategories(java.util.List<com.liferay.asset.kernel.model.AssetCategory> categories)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionprotected com.liferay.portal.kernel.json.JSONArray toJSONArray(java.util.List<com.liferay.asset.kernel.model.AssetCategory> categories)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException