Class SConnectorUserFilterAdapter
java.lang.Object
org.bonitasoft.engine.core.filter.impl.SConnectorUserFilterAdapter
- All Implemented Interfaces:
SConnector
- Author:
- Baptiste Mesta
-
Constructor Summary
ConstructorsConstructorDescriptionSConnectorUserFilterAdapter(org.bonitasoft.engine.filter.UserFilter filter, String actorName) -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()Called by the engine before the connector is executed This method can be implemented by connectors to handle here opening of connections like database connectionvoidCalled by the engine after the connector and its output operations are executed This method can be implemented by connectors to close connections here.execute()Execute the connector.voidsetInputParameters(Map<String, Object> parameters) Set the input parameter for a connector.booleanvoidvalidate()Validate the input parameters.
-
Constructor Details
-
SConnectorUserFilterAdapter
public SConnectorUserFilterAdapter(org.bonitasoft.engine.filter.UserFilter filter, String actorName)
-
-
Method Details
-
setInputParameters
Description copied from interface:SConnectorSet the input parameter for a connector.- Specified by:
setInputParametersin interfaceSConnector- Parameters:
parameters- parameters is a map with parameter names and their value.
-
validate
Description copied from interface:SConnectorValidate the input parameters. Check the parameters types and boundaries.- Specified by:
validatein interfaceSConnector- Throws:
SConnectorValidationException
-
execute
Description copied from interface:SConnectorExecute the connector.- Specified by:
executein interfaceSConnector- Returns:
- the connector outputs map corresponding to the output definition.
- Throws:
SConnectorException
-
getUserIds
-
shouldAutoAssignTaskIfSingleResult
public boolean shouldAutoAssignTaskIfSingleResult() -
connect
public void connect()Description copied from interface:SConnectorCalled 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:
connectin interfaceSConnector
-
disconnect
public void disconnect()Description copied from interface:SConnectorCalled 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:
disconnectin interfaceSConnector
-