com.liferay.portlet.asset.service.impl
Class AssetCategoryLocalServiceImpl
java.lang.Object
com.liferay.portal.service.BaseLocalServiceImpl
com.liferay.portlet.asset.service.base.AssetCategoryLocalServiceBaseImpl
com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl
- All Implemented Interfaces:
- IdentifiableOSGiService, BaseLocalService, PersistedModelLocalService, AssetCategoryLocalService
public class AssetCategoryLocalServiceImpl
- extends AssetCategoryLocalServiceBaseImpl
Provides the local service for accessing, adding, deleting, merging, moving,
and updating asset categories.
| Fields inherited from class com.liferay.portlet.asset.service.base.AssetCategoryLocalServiceBaseImpl |
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryPropertyFinder, assetCategoryPropertyLocalService, assetCategoryPropertyPersistence, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetTagFinder, assetTagLocalService, assetTagPersistence, assetVocabularyFinder, assetVocabularyLocalService, assetVocabularyPersistence, classNameLocalService, classNamePersistence, counterLocalService, persistedModelLocalServiceRegistry, resourceLocalService, userFinder, userLocalService, userPersistence |
|
Method Summary |
AssetCategory |
addCategory(long userId,
long groupId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
|
AssetCategory |
addCategory(long userId,
long groupId,
String title,
long vocabularyId,
ServiceContext serviceContext)
|
void |
addCategoryResources(AssetCategory category,
boolean addGroupPermissions,
boolean addGuestPermissions)
|
void |
addCategoryResources(AssetCategory category,
ModelPermissions modelPermissions)
|
protected SearchContext |
buildSearchContext(long companyId,
long[] groupIds,
String title,
long[] parentCategoryIds,
long[] vocabularyIds,
int start,
int end,
Sort sort)
|
void |
deleteCategories(List<AssetCategory> categories)
|
void |
deleteCategories(long[] categoryIds)
|
AssetCategory |
deleteCategory(AssetCategory category)
|
AssetCategory |
deleteCategory(AssetCategory category,
boolean skipRebuildTree)
|
AssetCategory |
deleteCategory(long categoryId)
|
void |
deleteVocabularyCategories(long vocabularyId)
|
AssetCategory |
fetchCategory(long categoryId)
|
List<AssetCategory> |
getCategories()
|
List<AssetCategory> |
getCategories(Hits hits)
|
List<AssetCategory> |
getCategories(long classNameId,
long classPK)
|
List<AssetCategory> |
getCategories(String className,
long classPK)
|
AssetCategory |
getCategory(long categoryId)
|
AssetCategory |
getCategory(String uuid,
long groupId)
|
protected long[] |
getCategoryIds(List<AssetCategory> categories)
|
long[] |
getCategoryIds(String className,
long classPK)
|
String[] |
getCategoryNames()
|
protected String[] |
getCategoryNames(List<AssetCategory> categories)
|
String[] |
getCategoryNames(long classNameId,
long classPK)
|
String[] |
getCategoryNames(String className,
long classPK)
|
List<AssetCategory> |
getChildCategories(long parentCategoryId)
|
List<AssetCategory> |
getChildCategories(long parentCategoryId,
int start,
int end,
OrderByComparator<AssetCategory> obc)
|
int |
getChildCategoriesCount(long parentCategoryId)
|
List<AssetCategory> |
getEntryCategories(long entryId)
|
List<Long> |
getSubcategoryIds(long parentCategoryId)
|
List<AssetCategory> |
getVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc)
|
List<AssetCategory> |
getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc)
|
int |
getVocabularyCategoriesCount(long vocabularyId)
|
List<AssetCategory> |
getVocabularyRootCategories(long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc)
|
int |
getVocabularyRootCategoriesCount(long vocabularyId)
|
AssetCategory |
mergeCategories(long fromCategoryId,
long toCategoryId)
|
AssetCategory |
moveCategory(long categoryId,
long parentCategoryId,
long vocabularyId,
ServiceContext serviceContext)
|
void |
rebuildTree(long groupId,
boolean force)
|
List<AssetCategory> |
search(long groupId,
String name,
String[] categoryProperties,
int start,
int end)
|
BaseModelSearchResult<AssetCategory> |
searchCategories(long companyId,
long[] groupIds,
String title,
long[] vocabularyIds,
int start,
int end)
|
BaseModelSearchResult<AssetCategory> |
searchCategories(long companyId,
long[] groupIds,
String title,
long[] parentCategoryIds,
long[] vocabularyIds,
int start,
int end)
|
BaseModelSearchResult<AssetCategory> |
searchCategories(long companyId,
long[] groupIds,
String title,
long[] vocabularyIds,
long[] parentCategoryIds,
int start,
int end,
Sort sort)
|
BaseModelSearchResult<AssetCategory> |
searchCategories(long companyId,
long groupIds,
String title,
long vocabularyId,
int start,
int end)
|
protected BaseModelSearchResult<AssetCategory> |
searchCategories(SearchContext searchContext)
|
AssetCategory |
updateCategory(long userId,
long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
|
protected void |
updateChildrenVocabularyId(AssetCategory category,
long vocabularyId)
|
protected void |
validate(long categoryId,
long parentCategoryId,
String name,
long vocabularyId)
|
| Methods inherited from class com.liferay.portlet.asset.service.base.AssetCategoryLocalServiceBaseImpl |
addAssetCategory, addAssetEntryAssetCategories, addAssetEntryAssetCategories, addAssetEntryAssetCategory, addAssetEntryAssetCategory, afterPropertiesSet, clearAssetEntryAssetCategories, createAssetCategory, deleteAssetCategory, deleteAssetCategory, deleteAssetEntryAssetCategories, deleteAssetEntryAssetCategories, deleteAssetEntryAssetCategory, deleteAssetEntryAssetCategory, deletePersistedModel, destroy, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchAssetCategory, fetchAssetCategoryByUuidAndGroupId, getActionableDynamicQuery, getAssetCategories, getAssetCategoriesByUuidAndCompanyId, getAssetCategoriesByUuidAndCompanyId, getAssetCategoriesCount, getAssetCategory, getAssetCategoryByUuidAndGroupId, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryPropertyFinder, getAssetCategoryPropertyLocalService, getAssetCategoryPropertyPersistence, getAssetEntryAssetCategories, getAssetEntryAssetCategories, getAssetEntryAssetCategories, getAssetEntryAssetCategoriesCount, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryPrimaryKeys, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetVocabularyFinder, getAssetVocabularyLocalService, getAssetVocabularyPersistence, getClassNameLocalService, getClassNamePersistence, getCounterLocalService, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, getResourceLocalService, getUserFinder, getUserLocalService, getUserPersistence, hasAssetEntryAssetCategories, hasAssetEntryAssetCategory, initActionableDynamicQuery, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryPropertyFinder, setAssetCategoryPropertyLocalService, setAssetCategoryPropertyPersistence, setAssetEntryAssetCategories, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetVocabularyFinder, setAssetVocabularyLocalService, setAssetVocabularyPersistence, setClassNameLocalService, setClassNamePersistence, setCounterLocalService, setResourceLocalService, setUserFinder, setUserLocalService, setUserPersistence, updateAssetCategory |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AssetCategoryLocalServiceImpl
public AssetCategoryLocalServiceImpl()
addCategory
@Indexable(type=REINDEX)
public AssetCategory addCategory(long userId,
long groupId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
addCategory
public AssetCategory addCategory(long userId,
long groupId,
String title,
long vocabularyId,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
addCategoryResources
public void addCategoryResources(AssetCategory category,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws PortalException
- Throws:
PortalException
addCategoryResources
public void addCategoryResources(AssetCategory category,
ModelPermissions modelPermissions)
throws PortalException
- Throws:
PortalException
deleteCategories
public void deleteCategories(List<AssetCategory> categories)
throws PortalException
- Throws:
PortalException
deleteCategories
public void deleteCategories(long[] categoryIds)
throws PortalException
- Throws:
PortalException
deleteCategory
public AssetCategory deleteCategory(AssetCategory category)
throws PortalException
- Throws:
PortalException
deleteCategory
@Indexable(type=DELETE)
@SystemEvent(type=1)
public AssetCategory deleteCategory(AssetCategory category,
boolean skipRebuildTree)
throws PortalException
- Throws:
PortalException
deleteCategory
public AssetCategory deleteCategory(long categoryId)
throws PortalException
- Throws:
PortalException
deleteVocabularyCategories
public void deleteVocabularyCategories(long vocabularyId)
throws PortalException
- Throws:
PortalException
fetchCategory
public AssetCategory fetchCategory(long categoryId)
getCategories
public List<AssetCategory> getCategories()
getCategories
public List<AssetCategory> getCategories(Hits hits)
throws PortalException
- Throws:
PortalException
getCategories
@ThreadLocalCachable
public List<AssetCategory> getCategories(long classNameId,
long classPK)
getCategories
public List<AssetCategory> getCategories(String className,
long classPK)
getCategory
public AssetCategory getCategory(long categoryId)
throws PortalException
- Throws:
PortalException
getCategory
public AssetCategory getCategory(String uuid,
long groupId)
throws PortalException
- Throws:
PortalException
getCategoryIds
public long[] getCategoryIds(String className,
long classPK)
getCategoryNames
public String[] getCategoryNames()
getCategoryNames
public String[] getCategoryNames(long classNameId,
long classPK)
getCategoryNames
public String[] getCategoryNames(String className,
long classPK)
getChildCategories
public List<AssetCategory> getChildCategories(long parentCategoryId)
getChildCategories
public List<AssetCategory> getChildCategories(long parentCategoryId,
int start,
int end,
OrderByComparator<AssetCategory> obc)
getChildCategoriesCount
public int getChildCategoriesCount(long parentCategoryId)
getEntryCategories
public List<AssetCategory> getEntryCategories(long entryId)
getSubcategoryIds
public List<Long> getSubcategoryIds(long parentCategoryId)
getVocabularyCategories
public List<AssetCategory> getVocabularyCategories(long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc)
getVocabularyCategories
public List<AssetCategory> getVocabularyCategories(long parentCategoryId,
long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc)
getVocabularyCategoriesCount
public int getVocabularyCategoriesCount(long vocabularyId)
getVocabularyRootCategories
public List<AssetCategory> getVocabularyRootCategories(long vocabularyId,
int start,
int end,
OrderByComparator<AssetCategory> obc)
getVocabularyRootCategoriesCount
public int getVocabularyRootCategoriesCount(long vocabularyId)
mergeCategories
@Indexable(type=REINDEX)
public AssetCategory mergeCategories(long fromCategoryId,
long toCategoryId)
throws PortalException
- Throws:
PortalException
moveCategory
@Indexable(type=REINDEX)
public AssetCategory moveCategory(long categoryId,
long parentCategoryId,
long vocabularyId,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
rebuildTree
public void rebuildTree(long groupId,
boolean force)
search
public List<AssetCategory> search(long groupId,
String name,
String[] categoryProperties,
int start,
int end)
searchCategories
public BaseModelSearchResult<AssetCategory> searchCategories(long companyId,
long groupIds,
String title,
long vocabularyId,
int start,
int end)
throws PortalException
- Throws:
PortalException
searchCategories
public BaseModelSearchResult<AssetCategory> searchCategories(long companyId,
long[] groupIds,
String title,
long[] vocabularyIds,
int start,
int end)
throws PortalException
- Throws:
PortalException
searchCategories
public BaseModelSearchResult<AssetCategory> searchCategories(long companyId,
long[] groupIds,
String title,
long[] parentCategoryIds,
long[] vocabularyIds,
int start,
int end)
throws PortalException
- Throws:
PortalException
searchCategories
public BaseModelSearchResult<AssetCategory> searchCategories(long companyId,
long[] groupIds,
String title,
long[] vocabularyIds,
long[] parentCategoryIds,
int start,
int end,
Sort sort)
throws PortalException
- Throws:
PortalException
updateCategory
@Indexable(type=REINDEX)
public AssetCategory updateCategory(long userId,
long categoryId,
long parentCategoryId,
Map<Locale,String> titleMap,
Map<Locale,String> descriptionMap,
long vocabularyId,
String[] categoryProperties,
ServiceContext serviceContext)
throws PortalException
- Throws:
PortalException
buildSearchContext
protected SearchContext buildSearchContext(long companyId,
long[] groupIds,
String title,
long[] parentCategoryIds,
long[] vocabularyIds,
int start,
int end,
Sort sort)
getCategoryIds
protected long[] getCategoryIds(List<AssetCategory> categories)
getCategoryNames
protected String[] getCategoryNames(List<AssetCategory> categories)
searchCategories
protected BaseModelSearchResult<AssetCategory> searchCategories(SearchContext searchContext)
throws PortalException
- Throws:
PortalException
updateChildrenVocabularyId
protected void updateChildrenVocabularyId(AssetCategory category,
long vocabularyId)
validate
protected void validate(long categoryId,
long parentCategoryId,
String name,
long vocabularyId)
throws PortalException
- Throws:
PortalException