Class ClasspathEntry
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ClasspathEntry>
-
- org.jenkinsci.plugins.scriptsecurity.scripts.ClasspathEntry
-
- All Implemented Interfaces:
Describable<ClasspathEntry>
,Serializable
public final class ClasspathEntry extends AbstractDescribableImpl<ClasspathEntry> implements Serializable
A classpath entry used for a script.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClasspathEntry.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description ClasspathEntry(String path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
alias()
boolean
equals(Object obj)
String
getOldPath()
String
getPath()
URL
getURL()
int
hashCode()
boolean
isClassDirectory()
Checks whether the entry would be considered a class directory.boolean
isEntryApproved()
boolean
isScriptAutoApprovalEnabled()
boolean
isShouldBeApproved()
void
setOldPath(String oldPath)
void
setShouldBeApproved(boolean shouldBeApproved)
String
toString()
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
ClasspathEntry
@DataBoundConstructor public ClasspathEntry(@NonNull String path) throws MalformedURLException
- Throws:
MalformedURLException
-
-
Method Detail
-
isClassDirectory
public boolean isClassDirectory()
Checks whether the entry would be considered a class directory.- See Also:
isClassDirectoryURL(URL)
-
getPath
@NonNull public String getPath()
-
getURL
@NonNull public URL getURL()
-
getOldPath
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getOldPath()
-
setOldPath
@DataBoundSetter public void setOldPath(String oldPath)
-
isShouldBeApproved
public boolean isShouldBeApproved()
-
setShouldBeApproved
@DataBoundSetter public void setShouldBeApproved(boolean shouldBeApproved)
-
isScriptAutoApprovalEnabled
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isScriptAutoApprovalEnabled()
-
isEntryApproved
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public boolean isEntryApproved()
-
alias
@Initializer(before=EXTENSIONS_AUGMENTED) public static void alias()
-
-