Interface VitamStorageMetadata

    • 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 resource
      java.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 resource
      java.util.Map<java.lang.String,​java.lang.String> getUserMetadata()
      Any key-value pairs associated with the resource.
      • Methods inherited from interface java.lang.Comparable

        compareTo
    • Method Detail

      • 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 interface VitamResourceMetadata<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 interface VitamResourceMetadata<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.