public final class VitamStorageMetadataImpl extends Object implements VitamStorageMetadata
| Constructor and Description |
|---|
VitamStorageMetadataImpl(StorageType storageType,
String providerId,
String name,
Location location,
URI uri,
Map<String,String> userMetadata,
String eTag,
Date creationDate,
Date lastModified,
Long size) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(VitamResourceMetadata<StorageType> o) |
Date |
getCreationDate()
Creation date of the resource, possibly null.
|
String |
getETag()
The eTag value stored in the Etag header returned by HTTP.
|
Date |
getLastModified()
Last modification time of the resource
|
Location |
getLocation()
Physical location of the resource, or null if n/a
|
String |
getName()
Name of this resource.
|
String |
getProviderId()
Unique identifier of this resource within its enclosing namespace.
|
Long |
getSize()
Size of the resource, possibly null.
|
StorageType |
getType()
Whether this resource is a container, file, etc.
|
URI |
getUri()
URI used to access this resource
|
Map<String,String> |
getUserMetadata()
Any key-value pairs associated with the resource.
|
public VitamStorageMetadataImpl(StorageType storageType, String providerId, String name, Location location, URI uri, Map<String,String> userMetadata, String eTag, Date creationDate, Date lastModified, Long size)
storageType - providerId - name - location - uri - userMetadata - eTag - creationDate - lastModified - size - public StorageType getType()
VitamStorageMetadatagetType in interface VitamResourceMetadata<StorageType>getType in interface VitamStorageMetadatapublic String getProviderId()
VitamStorageMetadatagetProviderId in interface VitamResourceMetadata<StorageType>getProviderId in interface VitamStorageMetadatapublic String getName()
VitamStorageMetadatagetName in interface VitamResourceMetadata<StorageType>getName in interface VitamStorageMetadatapublic Location getLocation()
VitamResourceMetadataex. us-west-1
getLocation in interface VitamResourceMetadata<StorageType>public URI getUri()
VitamStorageMetadatagetUri in interface VitamResourceMetadata<StorageType>getUri in interface VitamStorageMetadatapublic Map<String,String> getUserMetadata()
VitamStorageMetadatagetUserMetadata in interface VitamResourceMetadata<StorageType>getUserMetadata in interface VitamStorageMetadatapublic String getETag()
VitamStorageMetadatagetETag in interface VitamStorageMetadatapublic Date getCreationDate()
VitamStorageMetadatagetCreationDate in interface VitamStorageMetadatapublic Date getLastModified()
VitamStorageMetadatagetLastModified in interface VitamStorageMetadatapublic Long getSize()
VitamStorageMetadatagetSize in interface VitamStorageMetadatapublic int compareTo(VitamResourceMetadata<StorageType> o)
compareTo in interface Comparable<VitamResourceMetadata<StorageType>>Copyright © 2018 Vitam. All rights reserved.