com.atlassian.jira.security.type
Class SimpleIssueFieldSecurityType
java.lang.Object
com.atlassian.jira.security.type.AbstractSecurityType
com.atlassian.jira.security.type.AbstractIssueFieldSecurityType
com.atlassian.jira.security.type.SimpleIssueFieldSecurityType
- All Implemented Interfaces:
- SchemeType, SecurityType
- Direct Known Subclasses:
- CurrentAssignee, CurrentAssigneeHasAssignablePermission, CurrentReporter, CurrentReporterHasCreatePermission
public abstract class SimpleIssueFieldSecurityType
- extends AbstractIssueFieldSecurityType
The common class for IssueField SecurityTypes that rely on a simple field (ie a field of the Issue Generic Value).
- Since:
- v4.3
Method Summary |
protected abstract String |
getField()
|
protected abstract String |
getFieldValue(Issue issue)
Returns the user key value for the given issue for the field that this security type checks. |
protected boolean |
hasIssuePermission(com.atlassian.crowd.embedded.api.User user,
boolean issueCreation,
org.ofbiz.core.entity.GenericValue issueGv,
String argument)
Defines whether the given user has permission to see the given issue. |
protected boolean |
hasIssuePermission(com.atlassian.crowd.embedded.api.User user,
boolean issueCreation,
Issue issue,
String parameter)
|
Methods inherited from class com.atlassian.jira.security.type.AbstractIssueFieldSecurityType |
getFieldName, getQuery, getQuery, getQueryForProject, getQueryForSecurityLevel, hasPermission, hasPermission, hasPermission, hasPermission, hasPermission, hasPermission, hasProjectPermission, hasProjectPermission |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleIssueFieldSecurityType
public SimpleIssueFieldSecurityType()
getField
protected abstract String getField()
hasIssuePermission
protected boolean hasIssuePermission(com.atlassian.crowd.embedded.api.User user,
boolean issueCreation,
org.ofbiz.core.entity.GenericValue issueGv,
String argument)
- Defines whether the given user has permission to see the given issue.
- Specified by:
hasIssuePermission
in class AbstractIssueFieldSecurityType
- Parameters:
user
- the User for whom permission is being determined.issueCreation
- not used.issueGv
- the issue.argument
- a parameter to be optionally used by overriders.
- Returns:
- true only if the User has permission to see the issue, false if issueGv is not an issue.
hasIssuePermission
protected boolean hasIssuePermission(com.atlassian.crowd.embedded.api.User user,
boolean issueCreation,
Issue issue,
String parameter)
- Specified by:
hasIssuePermission
in class AbstractIssueFieldSecurityType
getFieldValue
protected abstract String getFieldValue(Issue issue)
- Returns the user key value for the given issue for the field that this security type checks.
- Parameters:
issue
- the Issue
- Returns:
- the user key value for the given issue for the field that this security type checks.
Copyright © 2002-2013 Atlassian. All Rights Reserved.