Class FolderProperty<C extends Folder>
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<AbstractFolderProperty<?>>
-
- com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<C>
-
- com.cloudbees.hudson.plugins.folder.FolderProperty<C>
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<AbstractFolderProperty<?>>
,ReconfigurableDescribable<AbstractFolderProperty<?>>
public abstract class FolderProperty<C extends Folder> extends AbstractFolderProperty<C>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
owner
-
-
Constructor Summary
Constructors Constructor Description FolderProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
allowsParentToCreate(TopLevelItemDescriptor candidate)
Determines if the parent container is allowed to create a new item of the given type, or copy from an existing item of the given type.boolean
allowsParentToHave(TopLevelItem candidate)
Collection<? extends Action>
getFolderActions()
Deprecated.UseTransientActionFactory
instead.-
Methods inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
getDescriptor, getHealthMetrics, getHealthReports, getItemContainerOverrides, getOwner, reconfigure, setOwner
-
-
-
-
Method Detail
-
allowsParentToCreate
public boolean allowsParentToCreate(TopLevelItemDescriptor candidate)
Determines if the parent container is allowed to create a new item of the given type, or copy from an existing item of the given type.- Parameters:
candidate
- The type of the item being considered.- Returns:
- false to prevent the container to create the children of the said type.
-
allowsParentToHave
public boolean allowsParentToHave(TopLevelItem candidate)
-
getFolderActions
@NonNull @Deprecated public Collection<? extends Action> getFolderActions()
Deprecated.UseTransientActionFactory
instead.Action
s to be displayed in the folder page.Returning actions from this method allows a folder property to add them to the left navigation bar in the folder page.
- Returns:
- can be empty but never null.
- Since:
- 3.14
-
-