Package io.meeds.social.category.service
Class CategoryServiceImpl
java.lang.Object
io.meeds.social.category.service.CategoryServiceImpl
- All Implemented Interfaces:
io.meeds.social.category.service.CategoryService
@Service
public class CategoryServiceImpl
extends Object
implements io.meeds.social.category.service.CategoryService
-
Field Summary
FieldsFields inherited from interface io.meeds.social.category.service.CategoryService
EVENT_SOCIAL_CATEGORY_CREATED, EVENT_SOCIAL_CATEGORY_DELETED, EVENT_SOCIAL_CATEGORY_ITEM_LINKED, EVENT_SOCIAL_CATEGORY_ITEM_UNLINKED, EVENT_SOCIAL_CATEGORY_UPDATED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleancanManageLink(long categoryId, String username) booleancanManageLink(io.meeds.social.category.model.Category category, String username) io.meeds.social.category.model.CategorycreateCategory(io.meeds.social.category.model.Category category, String username) io.meeds.social.category.model.CategorydeleteCategory(long categoryId, String username) List<io.meeds.social.category.model.CategorySearchResult> findCategories(io.meeds.social.category.model.CategorySearchFilter filter, String username, Locale locale) getAncestorIds(long categoryId) getAncestorIds(long categoryId, String username) io.meeds.social.category.model.CategorygetCategory(long categoryId) io.meeds.social.category.model.CategoryWithNamegetCategory(long categoryId, String username, Locale locale) io.meeds.social.category.model.CategoryTreegetCategoryTree(io.meeds.social.category.model.CategoryFilter filter, String username, Locale locale) io.meeds.social.category.model.CategorygetRootCategory(long ownerId) getSubcategoryIds(long categoryId, long offset, long limit, long depth) getSubcategoryIds(String username, long categoryId, long offset, long limit, long depth) io.meeds.social.category.model.CategoryupdateCategory(io.meeds.social.category.model.Category category, String username) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.meeds.social.category.service.CategoryService
getSubcategoryIds
-
Field Details
-
ADMINISTRATORS_GROUP
- See Also:
-
-
Constructor Details
-
CategoryServiceImpl
public CategoryServiceImpl()
-
-
Method Details
-
getCategoryTree
public io.meeds.social.category.model.CategoryTree getCategoryTree(io.meeds.social.category.model.CategoryFilter filter, String username, Locale locale) - Specified by:
getCategoryTreein interfaceio.meeds.social.category.service.CategoryService
-
findCategories
public List<io.meeds.social.category.model.CategorySearchResult> findCategories(io.meeds.social.category.model.CategorySearchFilter filter, String username, Locale locale) - Specified by:
findCategoriesin interfaceio.meeds.social.category.service.CategoryService
-
getAncestorIds
public List<Long> getAncestorIds(long categoryId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Specified by:
getAncestorIdsin interfaceio.meeds.social.category.service.CategoryService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
getAncestorIds
- Specified by:
getAncestorIdsin interfaceio.meeds.social.category.service.CategoryService
-
getSubcategoryIds
public List<Long> getSubcategoryIds(String username, long categoryId, long offset, long limit, long depth) - Specified by:
getSubcategoryIdsin interfaceio.meeds.social.category.service.CategoryService
-
getSubcategoryIds
- Specified by:
getSubcategoryIdsin interfaceio.meeds.social.category.service.CategoryService
-
getCategory
public io.meeds.social.category.model.CategoryWithName getCategory(long categoryId, String username, Locale locale) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Specified by:
getCategoryin interfaceio.meeds.social.category.service.CategoryService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
getCategory
public io.meeds.social.category.model.Category getCategory(long categoryId) - Specified by:
getCategoryin interfaceio.meeds.social.category.service.CategoryService
-
getRootCategory
public io.meeds.social.category.model.Category getRootCategory(long ownerId) - Specified by:
getRootCategoryin interfaceio.meeds.social.category.service.CategoryService
-
createCategory
public io.meeds.social.category.model.Category createCategory(io.meeds.social.category.model.Category category, String username) throws org.exoplatform.commons.ObjectAlreadyExistsException, org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Specified by:
createCategoryin interfaceio.meeds.social.category.service.CategoryService- Throws:
org.exoplatform.commons.ObjectAlreadyExistsExceptionorg.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
updateCategory
public io.meeds.social.category.model.Category updateCategory(io.meeds.social.category.model.Category category, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Specified by:
updateCategoryin interfaceio.meeds.social.category.service.CategoryService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
deleteCategory
public io.meeds.social.category.model.Category deleteCategory(long categoryId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Specified by:
deleteCategoryin interfaceio.meeds.social.category.service.CategoryService- Throws:
org.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
canEdit
- Specified by:
canEditin interfaceio.meeds.social.category.service.CategoryService
-
canEdit
- Specified by:
canEditin interfaceio.meeds.social.category.service.CategoryService
-
canManageLink
- Specified by:
canManageLinkin interfaceio.meeds.social.category.service.CategoryService
-
canManageLink
- Specified by:
canManageLinkin interfaceio.meeds.social.category.service.CategoryService
-