Uploaded image for project: 'Creative Pro by Nuxeo'
  1. Creative Pro by Nuxeo
  2. NBM-627

Tenant Creation Should initialize some content

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.3
    • Component/s: NBM App setup

      Description

      When creating a new tenant; we need to initialize some content like the com.nuxeo.brand.management.dataset.operation.InitSampledTenantOperation operation.

      It requires some refactoring; what I suggest (which are open to discussion):

      • Move/Rename TestHelper to main scope
      • Remove test-jar generation, and dependency in assembly.xml and test-dataset; as it only requires the TestHelper
      • Extract resources/Randomizer/whatever from test-dataset to a new module, dataset for instance - to prevent us from having pictures/etc in the core module. (Just a personal preference)
      • Add this new module to the package by default
      • Extract document creation part of com.nuxeo.brand.management.dataset.DataSetInjectorImpl#initSampledTenant to a new helper in this new module; and create a listener on Domain creation to add the new content.
      • Add a test to verify that it works

      Accptance;

      • When calling Domain.CreateNew, I see some demo content.

        Attachments

        1. kittens 2.zip
          18.61 MB
        2. TBWA Case Study.pdf
          1.32 MB
        3. DAM Data Sheet.pdf
          137 kB
        4. MDBW17 Data Sheet.pdf
          908 kB
        5. Nuxeo GDPR Brochure.pdf
          363 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 1 hour
                  2d 1h