Class UploadHelper

java.lang.Object
org.tailormap.api.persistence.helper.UploadHelper

@Service public class UploadHelper extends Object
  • Constructor Details

  • Method Details

    • getUrlForImage

      public String getUrlForImage(String imageId, UploadCategory category)
    • getUrlForImage

      public String getUrlForImage(UUID imageId, UploadCategory category)
    • getUrlForLayerAttachedImage

      public String getUrlForLayerAttachedImage(UUID imageId, UploadCategory category, Application application, String layerId)
      Returns the URL for a layer-attached image e.g. a legend image, or null if the imageId is null or not found.
      Parameters:
      imageId - the id of the image
      category - the category of the image, e.g. LEGEND
      application - the application the image is attached to
      layerId - the id of the layer the image is attached to
      Returns:
      the URL for the layer-attached image or null