Interface MediaLocationHashService

All Known Implementing Classes:
DefaultMediaLocationHashService

public interface MediaLocationHashService
This interface allows to generate hashes for folders and locations of media as well to verify them.
  • Method Details

    • verifyHashForLocation

      @Deprecated(since="2011", forRemoval=true) void verifyHashForLocation(String hash, String folderQualifier, String location)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Verifies hash against provided folderQualifier and Media location.
      Parameters:
      hash - hash to verify (possibly used in request)
      folderQualifier - the folder qualifier
      location - the location
    • verifyHash

      default MediaLocationHashService.HashType verifyHash(String hash, String folderQualifier, String location, long size, String mime)
      Verifies hash against provided parameters (folderQualifier, location, size, mime).
      Parameters:
      hash - hash to verify (possibly used in request)
      folderQualifier - the folder qualifier
      location - the location
      size - the size of media
      mime - the mime type of media
      Returns:
      the enum value indicating the type of hash that has been provided:
      Throws:
      MediaInvalidLocationException - on invalid hash
    • createHashForLocation

      @Deprecated(since="2011", forRemoval=true) String createHashForLocation(String folderQualifier, String location)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates new hash for location and folderQualifier.
      Parameters:
      folderQualifier - the folder qualifier
      location - the Media location
      Returns:
      created hash string
    • createHash

      default String createHash(String folderQualifier, String location, long size, String mime)
      Creates new hash for location, folderQualifier, size and mime.
      Parameters:
      folderQualifier - the folder qualifier
      location - the Media location
      size - the size of media
      mime - the mime type of media
      Returns:
      created hash string