Uploaded image for project: 'Content Types'
  1. Content Types
  2. MGNLCT-47

Make JackrabbitInitializer aware of node-types from the model, for registration

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Neutral
    • 1.0
    • 1.0
    • None
    • Saigon 149
    • 3

    Description

      (Sorry, I can't find any ticket to put this subtask into.)

       

      Acceptance criteria

      Given a content type like this:

      modules/content-types/contentTypes/pizza.yaml

      datasource:
        class: info.magnolia.types.datasource.jcr.JcrDataSourceDefinition
        workspace: cuisine
        namespaces:
          pizza: https://www.magnolia-cms.com/jcr/namespace/pizza
        autoCreate: true
      model:
        nodeType: pizza:pepperoni
        subModels:
          - name: test1
            nodeType: pizza:newyork
          - name: test2
            nodeType: pizza:california
            subModels:
              - name: test3
                nodeType: pizza:meat
                subModels:
                  - name: test4
                    nodeType: pizza:onion
                  - name: test5
                    nodeType: pizza:green
      

      Then

      • All those node types will be registered
      • All operations on those nodeType(s) are similar to former datasource.nodeTypes

      Mind that datasource.nodeTypes no longer exists

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              hieu.nguyen Hieu Nguyen Duc
              hieu.nguyen Hieu Nguyen Duc
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoR

                  Time Tracking

                    Estimated:
                    Original Estimate - 2d Original Estimate - 2d
                    2d
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 2d 4.5h
                    2d 4.5h