Package jenkins.plugins.itemstorage
Class ItemStorage<T extends ObjectPath>
- 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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract 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 itMethods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
ItemStorage
public ItemStorage()
-
-
Method Details
-
getObjectPath
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
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
-