?? allowowneronlycondition.java
字號:
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. */package com.opensymphony.workflow.util;import com.opensymphony.module.propertyset.PropertySet;import com.opensymphony.workflow.Condition;import com.opensymphony.workflow.StoreException;import java.util.Map;/** * @deprecated Use IsUserOwnerCondition instead * @see com.opensymphony.workflow.util.IsUserOwnerCondition * * Simple utility condition that returns true if the owner is the caller. Looks * at ALL current steps unless a stepId is given in the optional argument * "stepId". * * @author <a href="mailto:plightbo@hotmail.com">Pat Lightbody </a> */public class AllowOwnerOnlyCondition implements Condition { //~ Methods //////////////////////////////////////////////////////////////// // //////////////////////////////////////////////////////////////// public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws StoreException { IsUserOwnerCondition isOwnerCondition = new IsUserOwnerCondition(); return isOwnerCondition.passesCondition(transientVars, args, ps); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -