📄 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 + -