Class SpaceCategoryServiceImpl

java.lang.Object
io.meeds.social.space.category.service.SpaceCategoryServiceImpl
All Implemented Interfaces:
SpaceCategoryService

@Service public class SpaceCategoryServiceImpl extends Object implements SpaceCategoryService
  • Constructor Details

    • SpaceCategoryServiceImpl

      public SpaceCategoryServiceImpl()
  • Method Details

    • getSpaceCategoryIds

      public List<Long> getSpaceCategoryIds(long spaceId)
      Specified by:
      getSpaceCategoryIds in interface SpaceCategoryService
      Parameters:
      spaceId - Space identifier
      Returns:
      List of linked category identifiers
    • updateSpaceCategories

      public void updateSpaceCategories(long spaceId, List<Long> categoryIds, boolean removeExisting)
      Description copied from interface: SpaceCategoryService
      Updates the list of Space Categories with the possibility to add new ones only without dropping existing linked categories
      Specified by:
      updateSpaceCategories in interface SpaceCategoryService
      Parameters:
      spaceId - Space identifier
      categoryIds - List of category identifiers to link
      removeExisting - whether to remove existing or just add new ones