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<?>>
-
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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>
Deprecated.Methods inherited from class com.cloudbees.hudson.plugins.folder.AbstractFolderProperty
getDescriptor, getHealthMetrics, getHealthReports, getItemContainerOverrides, getOwner, reconfigure, setOwner
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.ReconfigurableDescribable
reconfigure
-
Constructor Details
-
FolderProperty
public FolderProperty()
-
-
Method Details
-
allowsParentToCreate
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
-
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
-
TransientActionFactory
instead.