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 String DESC
           
 
Constructor Summary
GroupDropdown(JiraAuthenticationContext jiraAuthenticationContext)
           
 
Method Summary
 boolean doValidation(String key, Map parameters)
           
 String getDisplayName()
           
 List getGroups()
           
 String getType()
           
 Set getUsers(PermissionContext ctx, String groupName)
          Returns a list of Users represented by a security type instance.
 boolean hasPermission(org.ofbiz.core.entity.GenericValue entity, 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(org.ofbiz.core.entity.GenericValue entity, String group, User user, boolean issueCreation)
          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 com.atlassian.jira.security.type.AbstractSecurityType
getArgumentDisplay
 
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

GroupDropdown

public GroupDropdown(JiraAuthenticationContext jiraAuthenticationContext)
Method Detail

getDisplayName

public String getDisplayName()

getType

public String getType()

getGroups

public List getGroups()

hasPermission

public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity,
                             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
See Also:
AbstractIssueFieldSecurityType.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String), AbstractIssueFieldSecurityType.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String), ProjectLead.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String), SingleUser.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String), hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String)

hasPermission

public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity,
                             String group,
                             User user,
                             boolean issueCreation)
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
issueCreation -
See Also:
AbstractIssueFieldSecurityType.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String), AbstractIssueFieldSecurityType.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String), ProjectLead.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String), SingleUser.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String)

doValidation

public boolean doValidation(String key,
                            Map parameters)

getUsers

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

Parameters:
ctx - not used (null ok).
groupName - name of the group.
Returns:
the users.
See Also:
SecurityType


Copyright © 2002-2006 Atlassian. All Rights Reserved.