public class LockCondition extends AbstractContentWorkflowComponent implements com.opensymphony.workflow.Condition
Check if the content is locked and if it is the case, the condition passes only if the lock owner is the current caller.
Modifier and Type | Field and Description |
---|---|
protected UserManager |
_userManager
The user manager
|
CONTENT_KEY
_logger, _manager, CONTEXT_PARAMETERS_KEY, FAIL_CONDITIONS_KEY, RESULT_MAP_KEY, WORKFLOW_ERRORS_KEY, WORKFLOW_WARNS_KEY
Constructor and Description |
---|
LockCondition() |
Modifier and Type | Method and Description |
---|---|
boolean |
passesCondition(Map transientVars,
Map args,
com.opensymphony.module.propertyset.PropertySet ps) |
void |
service(ServiceManager manager) |
getContent
addWorkflowError, addWorkflowWarning, enableLogging, getConditionFailures, getContextParameters, getResultsMap, getUser
protected UserManager _userManager
public LockCondition()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class AbstractWorkflowComponent
ServiceException
public boolean passesCondition(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps) throws com.opensymphony.workflow.WorkflowException
passesCondition
in interface com.opensymphony.workflow.Condition
com.opensymphony.workflow.WorkflowException