Package jenkins.plugins.itemstorage
Class ItemStorage<T extends ObjectPath>
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ItemStorage<T>>
-
- jenkins.plugins.itemstorage.ItemStorage<T>
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ItemStorage<T>>
,Serializable
- Direct Known Subclasses:
LocalItemStorage
,NonAWSS3ItemStorage
,S3ItemStorage
public abstract class ItemStorage<T extends ObjectPath> extends AbstractDescribableImpl<ItemStorage<T>> implements ExtensionPoint, Serializable
Extension point for providing a new implementation of item storage that plugins can use to store data associated with an item in whatever storage mechanism the storage implementation provides.- Author:
- Peter Hayes
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ItemStorage()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract T
getObjectPath(Item item, String path)
Given an item and path, return an ObjectPath implementation for itabstract T
getObjectPathForBranch(Item item, String path, String branch)
Given an item, a path and a branch, return an ObjectPath implementation for it-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
getObjectPath
public abstract T getObjectPath(Item item, String path)
Given an item and path, return an ObjectPath implementation for it- Parameters:
item
- The item to associate the path withpath
- The path scoped by the item- Returns:
- The ObjectPath to act upon that path
-
getObjectPathForBranch
public abstract T getObjectPathForBranch(Item item, String path, String branch)
Given an item, a path and a branch, return an ObjectPath implementation for it- Parameters:
item
- The item to associate the path withpath
- The path scoped by the itembranch
- The branch for which to get the object path for- Returns:
- The ObjectPath to act upon that path
-
-