Interface IScriptManager
public interface IScriptManager
- Since:
- 3.24.10
-
Method Summary
Modifier and TypeMethodDescriptioncreateScript
(String projectId) Creates a Script in the given project or at repository root ifnull
.createScript
(String projectId, String type) Creates a Script with a selected type.Returns a Script.Returns a Script at the given revision.getScriptByReference
(String projectId, String referenceName) Returns the Script with the specified reference name.
-
Method Details
-
createScript
Creates a Script in the given project or at repository root ifnull
.The Script is not saved. Users must call
IPObject.save()
manually. -
createScript
Creates a Script with a selected type. Type must be supported orIllegalArgumentException
will be thrown.The Script is not saved. Users must call
IPObject.save()
manually. -
getScript
Returns a Script. The object may be unresolvable. -
getScript
@NotNull IScript getScript(@Nullable String projectId, @NotNull String id, @Nullable String revision) Returns a Script at the given revision. The object may be unresolvable. -
getScriptByReference
Returns the Script with the specified reference name. If there is no script with the specified reference name within the scope, it returns null.- Throws:
UserFriendlyRuntimeException
- when multiple scripts share the same reference name within the scope
-