Class PersistenceRootIdStore
java.lang.Object
org.jenkinsci.plugins.uniqueid.IdStore<PersistenceRoot>
org.jenkinsci.plugins.uniqueid.implv2.PersistenceRootIdStore
- All Implemented Interfaces:
ExtensionPoint
The
PersistenceRootIdStore
allows the storing of a Unique ID for any PersistenceRoot item. This replaces the
need for FolderIdStore
, JobIdStore
and RunIdStore
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
create
(PersistenceRoot object, String uniqueId) get
(PersistenceRoot object) Get the id for this given object.void
make
(PersistenceRoot object) Creates an unique id for the given object.
-
Constructor Details
-
PersistenceRootIdStore
public PersistenceRootIdStore()
-
-
Method Details
-
make
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
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
-