com.atlassian.jira.security.type
Class CurrentAssigneeHasAssignablePermission
java.lang.Object
com.atlassian.jira.security.type.AbstractSecurityType
com.atlassian.jira.security.type.AbstractIssueFieldSecurityType
com.atlassian.jira.security.type.SimpleIssueFieldSecurityType
com.atlassian.jira.security.type.CurrentAssigneeHasAssignablePermission
- All Implemented Interfaces:
- SchemeType, SecurityType
public class CurrentAssigneeHasAssignablePermission
- extends SimpleIssueFieldSecurityType
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrentAssigneeHasAssignablePermission
public CurrentAssigneeHasAssignablePermission(JiraAuthenticationContext jiraAuthenticationContext)
getDisplayName
public String getDisplayName()
getType
public String getType()
doValidation
public void doValidation(String key,
Map parameters,
JiraServiceContext jiraServiceContext)
getFieldName
protected String getFieldName()
- Specified by:
getFieldName
in class AbstractIssueFieldSecurityType
isValidForPermission
public boolean isValidForPermission(int permissionId)
- Is valid for all permissions except "Assignable".
Because we rely on the permissions for the "Assignable" function, then not only does it not make
sense to add this role to "Assignable", it would actually cause an infinite loop. see JRA-13315
- Specified by:
isValidForPermission
in interface SchemeType
- Overrides:
isValidForPermission
in class AbstractSecurityType
- Parameters:
permissionId
- permission id.
- Returns:
- false for Permissions.ASSIGNABLE_USER, true otherwise.
- See Also:
CurrentReporterHasCreatePermission
hasProjectPermission
protected boolean hasProjectPermission(com.atlassian.crowd.embedded.api.User user,
boolean issueCreation,
org.ofbiz.core.entity.GenericValue project)
- Specified by:
hasProjectPermission
in class AbstractIssueFieldSecurityType
getField
protected String getField()
- Specified by:
getField
in class SimpleIssueFieldSecurityType
Copyright © 2002-2012 Atlassian. All Rights Reserved.