com.liferay.portlet.asset.service.impl
Class AssetCategoryServiceImpl
java.lang.Object
com.liferay.portal.service.BaseServiceImpl
com.liferay.portlet.asset.service.base.AssetCategoryServiceBaseImpl
com.liferay.portlet.asset.service.impl.AssetCategoryServiceImpl
- All Implemented Interfaces:
- IdentifiableBean, BaseService, AssetCategoryService
public class AssetCategoryServiceImpl
- extends AssetCategoryServiceBaseImpl
Provides the remote service for accessing, adding, deleting, moving, and
updating asset categories. Its methods include permission checks.
| Fields inherited from class com.liferay.portlet.asset.service.base.AssetCategoryServiceBaseImpl |
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryPropertyFinder, assetCategoryPropertyLocalService, assetCategoryPropertyPersistence, assetCategoryPropertyService, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetLinkFinder, assetLinkLocalService, assetLinkPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagPropertyFinder, assetTagPropertyKeyFinder, assetTagPropertyLocalService, assetTagPropertyPersistence, assetTagPropertyService, assetTagService, assetTagStatsLocalService, assetTagStatsPersistence, assetVocabularyFinder, assetVocabularyLocalService, assetVocabularyPersistence, assetVocabularyService, counterLocalService, resourceLocalService, userFinder, userLocalService, userPersistence, userService |
|
Method Summary |
AssetCategory |
addCategory(long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
|
AssetCategory |
addCategory(String title,
long vocabularyId,
ServiceContext serviceContext)
|
List<AssetCategory> |
deleteCategories(long[] categoryIds,
ServiceContext serviceContext)
|
void |
deleteCategory(long categoryId)
|
protected List<AssetCategory> |
filterCategories(List<AssetCategory> categories)
|
List<AssetCategory> |
getCategories(String className,
long classPK)
|
AssetCategory |
getCategory(long categoryId)
|
List<AssetCategory> |
getChildCategories(long parentCategoryId)
|
List<AssetCategory> |
getChildCategories(long parentCategoryId,
int start,
int end,
OrderByComparator obc)
|
JSONArray |
getJSONSearch(long groupId,
String name,
long[] vocabularyIds,
int start,
int end)
Deprecated. As of 6.2.0, replaced by search(long[], String,
long[], int, int) |
JSONObject |
getJSONVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
Deprecated. As of 6.2.0, replaced by getVocabularyCategoriesDisplay(long, int, int,
OrderByComparator) |
JSONObject |
getJSONVocabularyCategories(long groupId,
String name,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
Deprecated. As of 6.2.0, replaced by getVocabularyCategoriesDisplay(long, String, long, int, int,
OrderByComparator) |
List<AssetCategory> |
getVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
List<AssetCategory> |
getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
List<AssetCategory> |
getVocabularyCategories(long groupId,
String name,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
int |
getVocabularyCategoriesCount(long groupId,
long vocabularyId)
|
int |
getVocabularyCategoriesCount(long groupId,
String name,
long vocabularyId)
|
AssetCategoryDisplay |
getVocabularyCategoriesDisplay(long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
AssetCategoryDisplay |
getVocabularyCategoriesDisplay(long groupId,
String name,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
List<AssetCategory> |
getVocabularyRootCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
Deprecated. As of 6.2.0, replaced by getVocabularyRootCategories(long, long, int, int,
OrderByComparator) |
List<AssetCategory> |
getVocabularyRootCategories(long groupId,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
|
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 obc)
|
JSONArray |
search(long groupId,
String name,
String[] categoryProperties,
int start,
int end)
|
protected JSONArray |
toJSONArray(List<AssetCategory> categories)
|
AssetCategory |
updateCategory(long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
|
| Methods inherited from class com.liferay.portlet.asset.service.base.AssetCategoryServiceBaseImpl |
afterPropertiesSet, destroy, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryPropertyFinder, getAssetCategoryPropertyLocalService, getAssetCategoryPropertyPersistence, getAssetCategoryPropertyService, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetLinkFinder, getAssetLinkLocalService, getAssetLinkPersistence, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagPropertyFinder, getAssetTagPropertyKeyFinder, getAssetTagPropertyLocalService, getAssetTagPropertyPersistence, getAssetTagPropertyService, getAssetTagService, getAssetTagStatsLocalService, getAssetTagStatsPersistence, getAssetVocabularyFinder, getAssetVocabularyLocalService, getAssetVocabularyPersistence, getAssetVocabularyService, getBeanIdentifier, getCounterLocalService, getModelClass, getModelClassName, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryPropertyFinder, setAssetCategoryPropertyLocalService, setAssetCategoryPropertyPersistence, setAssetCategoryPropertyService, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetLinkFinder, setAssetLinkLocalService, setAssetLinkPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagPropertyFinder, setAssetTagPropertyKeyFinder, setAssetTagPropertyLocalService, setAssetTagPropertyPersistence, setAssetTagPropertyService, setAssetTagService, setAssetTagStatsLocalService, setAssetTagStatsPersistence, setAssetVocabularyFinder, setAssetVocabularyLocalService, setAssetVocabularyPersistence, setAssetVocabularyService, setBeanIdentifier, setCounterLocalService, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, setUserService |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssetCategoryServiceImpl
public AssetCategoryServiceImpl()
addCategory
public AssetCategory addCategory(long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addCategory
public AssetCategory addCategory(String title,
long vocabularyId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteCategories
public List<AssetCategory> deleteCategories(long[] categoryIds,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteCategory
public void deleteCategory(long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCategories
public List<AssetCategory> getCategories(String className,
long classPK)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getCategory
public AssetCategory getCategory(long categoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getChildCategories
public List<AssetCategory> getChildCategories(long parentCategoryId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getChildCategories
public List<AssetCategory> getChildCategories(long parentCategoryId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getJSONSearch
public JSONArray getJSONSearch(long groupId,
String name,
long[] vocabularyIds,
int start,
int end)
throws PortalException,
SystemException
- Deprecated. As of 6.2.0, replaced by
search(long[], String,
long[], int, int)
- Throws:
PortalException
SystemException
getJSONVocabularyCategories
public JSONObject getJSONVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Deprecated. As of 6.2.0, replaced by
getVocabularyCategoriesDisplay(long, int, int,
OrderByComparator)
- Throws:
PortalException
SystemException
getJSONVocabularyCategories
public JSONObject getJSONVocabularyCategories(long groupId,
String name,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Deprecated. As of 6.2.0, replaced by
getVocabularyCategoriesDisplay(long, String, long, int, int,
OrderByComparator)
- Throws:
PortalException
SystemException
getVocabularyCategories
public List<AssetCategory> getVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getVocabularyCategories
public List<AssetCategory> getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getVocabularyCategories
public List<AssetCategory> getVocabularyCategories(long groupId,
String name,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getVocabularyCategoriesCount
public int getVocabularyCategoriesCount(long groupId,
long vocabularyId)
throws SystemException
- Throws:
SystemException
getVocabularyCategoriesCount
public int getVocabularyCategoriesCount(long groupId,
String name,
long vocabularyId)
throws SystemException
- Throws:
SystemException
getVocabularyCategoriesDisplay
public AssetCategoryDisplay getVocabularyCategoriesDisplay(long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getVocabularyCategoriesDisplay
public AssetCategoryDisplay getVocabularyCategoriesDisplay(long groupId,
String name,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getVocabularyRootCategories
public List<AssetCategory> getVocabularyRootCategories(long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws PortalException,
SystemException
- Deprecated. As of 6.2.0, replaced by
getVocabularyRootCategories(long, long, int, int,
OrderByComparator)
- Throws:
PortalException
SystemException
getVocabularyRootCategories
public List<AssetCategory> getVocabularyRootCategories(long groupId,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
getVocabularyRootCategoriesCount
public int getVocabularyRootCategoriesCount(long groupId,
long vocabularyId)
throws SystemException
- Throws:
SystemException
moveCategory
public AssetCategory moveCategory(long categoryId,
long parentCategoryId,
long vocabularyId,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
search
public List<AssetCategory> search(long groupId,
String keywords,
long vocabularyId,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Throws:
SystemException
search
public JSONArray search(long groupId,
String name,
String[] categoryProperties,
int start,
int end)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
search
public JSONArray search(long[] groupIds,
String name,
long[] vocabularyIds,
int start,
int end)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateCategory
public AssetCategory updateCategory(long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
filterCategories
protected List<AssetCategory> filterCategories(List<AssetCategory> categories)
throws PortalException
- Throws:
PortalException
toJSONArray
protected JSONArray toJSONArray(List<AssetCategory> categories)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException