Details
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
- is a result of
-
REPO-1812 New gallery imageset filename is incorrectly auto-exported
- Closed