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
public abstract class ItemCategory extends Object implements ExtensionPoint
A category forItems.- Since:
- 2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classItemCategory.UncategorizedCategoryThe 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
Fields Modifier and Type Field Description static intMIN_TOSHOWThis field indicates how much non-default categories are required in order to start showing them in Jenkins.
-
Constructor Summary
Constructors Constructor Description ItemCategory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ItemCategorygetCategory(TopLevelItemDescriptor descriptor)AItemCategoryassociated to thisTopLevelItemDescriptor.abstract StringgetDescription()The description in plain textabstract StringgetDisplayName()A human readable name.abstract StringgetId()Identifier, e.g.abstract intgetMinToShow()Minimum number of items required to show the category.intgetOrder()
-
-
-
Field Detail
-
MIN_TOSHOW
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("2.14") public static final int MIN_TOSHOW
This 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:
- Constant Field Values
-
-
Method Detail
-
getId
public abstract String getId()
Identifier, e.g. "standaloneprojects", etc.- Returns:
- the identifier
-
getDescription
public abstract String getDescription()
The description in plain text- Returns:
- the description
-
getDisplayName
public abstract String 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
@NonNull public static ItemCategory getCategory(TopLevelItemDescriptor descriptor)
AItemCategoryassociated to thisTopLevelItemDescriptor.- Returns:
- A
ItemCategory, if not found,ItemCategory.UncategorizedCategoryis returned
-
-