Class LegacyIdStore<T>
java.lang.Object
org.jenkinsci.plugins.uniqueid.impl.LegacyIdStore<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
FolderIdStore
,JobIdStore
,RunIdStore
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@Deprecated
public abstract class LegacyIdStore<T>
extends Object
implements ExtensionPoint
Deprecated.
An abstraction to persistently store and retrieve unique id's
for various Jenkins model objects.
These keys are guaranteed to be unique with a Jenkins
and immutable across the lifetime of the given object.
Implementations should not store the ID inside any specific item configuration as it is
common for users top copy items either through the UI or manually and this will cause the
IDs to become non-unique.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C> LegacyIdStore<C>
Deprecated.Retrieve anLegacyIdStore
for the given typeabstract String
Deprecated.Get the id for this given object.static String
Deprecated.Convenience method which retrieves the id for the given object.abstract void
Deprecated.Remove the unique id associated with the given object.static void
Deprecated.Convenience method which makes the id for the given object.boolean
Deprecated.
-
Constructor Details
-
LegacyIdStore
Deprecated.
-
-
Method Details
-
remove
Deprecated.Remove the unique id associated with the given object.- Parameters:
object
-- Throws:
IOException
-
get
Deprecated.Get the id for this given object.- Parameters:
object
-- Returns:
- the id or null if none assigned.
-
supports
Deprecated. -
forClass
Deprecated.Retrieve anLegacyIdStore
for the given type- Type Parameters:
C
-- Parameters:
clazz
-- Returns:
- the store which supports the type, or null if none
-
removeId
Deprecated.Convenience method which makes the id for the given object.- Throws:
IllegalArgumentException
- if the type is not supported.IOException
- if we could not remove the ID from the Object.
-
getId
Deprecated.Convenience method which retrieves the id for the given object.- Throws:
IllegalArgumentException
- if the type is not supported.
-