Class AssetCategoryLocalServiceImpl
Object
com.liferay.portal.kernel.service.BaseLocalServiceImpl
com.liferay.portlet.asset.service.base.AssetCategoryLocalServiceBaseImpl
com.liferay.portlet.asset.service.impl.AssetCategoryLocalServiceImpl
- All Implemented Interfaces:
com.liferay.asset.kernel.service.AssetCategoryLocalService
,com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
,com.liferay.portal.kernel.service.BaseLocalService
,com.liferay.portal.kernel.service.change.tracking.CTService<com.liferay.asset.kernel.model.AssetCategory>
,com.liferay.portal.kernel.service.PersistedModelLocalService
Provides the local service for accessing, adding, deleting, merging, moving,
and updating asset categories.
- Author:
- Brian Wing Shun Chan, Alvaro del Castillo, Jorge Ferrer, Bruno Farache
-
Field Summary
Fields inherited from class com.liferay.portlet.asset.service.base.AssetCategoryLocalServiceBaseImpl
assetCategoryLocalService, assetCategoryPersistence, counterLocalService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.liferay.asset.kernel.model.AssetCategory
addCategory
(long userId, long groupId, String title, long vocabularyId, com.liferay.portal.kernel.service.ServiceContext serviceContext) com.liferay.asset.kernel.model.AssetCategory
addCategory
(String externalReferenceCode, long userId, long groupId, long parentCategoryId, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, long vocabularyId, String[] categoryProperties, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
addCategoryResources
(com.liferay.asset.kernel.model.AssetCategory category, boolean addGroupPermissions, boolean addGuestPermissions) void
addCategoryResources
(com.liferay.asset.kernel.model.AssetCategory category, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) protected com.liferay.portal.kernel.search.SearchContext
buildSearchContext
(long companyId, long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end, com.liferay.portal.kernel.search.Sort sort) void
deleteCategories
(long[] categoryIds) void
deleteCategories
(List<com.liferay.asset.kernel.model.AssetCategory> categories) com.liferay.asset.kernel.model.AssetCategory
deleteCategory
(long categoryId) com.liferay.asset.kernel.model.AssetCategory
deleteCategory
(com.liferay.asset.kernel.model.AssetCategory category) com.liferay.asset.kernel.model.AssetCategory
deleteCategory
(com.liferay.asset.kernel.model.AssetCategory category, boolean skipRebuildTree) void
deleteVocabularyCategories
(long vocabularyId) com.liferay.asset.kernel.model.AssetCategory
fetchCategory
(long categoryId) com.liferay.asset.kernel.model.AssetCategory
fetchCategory
(long groupId, long parentCategoryId, String name, long vocabularyId) List<com.liferay.asset.kernel.model.AssetCategory>
List<com.liferay.asset.kernel.model.AssetCategory>
getCategories
(long classNameId, long classPK) List<com.liferay.asset.kernel.model.AssetCategory>
getCategories
(long classNameId, long classPK, int start, int end) List<com.liferay.asset.kernel.model.AssetCategory>
getCategories
(com.liferay.portal.kernel.search.Hits hits) List<com.liferay.asset.kernel.model.AssetCategory>
getCategories
(String className, long classPK) int
getCategoriesCount
(long classNameId, long classPK) com.liferay.asset.kernel.model.AssetCategory
getCategory
(long categoryId) com.liferay.asset.kernel.model.AssetCategory
getCategory
(String uuid, long groupId) long[]
getCategoryIds
(String className, long classPK) protected long[]
getCategoryIds
(List<com.liferay.asset.kernel.model.AssetCategory> categories) String[]
String[]
getCategoryNames
(long classNameId, long classPK) String[]
getCategoryNames
(String className, long classPK) protected String[]
getCategoryNames
(List<com.liferay.asset.kernel.model.AssetCategory> categories) 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> orderByComparator) int
getChildCategoriesCount
(long parentCategoryId) List<com.liferay.asset.kernel.model.AssetCategory>
getDescendantCategories
(com.liferay.asset.kernel.model.AssetCategory category) List<com.liferay.asset.kernel.model.AssetCategory>
getEntryCategories
(long entryId) getSubcategoryIds
(long parentCategoryId) long[]
getViewableCategoryIds
(String className, long classPK, long[] categoryIds) 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) 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) int
getVocabularyCategoriesCount
(long vocabularyId) List<com.liferay.asset.kernel.model.AssetCategory>
getVocabularyRootCategories
(long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator) int
getVocabularyRootCategoriesCount
(long vocabularyId) com.liferay.asset.kernel.model.AssetCategory
mergeCategories
(long fromCategoryId, long toCategoryId) com.liferay.asset.kernel.model.AssetCategory
moveCategory
(long categoryId, long parentCategoryId, long vocabularyId, com.liferay.portal.kernel.service.ServiceContext serviceContext) List<com.liferay.asset.kernel.model.AssetCategory>
com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetCategory>
searchCategories
(long companyId, long[] groupIds, String title, long[] vocabularyIds, int start, int end) com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetCategory>
searchCategories
(long companyId, long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end) com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetCategory>
searchCategories
(long companyId, long[] groupIds, String title, long[] vocabularyIds, long[] parentCategoryIds, int start, int end, com.liferay.portal.kernel.search.Sort sort) com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetCategory>
searchCategories
(long companyId, long groupIds, String title, long vocabularyId, int start, int end) protected com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetCategory>
searchCategories
(com.liferay.portal.kernel.search.SearchContext searchContext) com.liferay.asset.kernel.model.AssetCategory
updateCategory
(long userId, long categoryId, long parentCategoryId, Map<Locale, String> titleMap, Map<Locale, String> descriptionMap, long vocabularyId, String[] categoryProperties, com.liferay.portal.kernel.service.ServiceContext serviceContext) protected void
updateChildrenVocabularyId
(com.liferay.asset.kernel.model.AssetCategory category, long vocabularyId) protected void
Methods inherited from class com.liferay.portlet.asset.service.base.AssetCategoryLocalServiceBaseImpl
addAssetCategory, afterPropertiesSet, createAssetCategory, createPersistedModel, deleteAssetCategory, deleteAssetCategory, deletePersistedModel, destroy, dslQuery, dslQueryCount, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, dynamicQueryCount, fetchAssetCategory, fetchAssetCategoryByExternalReferenceCode, fetchAssetCategoryByUuidAndGroupId, getActionableDynamicQuery, getAssetCategories, getAssetCategoriesByUuidAndCompanyId, getAssetCategoriesByUuidAndCompanyId, getAssetCategoriesCount, getAssetCategory, getAssetCategoryByExternalReferenceCode, getAssetCategoryByUuidAndGroupId, getAssetCategoryLocalService, getAssetCategoryPersistence, getBasePersistence, getCounterLocalService, getCTPersistence, getExportActionableDynamicQuery, getIndexableActionableDynamicQuery, getModelClass, getModelClassName, getOSGiServiceIdentifier, getPersistedModel, initActionableDynamicQuery, runSQL, setAssetCategoryLocalService, setAssetCategoryPersistence, setCounterLocalService, updateAssetCategory, updateWithUnsafeFunction
Methods inherited from class com.liferay.portal.kernel.service.BaseLocalServiceImpl
getClassLoader, getLocalizationMap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.service.PersistedModelLocalService
fetchPersistedModel
-
Constructor Details
-
AssetCategoryLocalServiceImpl
public AssetCategoryLocalServiceImpl()
-
-
Method Details
-
addCategory
public com.liferay.asset.kernel.model.AssetCategory addCategory(long userId, long groupId, String title, long vocabularyId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCategory
@Indexable(type=REINDEX) public com.liferay.asset.kernel.model.AssetCategory addCategory(String externalReferenceCode, long userId, long groupId, long parentCategoryId, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, long vocabularyId, String[] categoryProperties, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCategoryResources
public void addCategoryResources(com.liferay.asset.kernel.model.AssetCategory category, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
addCategoryResources
public void addCategoryResources(com.liferay.asset.kernel.model.AssetCategory category, com.liferay.portal.kernel.service.permission.ModelPermissions modelPermissions) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCategories
public void deleteCategories(List<com.liferay.asset.kernel.model.AssetCategory> categories) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCategories
public void deleteCategories(long[] categoryIds) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCategory
public com.liferay.asset.kernel.model.AssetCategory deleteCategory(com.liferay.asset.kernel.model.AssetCategory category) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCategory
@Indexable(type=DELETE) @SystemEvent(type=1) public com.liferay.asset.kernel.model.AssetCategory deleteCategory(com.liferay.asset.kernel.model.AssetCategory category, boolean skipRebuildTree) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteCategory
public com.liferay.asset.kernel.model.AssetCategory deleteCategory(long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteVocabularyCategories
public void deleteVocabularyCategories(long vocabularyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchCategory
public com.liferay.asset.kernel.model.AssetCategory fetchCategory(long categoryId) -
fetchCategory
public com.liferay.asset.kernel.model.AssetCategory fetchCategory(long groupId, long parentCategoryId, String name, long vocabularyId) -
getCategories
-
getCategories
public List<com.liferay.asset.kernel.model.AssetCategory> getCategories(com.liferay.portal.kernel.search.Hits hits) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategories
@ThreadLocalCachable public List<com.liferay.asset.kernel.model.AssetCategory> getCategories(long classNameId, long classPK) -
getCategories
public List<com.liferay.asset.kernel.model.AssetCategory> getCategories(long classNameId, long classPK, int start, int end) -
getCategories
-
getCategoriesCount
public int getCategoriesCount(long classNameId, long classPK) -
getCategory
public com.liferay.asset.kernel.model.AssetCategory getCategory(long categoryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategory
public com.liferay.asset.kernel.model.AssetCategory getCategory(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getCategoryIds
-
getCategoryNames
-
getCategoryNames
-
getCategoryNames
-
getChildCategories
-
getChildCategories
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> orderByComparator) -
getChildCategoriesCount
public int getChildCategoriesCount(long parentCategoryId) -
getDescendantCategories
public List<com.liferay.asset.kernel.model.AssetCategory> getDescendantCategories(com.liferay.asset.kernel.model.AssetCategory category) -
getEntryCategories
-
getSubcategoryIds
-
getViewableCategoryIds
public long[] getViewableCategoryIds(String className, long classPK, long[] categoryIds) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getVocabularyCategories
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> orderByComparator) -
getVocabularyCategories
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> orderByComparator) -
getVocabularyCategoriesCount
public int getVocabularyCategoriesCount(long vocabularyId) -
getVocabularyRootCategories
public List<com.liferay.asset.kernel.model.AssetCategory> getVocabularyRootCategories(long vocabularyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.asset.kernel.model.AssetCategory> orderByComparator) -
getVocabularyRootCategoriesCount
public int getVocabularyRootCategoriesCount(long vocabularyId) -
mergeCategories
@Indexable(type=REINDEX) public com.liferay.asset.kernel.model.AssetCategory mergeCategories(long fromCategoryId, long toCategoryId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveCategory
@Indexable(type=REINDEX) 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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
search
-
searchCategories
public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetCategory> searchCategories(long companyId, long groupIds, String title, long vocabularyId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCategories
public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetCategory> searchCategories(long companyId, long[] groupIds, String title, long[] vocabularyIds, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCategories
public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetCategory> searchCategories(long companyId, long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
searchCategories
public com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetCategory> searchCategories(long companyId, 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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateCategory
@Indexable(type=REINDEX) public com.liferay.asset.kernel.model.AssetCategory updateCategory(long userId, long categoryId, long parentCategoryId, Map<Locale, String> titleMap, Map<Locale, throws com.liferay.portal.kernel.exception.PortalExceptionString> descriptionMap, long vocabularyId, String[] categoryProperties, com.liferay.portal.kernel.service.ServiceContext serviceContext) - Throws:
com.liferay.portal.kernel.exception.PortalException
-
buildSearchContext
protected com.liferay.portal.kernel.search.SearchContext buildSearchContext(long companyId, long[] groupIds, String title, long[] parentCategoryIds, long[] vocabularyIds, int start, int end, com.liferay.portal.kernel.search.Sort sort) -
getCategoryIds
-
getCategoryNames
-
searchCategories
protected com.liferay.portal.kernel.search.BaseModelSearchResult<com.liferay.asset.kernel.model.AssetCategory> searchCategories(com.liferay.portal.kernel.search.SearchContext searchContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
updateChildrenVocabularyId
protected void updateChildrenVocabularyId(com.liferay.asset.kernel.model.AssetCategory category, long vocabularyId) -
validate
protected void validate(long categoryId, long parentCategoryId, String name, long vocabularyId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-