congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ConnectorInstance.executeScript
Code IndexAdd Tabnine to your IDE (free)

How to use
executeScript
method
in
com.evolveum.midpoint.provisioning.ucf.api.ConnectorInstance

Best Java code snippets using com.evolveum.midpoint.provisioning.ucf.api.ConnectorInstance.executeScript (Showing top 1 results out of 315)

origin: Evolveum/midpoint

public Object executeScript(String resourceOid, ProvisioningScriptType script, Task task, OperationResult result) throws ObjectNotFoundException, SchemaException, CommunicationException, ConfigurationException, SecurityViolationException, ExpressionEvaluationException {
  PrismObject<ResourceType> resource = getResource(resourceOid, null, task, result);
  ConnectorSpec connectorSpec = selectConnectorSpec(resource, ScriptCapabilityType.class);
  if (connectorSpec == null) {
    throw new UnsupportedOperationException("No connector supports script capability");
  }
  ConnectorInstance connectorInstance = connectorManager.getConfiguredConnectorInstance(connectorSpec, false, result);
  ExecuteProvisioningScriptOperation scriptOperation = ProvisioningUtil.convertToScriptOperation(script, "script on "+resource, prismContext);
  try {
    StateReporter reporter = new StateReporter(resourceOid, task);
    return connectorInstance.executeScript(scriptOperation, reporter, result);
  } catch (GenericFrameworkException e) {
    // Not expected. Transform to system exception
    result.recordFatalError("Generic provisioning framework error", e);
    throw new SystemException("Generic provisioning framework error: " + e.getMessage(), e);
  }
}
 
com.evolveum.midpoint.provisioning.ucf.apiConnectorInstanceexecuteScript

Popular methods of ConnectorInstance

  • test
  • addObject
    TODO: This should return indication how the operation went, e.g. what changes were applied, what wer
  • configure
    The connector instance will be configured to the state that it can immediately access the resource.
  • deleteObject
  • fetchCapabilities
    Retrieves native connector capabilities. The capabilities specify what the connector can do without
  • fetchChanges
    Token may be null. That means "from the beginning of history".
  • fetchCurrentToken
    Returns the latest token. In other words, returns a token that corresponds to a current state of the
  • fetchObject
    Retrieves a specific object from the resource. This method is fetching an object from the resource t
  • fetchResourceSchema
    Retrieves the schema from the resource. The schema may be considered to be an XSD schema, but it is
  • getOperationalStatus
  • initialize
    Get necessary information from the remote system. This method will initialize the configured connect
  • modifyObject
    TODO: This should return indication how the operation went, e.g. what changes were applied, what wer
  • initialize,
  • modifyObject,
  • search,
  • count,
  • dispose

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now