Class UploadsService

java.lang.Object
org.tailormap.api.service.UploadsService

@Service public class UploadsService extends Object
  • Field Details

    • DESCRIPTION_HEADER_NAME

      public static final String DESCRIPTION_HEADER_NAME
      See Also:
    • UPLOAD_MARKDOWN_SCHEME

      public static final String UPLOAD_MARKDOWN_SCHEME
      The scheme used in Markdown files to reference an upload. For example, upload://<upload-id>.
      See Also:
  • Constructor Details

  • Method Details

    • checkIfModifiedSince

      public boolean checkIfModifiedSince(UUID id, long ifModifiedSince)
      Checks if the upload with the given ID has been modified since the provided timestamp.
      Parameters:
      id - the UUID of the upload
      ifModifiedSince - the timestamp to compare against (in milliseconds)
      Returns:
      true if the upload has been modified since the provided timestamp or when the upload does not exist, false otherwise