Class LocalItemStorage
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ItemStorage<T>>
-
- jenkins.plugins.itemstorage.ItemStorage<LocalObjectPath>
-
- jenkins.plugins.itemstorage.local.LocalItemStorage
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ItemStorage<LocalObjectPath>>
,Serializable
public class LocalItemStorage extends ItemStorage<LocalObjectPath>
Implementation of Item Storage that stores data on the Jenkins controller within the existing job folder or in custom path.- Author:
- Peter Hayes
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LocalItemStorage.DescriptorImpl
static class
LocalItemStorage.LocalItemListener
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description LocalItemStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalObjectPath
getObjectPath(Item item, String path)
Given an item and path, return an ObjectPath implementation for itLocalObjectPath
getObjectPathForBranch(Item item, String path, String branch)
Given an item, a path and a branch, return an ObjectPath implementation for itString
getRoot()
void
setRoot(String root)
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
setRoot
@DataBoundSetter public void setRoot(String root)
-
getRoot
public String getRoot()
-
getObjectPath
public LocalObjectPath 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 classItemStorage<LocalObjectPath>
- 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 LocalObjectPath 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 classItemStorage<LocalObjectPath>
- 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
-
-