com.atlassian.jira.security.type
Class ProjectLead
java.lang.Object
com.atlassian.jira.security.type.AbstractSecurityType
com.atlassian.jira.security.type.AbstractProjectsSecurityType
com.atlassian.jira.security.type.ProjectLead
- All Implemented Interfaces:
- SchemeType, SecurityType
- public class ProjectLead
- extends AbstractProjectsSecurityType
Field Summary |
static java.lang.String |
DESC
|
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)
Interface for determining if a permission type has the permission |
boolean |
hasPermission(org.ofbiz.core.entity.GenericValue entity,
java.lang.String argument,
com.opensymphony.user.User user,
boolean issueCreation)
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 |
DESC
public static final java.lang.String DESC
- See Also:
- Constant Field Values
ProjectLead
public ProjectLead()
getDisplayName
public java.lang.String getDisplayName()
getType
public java.lang.String getType()
hasPermission
public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity,
java.lang.String argument)
- Description copied from interface:
SchemeType
- Interface for determining if a permission type has the permission
- Parameters:
entity
- argument
-
- Returns:
- See Also:
AbstractIssueFieldSecurityType.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String)
,
AbstractIssueFieldSecurityType.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String)
,
hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String)
,
SingleUser.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String)
,
GroupDropdown.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String)
hasPermission
public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity,
java.lang.String argument,
com.opensymphony.user.User user,
boolean issueCreation)
- 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.
- Parameters:
entity
- The Generic Value. Should be an Issue or a Projectargument
- Not needed for this implementationuser
- User to check the permission on. If it is null then the check is made on the current userissueCreation
-
- Returns:
- true if the user is the project lead otherwise false
- See Also:
AbstractIssueFieldSecurityType.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String)
,
AbstractIssueFieldSecurityType.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String)
,
SingleUser.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String)
,
GroupDropdown.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String)
doValidation
public boolean doValidation(java.lang.String key,
java.util.Map parameters)
Copyright © 2002-2005 Atlassian. All Rights Reserved.