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

[Forward port]Move saveDraft and editDraft from DocumentWorkflow to EditableWorkflow

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 100.4.0
    • repository

    Description

      Move #saveDraft and #keepDraft from DocumentWorkflow interface to the EditableWorkflow interface, because:

      • it reduces the number of casts in workflow related code in the channel manager and the content editor ( The workflowManager returns a workflow of type EditableWorkflow )
      • it aligns with commitEditableInstance and obtainEditable instance.

      The methods throw an exception in the DefaultWorkflowImpl because there are no valid uses cases (yet) for saveDraft and editDraft for images, assets and doc types.

      Attachments

        Issue Links

          Activity

            People

              ntrajkovski Nikola Trajkovski
              mrop Michiel Rop
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: