Interface ScriptOnResourceApiOp
-
- All Superinterfaces:
APIOperation
- All Known Subinterfaces:
ConnectorFacade
- All Known Implementing Classes:
AbstractConnectorFacade
,LocalConnectorFacadeImpl
,RemoteConnectorFacadeImpl
,ScriptOnResourceImpl
public interface ScriptOnResourceApiOp extends APIOperation
Runs a script on the target resource that a connector manages. This API operation is supported only for a connector that implementsScriptOnResourceOp
.The contract here at the API level is intentionally very loose. Each connector decides what script languages it supports, what running a script on a target resource actually means, and what script options (if any) that connector supports. Refer to the javadoc of each particular connector for more information.
-
-
Field Summary
-
Fields inherited from interface org.identityconnectors.framework.api.operations.APIOperation
NO_TIMEOUT
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
runScriptOnResource(ScriptContext request, OperationOptions options)
Runs a script on a specific target resource.
-
-
-
Method Detail
-
runScriptOnResource
Object runScriptOnResource(ScriptContext request, OperationOptions options)
Runs a script on a specific target resource.- Parameters:
request
- The script and arguments to run.options
- Additional options which control how the script is run. Please refer to the connector documentation for supported options.- Returns:
- The result of the script. The return type must be a type that the
connector framework supports for serialization. See
ObjectSerializerFactory
for a list of supported return types.
-
-