com.atlassian.jira.scheme.type
Class ProjectLead

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

public class ProjectLead
extends java.lang.Object
implements SchemeType


Field Summary
static java.lang.String DESC
           
 
Constructor Summary
ProjectLead()
           
 
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 user is the project lead for the project.
 
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

ProjectLead

public ProjectLead()
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

hasPermission

public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity,
                             java.lang.String argument,
                             com.opensymphony.module.user.User user)
Determines if the user is the project lead for the project. The current project is derived from the entity using JiraUtils.getProject. If it is not then false is returned.

Specified by:
hasPermission in interface SchemeType
Parameters:
entity - The Generic Value. Should be an Issue or a Project
argument - Not needed for this implementation
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 project lead 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), SingleUser.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)

doValidation

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


Copyright © 2002-2003 Atlassian. All Rights Reserved.