01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.workflow.util;
06:
07: import com.opensymphony.module.propertyset.PropertySet;
08:
09: import com.opensymphony.workflow.Condition;
10: import com.opensymphony.workflow.WorkflowException;
11:
12: import java.util.Map;
13:
14: /**
15: * @deprecated Use IsUserOwnerCondition instead
16: * @see com.opensymphony.workflow.util.IsUserOwnerCondition
17: *
18: * Checks owner of "stepId" in args and compares to current user
19: *
20: * @author Travis reeder Date: Feb 18, 2003 Time: 4:47:00 PM
21: * @version 0.1
22: */
23: public class AllowOwnerOfStepCondition implements Condition {
24: //~ Methods ////////////////////////////////////////////////////////////////
25:
26: // ////////////////////////////////////////////////////////////////
27: public boolean passesCondition(Map transientVars, Map args,
28: PropertySet ps) throws WorkflowException {
29: IsUserOwnerCondition isOwnerCondition = new IsUserOwnerCondition();
30:
31: return isOwnerCondition
32: .passesCondition(transientVars, args, ps);
33: }
34: }
|