Class DirectoryComponent<T extends AbstractModelObject>
java.lang.Object
com.cloudbees.jenkins.support.api.Component
com.cloudbees.jenkins.support.api.ObjectComponent<T>
com.cloudbees.jenkins.support.impl.DirectoryComponent<T>
- All Implemented Interfaces:
ExtensionPoint
,Describable<ObjectComponent<T>>
- Direct Known Subclasses:
AbstractItemDirectoryComponent
,NodeRemoteDirectoryComponent
,RunDirectoryComponent
public abstract class DirectoryComponent<T extends AbstractModelObject>
extends ObjectComponent<T>
implements ExtensionPoint
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class com.cloudbees.jenkins.support.api.Component
Component.ComponentCategory
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
ConstructorDescriptionDirectoryComponent
(String includes, String excludes, boolean defaultExcludes, int maxDepth) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle.protected final void
list
(File dir, FileVisitor visitor) void
setDefaultExcludes
(boolean defaultExcludes) void
setExcludes
(String excludes) void
setIncludes
(String includes) void
setMaxDepth
(int maxDepth) Methods inherited from class com.cloudbees.jenkins.support.api.ObjectComponent
addContents, addContents, allInstances, for_, isApplicable, isApplicable, isSelectedByDefault
Methods inherited from class com.cloudbees.jenkins.support.api.Component
getCategory, getDisplayPermissions, getId, isEnabled, isSelectedByDefault, start
-
Constructor Details
-
DirectoryComponent
public DirectoryComponent() -
DirectoryComponent
-
-
Method Details
-
list
- Throws:
IOException
-
getIncludes
-
getExcludes
-
getDefaultExcludes
public boolean getDefaultExcludes() -
getMaxDepth
public int getMaxDepth() -
setIncludes
-
setExcludes
-
setDefaultExcludes
public void setDefaultExcludes(boolean defaultExcludes) -
setMaxDepth
public void setMaxDepth(int maxDepth) -
getDescriptor
Description copied from class:ObjectComponent
- Specified by:
getDescriptor
in interfaceDescribable<T extends AbstractModelObject>
- Overrides:
getDescriptor
in classObjectComponent<T extends AbstractModelObject>
-
getRequiredPermissions
Description copied from class:Component
Returns the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle. An empty list indicates that any user can include this bundle.- Specified by:
getRequiredPermissions
in classComponent
- Returns:
- the (possibly empty, never null) list of permissions that are required for the user to include this in a bundle.
-
getDisplayName
- Specified by:
getDisplayName
in classComponent
-