Class PersistenceRootIdStore
- java.lang.Object
-
- org.jenkinsci.plugins.uniqueid.IdStore<PersistenceRoot>
-
- org.jenkinsci.plugins.uniqueid.implv2.PersistenceRootIdStore
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class PersistenceRootIdStore extends IdStore<PersistenceRoot>
ThePersistenceRootIdStore
allows the storing of a Unique ID for any PersistenceRoot item. This replaces the need forFolderIdStore
,JobIdStore
andRunIdStore
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description PersistenceRootIdStore()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
create(PersistenceRoot object, String uniqueId)
String
get(PersistenceRoot object)
Get the id for this given object.void
make(PersistenceRoot object)
Creates an unique id for the given object.
-
-
-
Method Detail
-
make
public void make(PersistenceRoot object)
Description copied from class:IdStore
Creates an unique id for the given object. Subsequent calls are idempotent.- Specified by:
make
in classIdStore<PersistenceRoot>
- Parameters:
object
- the object to make the id for.
-
get
public String get(PersistenceRoot object)
Description copied from class:IdStore
Get the id for this given object.- Specified by:
get
in classIdStore<PersistenceRoot>
- Parameters:
object
- the object.- Returns:
- the id or
null
if none assigned.
-
create
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static void create(PersistenceRoot object, String uniqueId) throws IOException
- Throws:
IOException
-
-