com.atlassian.jira.scheme.type
Class SingleUser

java.lang.Object
  |
  +--com.atlassian.jira.scheme.type.SingleUser
All Implemented Interfaces:
SchemeType

public class SingleUser
extends java.lang.Object
implements SchemeType


Field Summary
static java.lang.String DESC
           
 
Constructor Summary
SingleUser()
           
 
Method Summary
 boolean doValidation(java.lang.String key, java.util.Map parameters)
           
 java.lang.String getDisplayName()
           
 java.lang.String getType()
           
 boolean hasPermission(org.ofbiz.core.entity.GenericValue entity, java.lang.String argument, com.opensymphony.module.user.User user)
          Determines if the single user is the same as the current user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESC

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

SingleUser

public SingleUser()
Method Detail

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface SchemeType

getType

public java.lang.String getType()
Specified by:
getType in interface SchemeType

doValidation

public boolean doValidation(java.lang.String key,
                            java.util.Map parameters)
Specified by:
doValidation in interface SchemeType

hasPermission

public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity,
                             java.lang.String argument,
                             com.opensymphony.module.user.User user)
Determines if the single user is the same as the current user. If it is not then false is returned.

Specified by:
hasPermission in interface SchemeType
Parameters:
entity - Not needed for this implementation
argument - The user name that the check is based on
user - User to check the permission on. If it is null then the check is made on the current user
Returns:
true if the user is the current user otherwise false
See Also:
CurrentAssignee.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String, com.opensymphony.module.user.User), CurrentReporter.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String, com.opensymphony.module.user.User), ProjectLead.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String, com.opensymphony.module.user.User), GroupDropdown.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String, com.opensymphony.module.user.User)


Copyright © 2002-2003 Atlassian. All Rights Reserved.