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

Deprecated. Use PermissionValidator instead.

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

Variant of PermissionValidator which lets the user specify the name of the field specifying the username.


Field Summary
static String NULL_ALLOWED_KEY
          Deprecated.  
 
Constructor Summary
UserPermissionValidator()
          Deprecated.  
 
Method Summary
 void validate(Map transientVars, Map args, com.opensymphony.module.propertyset.PropertySet ps)
          Deprecated. 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 String NULL_ALLOWED_KEY
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

UserPermissionValidator

public UserPermissionValidator()
Deprecated. 
Method Detail

validate

public void validate(Map transientVars,
                     Map args,
                     com.opensymphony.module.propertyset.PropertySet ps)
              throws com.opensymphony.workflow.InvalidInputException
Deprecated. 
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-2007 Atlassian. All Rights Reserved.