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()
VitamStorageMetadata
getType
in interface VitamResourceMetadata<StorageType>
getType
in interface VitamStorageMetadata
public String getProviderId()
VitamStorageMetadata
getProviderId
in interface VitamResourceMetadata<StorageType>
getProviderId
in interface VitamStorageMetadata
public String getName()
VitamStorageMetadata
getName
in interface VitamResourceMetadata<StorageType>
getName
in interface VitamStorageMetadata
public Location getLocation()
VitamResourceMetadata
ex. us-west-1
getLocation
in interface VitamResourceMetadata<StorageType>
public URI getUri()
VitamStorageMetadata
getUri
in interface VitamResourceMetadata<StorageType>
getUri
in interface VitamStorageMetadata
public Map<String,String> getUserMetadata()
VitamStorageMetadata
getUserMetadata
in interface VitamResourceMetadata<StorageType>
getUserMetadata
in interface VitamStorageMetadata
public String getETag()
VitamStorageMetadata
getETag
in interface VitamStorageMetadata
public Date getCreationDate()
VitamStorageMetadata
getCreationDate
in interface VitamStorageMetadata
public Date getLastModified()
VitamStorageMetadata
getLastModified
in interface VitamStorageMetadata
public Long getSize()
VitamStorageMetadata
getSize
in interface VitamStorageMetadata
public int compareTo(VitamResourceMetadata<StorageType> o)
compareTo
in interface Comparable<VitamResourceMetadata<StorageType>>
Copyright © 2018 Vitam. All rights reserved.