Package io.meeds.social.category.storage
Class CategoryStorage
java.lang.Object
io.meeds.social.category.storage.CategoryStorage
TODO change to component when CategoryIndexingConnector moved to be managed
by Spring
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcountSubcategories(long categoryId) intcountSubcategories(io.meeds.social.category.model.CategorySearchFilter filter, List<Long> identityIds, Locale locale) io.meeds.social.category.model.CategorycreateCategory(io.meeds.social.category.model.Category category) io.meeds.social.category.model.CategorydeleteCategory(long id) List<io.meeds.social.category.model.Category> findCategories(io.meeds.social.category.model.CategorySearchFilter filter, List<Long> identityIds, Locale locale) findCategoryIds(io.meeds.social.category.model.CategorySearchFilter filter, List<Long> identityIds, Locale locale) getAllCategoryIds(int offset, int limit) io.meeds.social.category.model.CategorygetCategory(long categoryId) getLinkedIds(io.meeds.social.category.model.CategoryObject object) getLinkedIds(String objectType) org.exoplatform.social.metadata.model.MetadataItemgetMetadataItem(long categoryId, io.meeds.social.category.model.CategoryObject object) io.meeds.social.category.model.CategorygetRootCategory(long ownerId) longgetRootCategoryId(long ownerId) getSubcategoryIds(long categoryId, long offset, long limit) booleanisLinked(long categoryId, io.meeds.social.category.model.CategoryObject object) voidlink(long categoryId, io.meeds.social.category.model.CategoryObject object, long userIdentityId) voidunlink(long categoryId, io.meeds.social.category.model.CategoryObject object) io.meeds.social.category.model.CategoryupdateCategory(io.meeds.social.category.model.Category category)
-
Constructor Details
-
CategoryStorage
public CategoryStorage()
-
-
Method Details
-
createCategory
public io.meeds.social.category.model.Category createCategory(io.meeds.social.category.model.Category category) -
updateCategory
@CacheEvict(cacheNames="social.category", key="#root.args[0].getId()") public io.meeds.social.category.model.Category updateCategory(io.meeds.social.category.model.Category category) -
deleteCategory
@CacheEvict(cacheNames="social.category") public io.meeds.social.category.model.Category deleteCategory(long id) -
getCategory
@Cacheable(cacheNames="social.category") public io.meeds.social.category.model.Category getCategory(long categoryId) -
getRootCategoryId
@Cacheable(cacheNames="social.categoryRootId") public long getRootCategoryId(long ownerId) -
getRootCategory
public io.meeds.social.category.model.Category getRootCategory(long ownerId) -
getSubcategoryIds
-
countSubcategories
public long countSubcategories(long categoryId) -
findCategories
-
findCategoryIds
-
countSubcategories
-
getLinkedIds
-
getLinkedIds
-
isLinked
public boolean isLinked(long categoryId, io.meeds.social.category.model.CategoryObject object) -
link
public void link(long categoryId, io.meeds.social.category.model.CategoryObject object, long userIdentityId) -
unlink
public void unlink(long categoryId, io.meeds.social.category.model.CategoryObject object) -
getMetadataItem
public org.exoplatform.social.metadata.model.MetadataItem getMetadataItem(long categoryId, io.meeds.social.category.model.CategoryObject object) -
getAllCategoryIds
-