Class CategoryImportService

java.lang.Object
io.meeds.social.category.injection.CategoryImportService

@Component @Order public class CategoryImportService extends Object
  • Field Details

    • ADMINISTRATORS_GROUP

      public static final String ADMINISTRATORS_GROUP
      See Also:
    • CATEGORY_IMPORT_SCOPE

      public static final org.exoplatform.commons.api.settings.data.Scope CATEGORY_IMPORT_SCOPE
      The settings scope under which the id of each imported category is stored, keyed by its descriptor's nameId: read by CategoryService.getDefaultCategoryId(String).
    • CATEGORY_CONTEXT

      public static final org.exoplatform.commons.api.settings.data.Context CATEGORY_CONTEXT
      The settings context of CATEGORY_IMPORT_SCOPE.
    • CATEGORY_VERSION

      public static final String CATEGORY_VERSION
      The key, under CATEGORY_IMPORT_SCOPE, of the import's version: the one key of that scope that holds no category id.
      See Also:
  • Constructor Details

    • CategoryImportService

      public CategoryImportService()
  • Method Details

    • init

      @PostConstruct public void init()
    • importDefaultCategories

      public void importDefaultCategories()
    • parseDescriptors

      protected List<io.meeds.social.category.model.CategoryDescriptor> parseDescriptors(URL url)
    • importDescriptor

      protected void importDescriptor(io.meeds.social.category.model.CategoryDescriptor descriptor)
    • importCategory

      protected void importCategory(io.meeds.social.category.model.CategoryDescriptor d, long oldId, long parentId)
    • saveNames

      protected void saveNames(io.meeds.social.category.model.CategoryDescriptor d, io.meeds.social.category.model.Category category)
    • createCategory

      protected io.meeds.social.category.model.Category createCategory(io.meeds.social.category.model.CategoryDescriptor d, long oldId, long parentId)
    • setSettingValue

      protected void setSettingValue(String name, long value)
    • getSettingValue

      protected long getSettingValue(String name)