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 Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String createHashForLocation​(java.lang.String folderQualifier, java.lang.String location)
      Creates new hash for location and folderQualifier.
      void verifyHashForLocation​(java.lang.String hash, java.lang.String folderQualifier, java.lang.String location)
      Verifies hash against provided folderQualifier and Media location.
    • Method Detail

      • verifyHashForLocation

        void verifyHashForLocation​(java.lang.String hash,
                                   java.lang.String folderQualifier,
                                   java.lang.String location)
        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

        java.lang.String createHashForLocation​(java.lang.String folderQualifier,
                                               java.lang.String location)
        Creates new hash for location and folderQualifier.
        Parameters:
        folderQualifier - the folder qualifier
        location - the Media location
        Returns:
        created hash string