Class S3ItemStorage

All Implemented Interfaces:
ExtensionPoint, Describable<ItemStorage<S3ObjectPath>>, Serializable

public class S3ItemStorage extends ItemStorage<S3ObjectPath>
S3 implementation of the Item Storage extension point.
Author:
Peter Hayes
See Also:
  • Constructor Details

    • S3ItemStorage

      @DataBoundConstructor public S3ItemStorage(String credentialsId, String bucketName, String prefix, String region)
  • Method Details

    • getBucketName

      public String getBucketName()
    • getPrefix

      public String getPrefix()
    • getRegion

      public String getRegion()
    • getCredentialsId

      public String getCredentialsId()
    • getObjectPath

      public S3ObjectPath getObjectPath(Item item, String path)
      Description copied from class: ItemStorage
      Given an item and path, return an ObjectPath implementation for it
      Specified by:
      getObjectPath in class ItemStorage<S3ObjectPath>
      Parameters:
      item - The item to associate the path with
      path - The path scoped by the item
      Returns:
      The ObjectPath to act upon that path
    • getObjectPathForBranch

      public S3ObjectPath getObjectPathForBranch(Item item, String path, String branch)
      Description copied from class: ItemStorage
      Given an item, a path and a branch, return an ObjectPath implementation for it
      Specified by:
      getObjectPathForBranch in class ItemStorage<S3ObjectPath>
      Parameters:
      item - The item to associate the path with
      path - The path scoped by the item
      branch - The branch for which to get the object path for
      Returns:
      The ObjectPath to act upon that path