com.atlassian.jira.workflow.validator
Class UserPermissionValidator

java.lang.Object
  extended by com.atlassian.jira.workflow.validator.AbstractPermissionValidator
      extended by com.atlassian.jira.workflow.validator.UserPermissionValidator
All Implemented Interfaces:
com.opensymphony.workflow.Validator

public class UserPermissionValidator
extends AbstractPermissionValidator
implements com.opensymphony.workflow.Validator


Field Summary
static java.lang.String NULL_ALLOWED_KEY
           
 
Constructor Summary
UserPermissionValidator()
           
 
Method Summary
 void validate(java.util.Map transientVars, java.util.Map args, com.opensymphony.module.propertyset.PropertySet ps)
          Looks up a transient var based on a argument passed in.
 
Methods inherited from class com.atlassian.jira.workflow.validator.AbstractPermissionValidator
hasUserPermission
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL_ALLOWED_KEY

public static final java.lang.String NULL_ALLOWED_KEY
See Also:
Constant Field Values
Constructor Detail

UserPermissionValidator

public UserPermissionValidator()
Method Detail

validate

public void validate(java.util.Map transientVars,
                     java.util.Map args,
                     com.opensymphony.module.propertyset.PropertySet ps)
              throws com.opensymphony.workflow.InvalidInputException
Looks up a transient var based on a argument passed in. If the transient Var exists then lookup the user with that username and see if they have the permission, also passed in the args.

Specified by:
validate in interface com.opensymphony.workflow.Validator
Throws:
com.opensymphony.workflow.InvalidInputException


Copyright © 2002-2006 Atlassian. All Rights Reserved.