Class Script
java.lang.Object
org.jenkinsci.plugins.scriptler.config.Script
- All Implemented Interfaces:
Serializable
,Comparable<Script>
,NamedResource
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionScript
(String id, String comment, boolean available, boolean nonAdministerUsing, boolean onlyController) used during plugin start to synchronize available scriptsScript
(String id, String name, String comment, boolean available, String originCatalog, String originScript, String originDate, boolean nonAdministerUsing, List<Parameter> parameters, boolean onlyController) used to merge scriptsScript
(String id, String name, String comment, boolean available, String originCatalog, String originScript, String originDate, List<Parameter> parameters) Constructor to create a script imported from a foreign catalog.Script
(String id, String name, String comment, boolean nonAdministerUsing, List<Parameter> parameters, boolean onlyController) used to create/update a new script in the UIScript
(String id, String name, String comment, String originCatalog, String originScript, String originDate, boolean nonAdministerUsing, List<Parameter> parameters, boolean onlyController) used to merge scripts -
Method Summary
Modifier and TypeMethodDescriptionint
copy()
boolean
getId()
getName()
Deprecated.UsegetScriptText()
instead.int
hashCode()
boolean
void
setAvailable
(boolean available) void
setParameters
(List<Parameter> parameters) void
Deprecated.UsesetScriptText(String)
instead.void
setScriptText
(String scriptText) toString()
-
Field Details
-
name
-
comment
-
originCatalog
-
originScript
-
originDate
-
nonAdministerUsing
public final boolean nonAdministerUsing -
onlyController
public final boolean onlyController -
onlyMaster
Deprecated.UseonlyController
instead. -
COMPARATOR_BY_NAME
-
-
Constructor Details
-
Script
public Script(String id, String name, String comment, boolean nonAdministerUsing, @NonNull List<Parameter> parameters, boolean onlyController) used to create/update a new script in the UI -
Script
public Script(String id, String comment, boolean available, boolean nonAdministerUsing, boolean onlyController) used during plugin start to synchronize available scripts -
Script
public Script(String id, String name, String comment, boolean available, String originCatalog, String originScript, String originDate, @NonNull List<Parameter> parameters) Constructor to create a script imported from a foreign catalog. -
Script
public Script(String id, String name, String comment, String originCatalog, String originScript, String originDate, boolean nonAdministerUsing, @NonNull List<Parameter> parameters, boolean onlyController) used to merge scripts -
Script
public Script(String id, String name, String comment, boolean available, String originCatalog, String originScript, String originDate, boolean nonAdministerUsing, @NonNull List<Parameter> parameters, boolean onlyController) used to merge scripts
-
-
Method Details
-
copy
-
getName
- Specified by:
getName
in interfaceNamedResource
-
getNonNullName
-
getScriptPath
-
isAvailable
public boolean isAvailable() -
setAvailable
public void setAvailable(boolean available) -
getScriptText
-
getScript
Deprecated.UsegetScriptText()
instead. -
setScriptText
-
setScript
Deprecated.UsesetScriptText(String)
instead. -
setParameters
-
getParameters
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Script>
-
readResolve
-
getId
- Specified by:
getId
in interfaceNamedResource
- Returns:
- the id
-
toString
-
hashCode
public int hashCode() -
equals
-
onlyController
instead.