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.StoreException;
11:
12: import java.util.Map;
13:
14: /**
15: * @deprecated Use IsUserOwnerCondition instead
16: * @see com.opensymphony.workflow.util.IsUserOwnerCondition
17: *
18: * Simple utility condition that returns true if the owner is the caller. Looks
19: * at ALL current steps unless a stepId is given in the optional argument
20: * "stepId".
21: *
22: * @author <a href="mailto:plightbo@hotmail.com">Pat Lightbody </a>
23: */
24: public class AllowOwnerOnlyCondition implements Condition {
25: //~ Methods ////////////////////////////////////////////////////////////////
26:
27: // ////////////////////////////////////////////////////////////////
28: public boolean passesCondition(Map transientVars, Map args,
29: PropertySet ps) throws StoreException {
30: IsUserOwnerCondition isOwnerCondition = new IsUserOwnerCondition();
31:
32: return isOwnerCondition
33: .passesCondition(transientVars, args, ps);
34: }
35: }
|