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 Detail

      • verifyHashForLocation

        @Deprecated(since="2011",
                    forRemoval=true)
        void verifyHashForLocation​(java.lang.String hash,
                                   java.lang.String folderQualifier,
                                   java.lang.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
      • createHashForLocation

        @Deprecated(since="2011",
                    forRemoval=true)
        java.lang.String createHashForLocation​(java.lang.String folderQualifier,
                                               java.lang.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

        java.lang.String createHash​(java.lang.String folderQualifier,
                                    java.lang.String location,
                                    long size,
                                    java.lang.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