Package jenkins.model.item_category
Class ItemCategory
java.lang.Object
jenkins.model.item_category.ItemCategory
- All Implemented Interfaces:
ExtensionPoint
- Direct Known Subclasses:
ItemCategory.UncategorizedCategory
,NestedProjectsCategory
,StandaloneProjectsCategory
A category for
Item
s.- Since:
- 2.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
The defaultItemCategory
, if an item doesn't belong anywhere else, this is where it goes by default.Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
This field indicates how much non-default categories are required in order to start showing them in Jenkins. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ItemCategory
getCategory
(TopLevelItemDescriptor descriptor) AItemCategory
associated to thisTopLevelItemDescriptor
.abstract String
The description in plain textabstract String
A human readable name.abstract String
getId()
Identifier, e.g.abstract int
Minimum number of items required to show the category.int
getOrder()
-
Field Details
-
MIN_TOSHOW
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("2.14") public static final int MIN_TOSHOWThis field indicates how much non-default categories are required in order to start showing them in Jenkins. This field is restricted for the internal use only, because all other changes would cause binary compatibility issues. See JENKINS-36593 for more info.- See Also:
-
-
Constructor Details
-
ItemCategory
public ItemCategory()
-
-
Method Details
-
getId
Identifier, e.g. "standaloneprojects", etc.- Returns:
- the identifier
-
getDescription
The description in plain text- Returns:
- the description
-
getDisplayName
A human readable name.- Returns:
- the display name
-
getMinToShow
public abstract int getMinToShow()Minimum number of items required to show the category.- Returns:
- the minimum items required
-
getOrder
public int getOrder() -
getCategory
AItemCategory
associated to thisTopLevelItemDescriptor
.- Returns:
- A
ItemCategory
, if not found,ItemCategory.UncategorizedCategory
is returned
-