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

Update from deprecated to extended GalleryWorkflow.createGalleryItem API to set the gallery:imageset filename property on create

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.1
    • Component/s: None
    • Labels:
      None
    • Similar issues:
    • Epic Link:
    • Processed by team:
      Platform
    • Sprint:
      Platform164, Platform165: pre-GA

      Description

      As described in REPO-1812:

      The GalleryWorkflow API (interface) didn't allow specifying a (optional) filename to be stored as property when creating a new gallery item, hence the need for the image-upload process to do so separately in a second step. 
      To solve this limitation and (now) causing an autoexport processing problem, the GalleryWorkflow API for creating a new gallery item has been extended to allow (optionally) providing the hippogallery:filename property value:

          /**
           * @deprecated Replaced by {@link #createGalleryItem(String, String, String)}
           */
          @Deprecated
          Document createGalleryItem(String name, String type) throws RemoteException, RepositoryException, WorkflowException;
      
          /**
           * Create gallery item
           * @param nodeName Name of the node to create
           * @param type Type of the node to create
           * @param hippoGalleryImageSetFileName Optional filename of the original file for hippogallery:imageset type,
           *                                     will be written to hippogallery:filename property
           */
          Document createGalleryItem(String nodeName, String type, String hippoGalleryImageSetFileName)
                  throws RemoteException, RepositoryException, WorkflowException;
      

       Note: the hippogallery:filename property will only be set when the provided node type is hippogallery:imageset, or a subtype thereof.

       

      This issue covers updating the existing usages of the old, now deprecated API to the extended API providing the uploaded filename directly.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sshepelevich Sergey Shepelevich
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: