com.atlassian.jira.security.type
Class GroupDropdown

java.lang.Object
  extended bycom.atlassian.jira.security.type.AbstractSecurityType
      extended bycom.atlassian.jira.security.type.AbstractProjectsSecurityType
          extended bycom.atlassian.jira.security.type.GroupDropdown
All Implemented Interfaces:
SchemeType, SecurityType

public class GroupDropdown
extends AbstractProjectsSecurityType


Field Summary
static java.lang.String DESC
           
 
Constructor Summary
GroupDropdown()
           
 
Method Summary
 boolean doValidation(java.lang.String key, java.util.Map parameters)
           
 java.lang.String getDisplayName()
           
 java.util.List getGroups()
           
 java.lang.String getType()
           
 boolean hasPermission(GenericValue entity, java.lang.String group)
          If there is no user passed to a security type then they have the permission if there is no group set
 boolean hasPermission(GenericValue entity, java.lang.String group, User user)
          Determines if the use is part of a group that has the permission
 
Methods inherited from class com.atlassian.jira.security.type.AbstractProjectsSecurityType
getQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESC

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

GroupDropdown

public GroupDropdown()
Method Detail

getDisplayName

public java.lang.String getDisplayName()

getType

public java.lang.String getType()

getGroups

public java.util.List getGroups()

hasPermission

public boolean hasPermission(GenericValue entity,
                             java.lang.String group)
If there is no user passed to a security type then they have the permission if there is no group set

Parameters:
entity - - not used
group - The group. If it is null then it is Anyone
Returns:
See Also:
AbstractIssueFieldSecurityType.hasPermission(GenericValue, java.lang.String), AbstractIssueFieldSecurityType.hasPermission(GenericValue, java.lang.String), ProjectLead.hasPermission(GenericValue, java.lang.String), SingleUser.hasPermission(GenericValue, java.lang.String), hasPermission(GenericValue, java.lang.String)

hasPermission

public boolean hasPermission(GenericValue entity,
                             java.lang.String group,
                             User user)
Determines if the use is part of a group that has the permission

Parameters:
entity - - not used
group - The group. If it is null then it is Anyone
user - The user to check if they are in the group, must not be null
Returns:
See Also:
AbstractIssueFieldSecurityType.hasPermission(GenericValue, java.lang.String), AbstractIssueFieldSecurityType.hasPermission(GenericValue, java.lang.String), ProjectLead.hasPermission(GenericValue, java.lang.String), SingleUser.hasPermission(GenericValue, java.lang.String)

doValidation

public boolean doValidation(java.lang.String key,
                            java.util.Map parameters)