Class ItemKind
java.lang.Object
io.jenkins.plugins.batchcontrol.model.ItemKind
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public final class ItemKind
extends Object
The kind of the item a permission window names (D-71): the item's
TopLevelItemDescriptor
id, display name and icon, recorded when the request is created and copied to the grant at
approval. Approval compares the recorded descriptor id with the item's current one, so a window
is never approved on an item that was replaced by one of another kind under the same name.
Immutable; persisted by XStream as three strings inside the grant request and grant files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe descriptor id, for exampleorg.jenkinsci.plugins.workflow.job.WorkflowJob,hudson.model.FreeStyleProjectorcom.cloudbees.hudson.plugins.folder.Folder.The descriptor display name when recorded, for example "Pipeline", "Freestyle project" or "Folder".The descriptor's icon class name, ornullwhen it has none.inthashCode()static ItemKindThe kind ofitem, read from its descriptor, ornullwhen the item is not a top-level item (a sub-item of a job, such as a matrix configuration or a Maven module, which is part of that job and cannot be named by a window).toString()
-
Constructor Details
-
ItemKind
-
-
Method Details
-
of
The kind ofitem, read from its descriptor, ornullwhen the item is not a top-level item (a sub-item of a job, such as a matrix configuration or a Maven module, which is part of that job and cannot be named by a window). -
getDescriptorId
The descriptor id, for exampleorg.jenkinsci.plugins.workflow.job.WorkflowJob,hudson.model.FreeStyleProjectorcom.cloudbees.hudson.plugins.folder.Folder. -
getDisplayName
The descriptor display name when recorded, for example "Pipeline", "Freestyle project" or "Folder". -
getIconClassName
The descriptor's icon class name, ornullwhen it has none. -
equals
-
hashCode
public int hashCode() -
toString
-