Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: MOTION-157

...

  1. An XML file is added to the bootstrap directory. See Setting the bootstrap See Bootstrap directory.
    Example : Add website.travel.about.careers.cruise-manager.xml to /magnoliaAuthor/data.

    Code Block
    languagetext
    └─<magnoliaAuthor>
    	└─data
    		└─website.travel.about.careers.cruise-manager.xml
  2. A message is logged to the user:

    Code Block
    languagetext
    2019-03-28 14:27:06,676 INFO  gnolia.content.observer.TaskCreatorWatcherCallback: File change detected at '/magnoliaAuthor/data/website.travel.about.careers.cruise-manager.xml', pulse task has been sent.
  3. A task is sent to the Tasks app.
    Example: Import request task and Import action for cruise-manager page in the Tasks app.
     
  4. superuser assigns himself the task and clicks Import to import the content into the corresponding workspace in the repository. He can also Reject or Abort the import.
       
  5. The bootstrapped content is available in the relevant app. 
    Example: Cruise Manager page in the Pages app.

  6. The bootstrap directory is monitored and a new task sent to the Tasks app when a change in the XML is detected.    
Note
  • Observation only occurs if the bootstrap directory is set in the magnolia.properties file.
  • Deletions are not removed automatically. To remove content, delete it in the JCR and the bootstrap directory.

Bootstrapping settings

You can use the Server configuration page in the About app to check the current bootstrapping settings.

Bootstrap directory

To set the bootstrap directory, add the magnolia.content.bootstrap.dir property in the magnolia.properties file. The bootstrap directory can reside anywhere on the file system and can be named anything you like.

...

Code Block
languageyaml
# The directory to expose file system resources from
magnolia.resources.dir=${magnolia.home}/modules
......
# The directory to import file system XMLcontent files from
 magnolia.content.bootstrap.dir=${magnolia.resources.dir}/data

...

Use the magnolia.content.bootstrap.pattern property , you can to specify which filenames will be imported and observed in the content bootstrap directory.

Example: magnolia.content.bootstrap.pattern=*/bootstrapDirdata/*.xml

Bootstrapping strategy

...

This task is configured in /modules/content-importer/tasks.

...

heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse

...

Mgnl f
content-importer

...

Mgnl f
tasks

...

Mgnl n
content

...

Mgnl n
users

...

Mgnl p
superuser

...

Mgnl p
eric

...

Mgnl n
groups

...

Mgnl p
travel-demo-editors

...

Mgnl n
viewMapping

...

Mgnl p
taskView

...

Mgnl p
title

...

Image Added

Properties:

tasks

optional

Tasks folder.

content

required

Task name.

users

optional

Users who can view and assign tasks.

(info) Please note that at least one user or one group (see the next property) should be defined for bootstrap messages to be displayed. The default configuration comes with superuser.

groups

optional

User groups who can view and assign tasks.

viewMapping

optional

Message view displayed in detail view.

taskView

required

content message view definition.

title

optional

Task title.

...

The content message view is configured in /modules/content-importer/messageViews/content.

...

heading0
multiplefalse
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse

...

Mgnl f
content-importer

...

Mgnl f
messageViews

...

Mgnl n
content

...

Mgnl n
form

...

Mgnl n
actions

...

Mgnl n
approve

...

Mgnl n
availability

...

Mgnl p
class

...

Mgnl p
decision

...

Mgnl p
icon

...

Mgnl p
implementationClass

...

Mgnl n
confirmRejection

...

Mgnl n
retry

...

Mgnl n
claim

...

Mgnl n
archive

...

Mgnl n
abort

Mgnl n

...

Image Added

Properties:

messageViews

optional

Message views folder.

content

required

Message view name.

form

required

Form definition node.

Text fields (read only):

  • content.repository: Target workspace.
  • content.path: File source path.
  • content.modificationDate: Modification date.

actions

required

Actions definition node.

<action definitions>

optional

Configured actions:

  • approve:
    Properties:

    availability optional
    Availability rules node.
    class

    required
    Action definition class.

    Javadoc
    0info.magnolia.ui.admincentral.shellapp.pulse.task.action.ResolveTaskActionDefinition
    : Action for resolving a task.

    decision required
    Decision.
    icon optional
    Action icon.
    implementationClass
    optional
    Implementation class.
    Javadoc
    0info.magnolia.content.action.BootstrapAction
    : Executes bootstrap import action and resolves task by delegating to ResolveTaskAction .
  • confirmRejection: Reject action definition. Opens the reject dialog (configured in the module dialogs folder) that allows the user to leave a comment.
  • retry: Retry import task action definition.
  • claim: Assign to me action definition.
  • archive: Remove from list action definition.
  • abort: Abort action definition.

actionbar

required

Action bar definition.