public class AssetCategoryServiceImpl extends AssetCategoryServiceBaseImpl
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetVocabularyFinder, assetVocabularyLocalService, assetVocabularyPersistence, assetVocabularyService, classNameLocalService, classNamePersistence, classNameService, counterLocalService, resourceLocalService, userFinder, userLocalService, userPersistence, userService
Constructor and Description |
---|
AssetCategoryServiceImpl() |
Modifier and Type | Method and Description |
---|---|
com.liferay.asset.kernel.model.AssetCategory |
addCategory(long groupId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
com.liferay.asset.kernel.model.AssetCategory |
addCategory(long groupId,
String title,
long vocabularyId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
deleteCategories(long[] categoryIds) |
List<com.liferay.asset.kernel.model.AssetCategory> |
deleteCategories(long[] categoryIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
Deprecated.
As of Wilberforce (7.0.x), Replaced by
deleteCategories(long[]) |
void |
deleteCategory(long categoryId) |
com.liferay.asset.kernel.model.AssetCategory |
fetchCategory(long categoryId) |
protected List<com.liferay.asset.kernel.model.AssetCategory> |
filterCategories(List<com.liferay.asset.kernel.model.AssetCategory> categories) |
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".
|
List<com.liferay.asset.kernel.model.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".
|
com.liferay.asset.kernel.model.AssetCategory |
getCategory(long categoryId) |
String |
getCategoryPath(long categoryId) |
List<com.liferay.asset.kernel.model.AssetCategory> |
getChildCategories(long parentCategoryId) |
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> obc)
eturns a range of child assetCategories.
|
int |
getChildCategoriesCount(long parentCategoryId)
Returns the number of child categories
|
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> obc) |
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> obc) |
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> obc) |
List<com.liferay.asset.kernel.model.AssetCategory> |
getVocabularyCategories(long groupId,
String name,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc) |
int |
getVocabularyCategoriesCount(long groupId,
long vocabularyId) |
int |
getVocabularyCategoriesCount(long groupId,
long parentCategory,
long vocabularyId) |
int |
getVocabularyCategoriesCount(long groupId,
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> obc) |
com.liferay.asset.kernel.model.AssetCategoryDisplay |
getVocabularyCategoriesDisplay(long groupId,
String name,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc) |
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> obc) |
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,
String name,
long[] vocabularyIds,
int start,
int end) |
List<com.liferay.asset.kernel.model.AssetCategory> |
search(long groupId,
String keywords,
long vocabularyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc) |
com.liferay.portal.kernel.json.JSONArray |
search(long groupId,
String name,
String[] categoryProperties,
int start,
int end) |
com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(long[] groupIds,
String title,
long[] vocabularyIds,
int start,
int end) |
com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(long[] groupIds,
String title,
long[] parentCategoryIds,
long[] vocabularyIds,
int start,
int end) |
com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(long[] groupIds,
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,
String title,
long vocabularyId,
int start,
int end) |
com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(long groupId,
String title,
long parentCategoryId,
long vocabularyId,
int start,
int end) |
com.liferay.asset.kernel.model.AssetCategoryDisplay |
searchCategoriesDisplay(long groupId,
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(List<com.liferay.asset.kernel.model.AssetCategory> categories) |
com.liferay.asset.kernel.model.AssetCategory |
updateCategory(long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
afterPropertiesSet, destroy, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetVocabularyFinder, getAssetVocabularyLocalService, getAssetVocabularyPersistence, getAssetVocabularyService, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCounterLocalService, getModelClass, getModelClassName, getOSGiServiceIdentifier, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetVocabularyFinder, setAssetVocabularyLocalService, setAssetVocabularyPersistence, setAssetVocabularyService, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCounterLocalService, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, setUserService
public com.liferay.asset.kernel.model.AssetCategory addCategory(long groupId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.asset.kernel.model.AssetCategory addCategory(long groupId, String title, long vocabularyId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public void deleteCategories(long[] categoryIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Deprecated public List<com.liferay.asset.kernel.model.AssetCategory> deleteCategories(long[] categoryIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
deleteCategories(long[])
com.liferay.portal.kernel.exception.PortalException
public void deleteCategory(long categoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.asset.kernel.model.AssetCategory fetchCategory(long categoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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 List<com.liferay.asset.kernel.model.AssetCategory> getCategories(String className, long classPK) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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.PortalException
public String getCategoryPath(long categoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.asset.kernel.model.AssetCategory> getChildCategories(long parentCategoryId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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> obc) 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)obc
- the comparatorcom.liferay.portal.kernel.exception.PortalException
public int getChildCategoriesCount(long parentCategoryId) throws com.liferay.portal.kernel.exception.PortalException
parentCategoryId
- the parent category IDcom.liferay.portal.kernel.exception.PortalException
public 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> obc) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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> obc) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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> obc)
public List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyCategories(long groupId, String name, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
public int getVocabularyCategoriesCount(long groupId, long vocabularyId)
public int getVocabularyCategoriesCount(long groupId, long parentCategory, long vocabularyId)
public int getVocabularyCategoriesCount(long groupId, 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> obc) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.asset.kernel.model.AssetCategoryDisplay getVocabularyCategoriesDisplay(long groupId, String name, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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> obc)
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.PortalException
public List<com.liferay.asset.kernel.model.AssetCategory> search(long groupId, String keywords, long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> obc)
public com.liferay.portal.kernel.json.JSONArray search(long groupId, String name, String[] categoryProperties, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.json.JSONArray search(long[] groupIds, String name, long[] vocabularyIds, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long vocabularyId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long groupId, String title, long parentCategoryId, long vocabularyId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long groupId, 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.PortalException
public com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] vocabularyIds, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.asset.kernel.model.AssetCategoryDisplay searchCategoriesDisplay(long[] groupIds, 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.PortalException
public com.liferay.asset.kernel.model.AssetCategory updateCategory(long categoryId, long parentCategoryId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, long vocabularyId, String[] categoryProperties, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected List<com.liferay.asset.kernel.model.AssetCategory> filterCategories(List<com.liferay.asset.kernel.model.AssetCategory> categories) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected com.liferay.portal.kernel.json.JSONArray toJSONArray(List<com.liferay.asset.kernel.model.AssetCategory> categories) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException