Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-13155

Create Jax-RS endpoint for handling changes in CM to Experience Pages

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 14.3.0
    • None

    Description

      ExperiencePageComponentResource

      The ExperiencePageComponentResource its methods will have something like RolesAllowed for perhaps 'editor' or 'author' or which role we come up with that an experience page CM user has to have. When the cms user is allowed to modify the experience page, the changes will be written directly to the unpublished variant! The reason for this is that if we'd first obtain editable instance, write to the draft, and then commit the editable instance, then all the Experience Page components will have different UUIDs since during copy from draft -> preview the hst:page would be replaced. Therefor, changes must be directly written to the unpublished variant. Since the CMS users cannot write to this variant, the actual writing must be delegated to a service. This service can impersonate to a workflow session and write the changes with this session to the unpublished variant. After this, we need to also change the state of the document such that it becomes publishable. Most likely this state change we want to do by invoking normal document workflow (note we most likely have to add support for this in the document workflow to explicitly mark a document modified).

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            meggermont Michiel Eggermont (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: