Uploaded image for project: 'Content Importer'
  1. Content Importer
  2. MGNLCI-18

Allow to configure User groups who can view and assign the import tasks, not only superuser

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0.2
    • 1.0.1
    • None
    • Yes
    • Yes
    • Kromeriz 143, Kromeriz 144
    • 5

      Currently, when having a new/changed file in the content importer folder, the info.magnolia.content.observer.TaskCreatorWatcherCallback#addTask will create and send a task to users to review and import content. But only superuser is received the task:

      Task task = new Task(); task.setName("content"); task.setRequestor("superuser"); task.setStatus(Task.Status.Created); task.setActorIds(Lists.newArrayList("superuser")); task.setComment(changedFile.getName()); String repository = StringUtils.substringBefore(changedFile.getName(), "."); Map<String, Object> content = ImmutableMap.of( "repository", repository, "path", changedFile.getAbsolutePath(), "modificationDate", new Date()); task.setContent(content); tasksManager.addTask(task);
      

      We should get user groups in the configuration and set them to actorIds of the Task.


      Without this change the Content Importer cannot be used on Cloud and so there is no way to automate bootstrapping content on Cloud. 

        Acceptance criteria

              ajuran Antonín Juran
              thanh.pham Thanh Pham
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: