Class CategoryStorage

java.lang.Object
io.meeds.social.category.storage.CategoryStorage

@Service public class CategoryStorage extends Object
TODO change to component when CategoryIndexingConnector moved to be managed by Spring
  • 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

      public List<Long> getSubcategoryIds(long categoryId, long offset, long limit)
    • countSubcategories

      public long countSubcategories(long categoryId)
    • findCategories

      public List<io.meeds.social.category.model.Category> findCategories(io.meeds.social.category.model.CategorySearchFilter filter, List<Long> identityIds, Locale locale)
    • findCategoryIds

      public List<Long> findCategoryIds(io.meeds.social.category.model.CategorySearchFilter filter, List<Long> identityIds, Locale locale)
    • countSubcategories

      public int countSubcategories(io.meeds.social.category.model.CategorySearchFilter filter, List<Long> identityIds, Locale locale)
    • getLinkedIds

      public List<Long> getLinkedIds(io.meeds.social.category.model.CategoryObject object)
    • 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)