Class SConnectorUserFilterAdapter

  • All Implemented Interfaces:
    SConnector

    public class SConnectorUserFilterAdapter
    extends java.lang.Object
    implements SConnector
    Author:
    Baptiste Mesta
    • Constructor Summary

      Constructors 
      Constructor Description
      SConnectorUserFilterAdapter​(org.bonitasoft.engine.filter.UserFilter filter, java.lang.String actorName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void connect()
      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
      void disconnect()
      Called by the engine after the connector and its output operations are executed This method can be implemented by connectors to close connections here.
      java.util.Map<java.lang.String,​java.lang.Object> execute()
      Execute the connector.
      java.util.List<java.lang.Long> getUserIds()  
      void setInputParameters​(java.util.Map<java.lang.String,​java.lang.Object> parameters)
      Set the input parameter for a connector.
      boolean shouldAutoAssignTaskIfSingleResult()  
      void validate()
      Validate the input parameters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SConnectorUserFilterAdapter

        public SConnectorUserFilterAdapter​(org.bonitasoft.engine.filter.UserFilter filter,
                                           java.lang.String actorName)
    • Method Detail

      • setInputParameters

        public void setInputParameters​(java.util.Map<java.lang.String,​java.lang.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.
      • execute

        public java.util.Map<java.lang.String,​java.lang.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 java.util.List<java.lang.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