com.atlassian.jira.security.type
Class CurrentReporter

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.CurrentReporter
All Implemented Interfaces:
SchemeType, SecurityType

public class CurrentReporter
extends AbstractIssueFieldSecurityType


Field Summary
static String DESC
           
 
Constructor Summary
CurrentReporter(JiraAuthenticationContext jiraAuthenticationContext)
           
 
Method Summary
 void doValidation(String key, Map parameters, JiraServiceContext jiraServiceContext)
           
 String getDisplayName()
           
protected  String getField()
           
protected  String getFieldName()
           
 String getType()
           
 Set getUsers(PermissionContext ctx, String ignored)
          Returns a list of Users represented by a security type instance.
protected  boolean hasProjectPermission(User user, boolean issueCreation, org.ofbiz.core.entity.GenericValue project)
           
 
Methods inherited from class com.atlassian.jira.security.type.AbstractIssueFieldSecurityType
getQuery, getQuery, getQueryForProject, getQueryForSecurityLevel, hasIssuePermission, hasPermission, hasPermission
 
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
 

Field Detail

DESC

public static final String DESC
See Also:
Constant Field Values
Constructor Detail

CurrentReporter

public CurrentReporter(JiraAuthenticationContext jiraAuthenticationContext)
Method Detail

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

hasProjectPermission

protected boolean hasProjectPermission(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 AbstractIssueFieldSecurityType

getUsers

public Set getUsers(PermissionContext ctx,
                    String ignored)
Description copied from interface: SecurityType
Returns a list of Users represented by a security type instance. The collection must not contain any nulls.

Specified by:
getUsers in interface SecurityType
Overrides:
getUsers in class AbstractIssueFieldSecurityType
Parameters:
ctx - The current issue and project
ignored - Instance value, eg. a group name, user name, custom field id
Returns:
A set of Users.


Copyright © 2002-2008 Atlassian. All Rights Reserved.