Class SConnectorUserFilterAdapter

java.lang.Object
org.bonitasoft.engine.core.filter.impl.SConnectorUserFilterAdapter
All Implemented Interfaces:
SConnector

public class SConnectorUserFilterAdapter extends Object implements SConnector
Author:
Baptiste Mesta
  • Constructor Details

    • SConnectorUserFilterAdapter

      public SConnectorUserFilterAdapter(org.bonitasoft.engine.filter.UserFilter filter, String actorName)
  • Method Details

    • setInputParameters

      public void setInputParameters(Map<String,Object> parameters)
      Description copied from interface: SConnector
      Set the input parameter for a connector.
      Specified by:
      setInputParameters in interface SConnector
      Parameters:
      parameters - parameters is a map with parameter names and their value.
    • validate

      public void validate() throws SConnectorValidationException
      Description copied from interface: SConnector
      Validate the input parameters. Check the parameters types and boundaries.
      Specified by:
      validate in interface SConnector
      Throws:
      SConnectorValidationException
    • execute

      public Map<String,Object> execute() throws SConnectorException
      Description copied from interface: SConnector
      Execute the connector.
      Specified by:
      execute in interface SConnector
      Returns:
      the connector outputs map corresponding to the output definition.
      Throws:
      SConnectorException
    • getUserIds

      public List<Long> getUserIds()
    • shouldAutoAssignTaskIfSingleResult

      public boolean shouldAutoAssignTaskIfSingleResult()
    • connect

      public void connect()
      Description copied from interface: SConnector
      Called by the engine before the connector is executed This method can be implemented by connectors to handle here opening of connections like database connection
      Specified by:
      connect in interface SConnector
    • disconnect

      public void disconnect()
      Description copied from interface: SConnector
      Called by the engine after the connector and its output operations are executed This method can be implemented by connectors to close connections here. The typical use of this is to be able to return connected objects that will be used in output operation and then disconnect them.
      Specified by:
      disconnect in interface SConnector