com.atlassian.jira.security.type
Class GroupDropdown
java.lang.Object
com.atlassian.jira.security.type.AbstractSecurityType
com.atlassian.jira.security.type.AbstractProjectsSecurityType
com.atlassian.jira.security.type.GroupDropdown
- All Implemented Interfaces:
- SchemeType, SecurityType
public class GroupDropdown
- extends AbstractProjectsSecurityType
Field Summary |
static java.lang.String |
DESC
|
Method Summary |
void |
doValidation(java.lang.String key,
java.util.Map parameters,
JiraServiceContext jiraServiceContext)
|
java.lang.String |
getDisplayName()
|
java.util.List |
getGroups()
|
java.lang.String |
getType()
|
java.util.Set |
getUsers(PermissionContext ctx,
java.lang.String groupName)
Returns a list of User s represented by a security type instance. |
boolean |
hasPermission(org.ofbiz.core.entity.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(org.ofbiz.core.entity.GenericValue entity,
java.lang.String group,
com.opensymphony.user.User user,
boolean issueCreation)
Determines if the use is part of a group that has the permission |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DESC
public static final java.lang.String DESC
- See Also:
- Constant Field Values
GroupDropdown
public GroupDropdown(JiraAuthenticationContext jiraAuthenticationContext)
getDisplayName
public java.lang.String getDisplayName()
getType
public java.lang.String getType()
getGroups
public java.util.List getGroups()
hasPermission
public boolean hasPermission(org.ofbiz.core.entity.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 usedgroup
- The group. If it is null then it is Anyone
- Returns:
- true if anonymous Users have this permission.
- 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,
java.lang.String group,
com.opensymphony.user.User user,
boolean issueCreation)
- Determines if the use is part of a group that has the permission
- Parameters:
entity
- not usedgroup
- The group. If it is null then it is Anyoneuser
- The user to check if they are in the group, must not be nullissueCreation
- not used
- Returns:
- true if the given User has this permission.
- 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 void doValidation(java.lang.String key,
java.util.Map parameters,
JiraServiceContext jiraServiceContext)
getUsers
public java.util.Set getUsers(PermissionContext ctx,
java.lang.String groupName)
- Description copied from interface:
SecurityType
- Returns a list of
User
s represented by a security type instance. The collection must
not contain any nulls.
- Parameters:
ctx
- The current issue and projectgroupName
- Instance value, eg. a group name, user name, custom field id
- Returns:
- A set of
User
s.
Copyright © 2002-2011 Atlassian. All Rights Reserved.