Interface MediaLocationHashService
-
- All Known Implementing Classes:
DefaultMediaLocationHashService
public interface MediaLocationHashServiceThis interface allows to generate hashes for folders and locations of media as well to verify them.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMediaLocationHashService.HashType
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.StringcreateHash(java.lang.String folderQualifier, java.lang.String location, long size, java.lang.String mime)Creates new hash for location, folderQualifier, size and mime.java.lang.StringcreateHashForLocation(java.lang.String folderQualifier, java.lang.String location)Deprecated, for removal: This API element is subject to removal in a future version.since 2011, usecreateHash(String, String, long, String)insteadMediaLocationHashService.HashTypeverifyHash(java.lang.String hash, java.lang.String folderQualifier, java.lang.String location, long size, java.lang.String mime)Verifies hash against provided parameters (folderQualifier,location,size,mime).voidverifyHashForLocation(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.since 2011, useverifyHash(String, String, String, long, String)
-
-
-
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.since 2011, useverifyHash(String, String, String, long, String)Verifies hash against providedfolderQualifierand Medialocation.- Parameters:
hash- hash to verify (possibly used in request)folderQualifier- the folder qualifierlocation- the location
-
verifyHash
MediaLocationHashService.HashType verifyHash(java.lang.String hash, java.lang.String folderQualifier, java.lang.String location, long size, java.lang.String mime)
Verifies hash against provided parameters (folderQualifier,location,size,mime).- Parameters:
hash- hash to verify (possibly used in request)folderQualifier- the folder qualifierlocation- the locationsize- the size of mediamime- the mime type of media- Returns:
- the enum value indicating the type of hash that has been provided:
MediaLocationHashService.HashType.LOCATION_MIME_SIZE- the hash based on all passed parametersMediaLocationHashService.HashType.LOCATION- the hash based on onlylocationandfolderQualifier
- Throws:
MediaInvalidLocationException- on invalid hash
-
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.since 2011, usecreateHash(String, String, long, String)insteadCreates new hash for location and folderQualifier.- Parameters:
folderQualifier- the folder qualifierlocation- 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 qualifierlocation- the Media locationsize- the size of mediamime- the mime type of media- Returns:
- created hash string
-
-