Interface VitamStorageMetadata
-
- All Superinterfaces:
java.lang.Comparable<VitamResourceMetadata<StorageType>>
,VitamResourceMetadata<StorageType>
public interface VitamStorageMetadata extends VitamResourceMetadata<StorageType>
VitamStorageMetadata interface describing storage metadata
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Date
getCreationDate()
Creation date of the resource, possibly null.java.lang.String
getETag()
The eTag value stored in the Etag header returned by HTTP.java.util.Date
getLastModified()
Last modification time of the resourcejava.lang.String
getName()
Name of this resource.java.lang.String
getProviderId()
Unique identifier of this resource within its enclosing namespace.java.lang.Long
getSize()
Size of the resource, possibly null.StorageType
getType()
Whether this resource is a container, file, etc.java.net.URI
getUri()
URI used to access this resourcejava.util.Map<java.lang.String,java.lang.String>
getUserMetadata()
Any key-value pairs associated with the resource.-
Methods inherited from interface fr.gouv.vitam.common.storage.cas.container.api.VitamResourceMetadata
getLocation
-
-
-
-
Method Detail
-
getType
StorageType getType()
Whether this resource is a container, file, etc.- Specified by:
getType
in interfaceVitamResourceMetadata<StorageType>
-
getProviderId
java.lang.String getProviderId()
Unique identifier of this resource within its enclosing namespace. In some scenarios, this id is not user assignable. For files, this may be an system generated key, or the full path to the resource. ex. /path/to/file.txt- Specified by:
getProviderId
in interfaceVitamResourceMetadata<StorageType>
-
getName
java.lang.String getName()
Name of this resource. Names are dictated by the user. For files, this may be the filename, ex. file.txt- Specified by:
getName
in interfaceVitamResourceMetadata<StorageType>
-
getUri
java.net.URI getUri()
URI used to access this resource- Specified by:
getUri
in interfaceVitamResourceMetadata<StorageType>
-
getUserMetadata
java.util.Map<java.lang.String,java.lang.String> getUserMetadata()
Any key-value pairs associated with the resource.- Specified by:
getUserMetadata
in interfaceVitamResourceMetadata<StorageType>
-
getETag
java.lang.String getETag()
The eTag value stored in the Etag header returned by HTTP.
-
getCreationDate
java.util.Date getCreationDate()
Creation date of the resource, possibly null.
-
getLastModified
java.util.Date getLastModified()
Last modification time of the resource
-
getSize
java.lang.Long getSize()
Size of the resource, possibly null.
-
-