com.atlassian.jira.security.type
Class SimpleIssueFieldSecurityType

java.lang.Object
  extended by com.atlassian.jira.security.type.AbstractSecurityType
      extended by com.atlassian.jira.security.type.AbstractIssueFieldSecurityType
          extended by 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

Constructor Summary
SimpleIssueFieldSecurityType()
           
 
Method Summary
protected abstract  String getField()
           
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.
 
Methods inherited from class com.atlassian.jira.security.type.AbstractIssueFieldSecurityType
getFieldName, getQuery, getQuery, getQueryForProject, getQueryForSecurityLevel, getUsers, hasPermission, hasPermission, hasProjectPermission
 
Methods inherited from class com.atlassian.jira.security.type.AbstractSecurityType
getArgumentDisplay, isValidForPermission
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.scheme.SchemeType
doValidation, getDisplayName, getType
 

Constructor Detail

SimpleIssueFieldSecurityType

public SimpleIssueFieldSecurityType()
Method Detail

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.


Copyright © 2002-2012 Atlassian. All Rights Reserved.