|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.security.type.AbstractSecurityType com.atlassian.jira.security.type.AbstractProjectsSecurityType com.atlassian.jira.security.type.GroupDropdown
public class GroupDropdown
Field Summary | |
---|---|
static String |
DESC
|
Constructor Summary | |
---|---|
GroupDropdown(JiraAuthenticationContext jiraAuthenticationContext)
|
Method Summary | |
---|---|
void |
doValidation(String key,
Map parameters,
JiraServiceContext jiraServiceContext)
|
String |
getDisplayName()
|
List |
getGroups()
|
String |
getType()
|
Set<com.atlassian.crowd.embedded.api.User> |
getUsers(PermissionContext ctx,
String groupName)
Returns a list of User s 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 groupName,
com.atlassian.crowd.embedded.api.User user,
boolean issueCreation)
Determines if the use is part of a group that has the permission |
boolean |
hasPermission(Issue issue,
String parameter)
Determines if this permission type is satisfied for anonymous access. |
boolean |
hasPermission(Issue issue,
String parameter,
com.atlassian.crowd.embedded.api.User user,
boolean issueCreation)
Determines if this permission type is satisfied. |
boolean |
hasPermission(Project project,
String group)
Determines if this permission type is satisfied for anonymous access. |
boolean |
hasPermission(Project project,
String parameter,
com.atlassian.crowd.embedded.api.User user,
boolean issueCreation)
Determines if this permission type is satisfied. |
Methods inherited from class com.atlassian.jira.security.type.AbstractProjectsSecurityType |
---|
getQuery, getQuery, getQuery |
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 |
---|
public static final String DESC
Constructor Detail |
---|
public GroupDropdown(JiraAuthenticationContext jiraAuthenticationContext)
Method Detail |
---|
public String getDisplayName()
public String getType()
public List getGroups()
public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity, String group)
entity
- - not usedgroup
- The group. If it is null then it is Anyone
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)
public boolean hasPermission(Project project, String group)
SchemeType
project
- This is the project that the security is being checked forgroup
- If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown
)
public boolean hasPermission(Issue issue, String parameter)
SchemeType
issue
- This is the issue that the security is being checked forparameter
- If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown
)
public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity, String groupName, com.atlassian.crowd.embedded.api.User user, boolean issueCreation)
entity
- not usedgroupName
- 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
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)
public boolean hasPermission(Project project, String parameter, com.atlassian.crowd.embedded.api.User user, boolean issueCreation)
SchemeType
project
- This is the project that the security is being checked forparameter
- If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown
)user
- The user for whom the permission is being checkedissueCreation
- Whether this permission is being checked during issue creation
public boolean hasPermission(Issue issue, String parameter, com.atlassian.crowd.embedded.api.User user, boolean issueCreation)
SchemeType
issue
- This is the issue that the security is being checked forparameter
- If this particular SchemeType has been configured with a parameter, then this parameter is passed (eg. Group Name for GroupDropdown
)user
- The user for whom the permission is being checkedissueCreation
- Whether this permission is being checked during issue creation
public void doValidation(String key, Map parameters, JiraServiceContext jiraServiceContext)
public Set<com.atlassian.crowd.embedded.api.User> getUsers(PermissionContext ctx, String groupName)
SecurityType
User
s represented by a security type instance. The collection must
not contain any nulls.
ctx
- The current issue and projectgroupName
- Instance value, eg. a group name, user name, custom field id
User
s.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |