public abstract class AbstractUserFilter extends Object implements UserFilter
| Constructor and Description |
|---|
AbstractUserFilter() |
| Modifier and Type | Method and Description |
|---|---|
APIAccessor |
getAPIAccessor() |
EngineExecutionContext |
getExecutionContext() |
protected Object |
getInputParameter(String paramName) |
protected <T> T |
getOptinalInputParameter(String paramName) |
protected String |
getStringInputParameter(String paramName) |
void |
setAPIAccessor(APIAccessor apiAccessor) |
void |
setExecutionContext(EngineExecutionContext executionContext) |
void |
setInputParameters(Map<String,Object> parameters)
Set the input parameter for the filter.
|
boolean |
shouldAutoAssignTaskIfSingleResult()
This method make the engine assign automatically the task if the result of
UserFilter.filter(String) is only one element. |
protected void |
validateStringInputParameterIsNotNulOrEmpty(String paramName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilter, validateInputParameterspublic void setInputParameters(Map<String,Object> parameters)
UserFiltersetInputParameters in interface UserFilterparameters - parameters is a map with parameter names and their value.protected Object getInputParameter(String paramName) throws IllegalStateException
IllegalStateExceptionprotected <T> T getOptinalInputParameter(String paramName)
protected void validateStringInputParameterIsNotNulOrEmpty(String paramName) throws ConnectorValidationException
ConnectorValidationExceptionpublic boolean shouldAutoAssignTaskIfSingleResult()
UserFilter.filter(String) is only one element.
i.e. when the task is filtered only for a single user Default implementation returns trueshouldAutoAssignTaskIfSingleResult in interface UserFilterpublic void setAPIAccessor(APIAccessor apiAccessor)
public void setExecutionContext(EngineExecutionContext executionContext)
public APIAccessor getAPIAccessor()
public EngineExecutionContext getExecutionContext()
Copyright © 2018 Bonitasoft S.A.. All rights reserved.