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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreate(PersistenceRoot object, String uniqueId) get(PersistenceRoot object) Get the id for this given object.voidmake(PersistenceRoot object) Creates an unique id for the given object.
-
Constructor Details
-
PersistenceRootIdStore
public PersistenceRootIdStore()
-
-
Method Details
-
make
Description copied from class:IdStoreCreates an unique id for the given object. Subsequent calls are idempotent.- Specified by:
makein classIdStore<PersistenceRoot>- Parameters:
object- the object to make the id for.
-
get
Description copied from class:IdStoreGet the id for this given object.- Specified by:
getin classIdStore<PersistenceRoot>- Parameters:
object- the object.- Returns:
- the id or
nullif none assigned.
-
create
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static void create(PersistenceRoot object, String uniqueId) throws IOException - Throws:
IOException
-