|
||||||||||
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.SingleUser
public class SingleUser
Field Summary | |
---|---|
static String |
DESC
|
Constructor Summary | |
---|---|
SingleUser(JiraAuthenticationContext jiraAuthenticationContext,
UserManager userManager)
|
Method Summary | |
---|---|
boolean |
doValidation(String key,
Map<String,String> parameters)
Validates given input which in case of user is username |
void |
doValidation(String key,
Map<String,String> parameters,
JiraServiceContext jiraServiceContext)
|
String |
getArgumentDisplay(String argument)
|
String |
getDisplayName()
Returns display name - i18ned admin.permission.types.single.user |
String |
getType()
Always returns DESC . |
Set<com.atlassian.crowd.embedded.api.User> |
getUsers(PermissionContext ctx,
String argument)
Returns a single element set that contains a User object found
by the given user name. |
boolean |
hasPermission(org.ofbiz.core.entity.GenericValue entity,
String argument)
Always returns false; |
boolean |
hasPermission(org.ofbiz.core.entity.GenericValue entity,
String argument,
com.atlassian.crowd.embedded.api.User user,
boolean issueCreation)
Determines if the single user is the same as the current user. |
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 argument)
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 |
---|
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 SingleUser(JiraAuthenticationContext jiraAuthenticationContext, UserManager userManager)
Method Detail |
---|
public String getDisplayName()
public String getArgumentDisplay(String argument)
getArgumentDisplay
in interface SecurityType
getArgumentDisplay
in class AbstractSecurityType
public String getType()
DESC
.
DESC
.public void doValidation(String key, Map<String,String> parameters, JiraServiceContext jiraServiceContext)
public boolean doValidation(String key, Map<String,String> parameters)
key
- parameters
-
public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity, String argument)
entity
- This parameter is ignoredargument
- This parameter is ignored
public boolean hasPermission(Project project, String argument)
SchemeType
project
- This is the project that the security is being checked forargument
- 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 argument, com.atlassian.crowd.embedded.api.User user, boolean issueCreation)
entity
- Not needed for this implementationargument
- The user key that the check is based onuser
- User to check the permission on. If it is null then the check is made on the current userissueCreation
- This parameter is ignored
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)
,
GroupDropdown.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 Set<com.atlassian.crowd.embedded.api.User> getUsers(PermissionContext ctx, String argument)
User
object found
by the given user name.
ctx
- permission contextargument
- user key string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |