com.atlassian.jira.security.type
Class SingleUser
java.lang.Object
com.atlassian.jira.security.type.AbstractSecurityType
com.atlassian.jira.security.type.AbstractProjectsSecurityType
com.atlassian.jira.security.type.SingleUser
- All Implemented Interfaces:
- SchemeType, SecurityType
public class SingleUser
- extends AbstractProjectsSecurityType
Field Summary |
static java.lang.String |
DESC
|
Method Summary |
boolean |
doValidation(java.lang.String key,
java.util.Map<java.lang.String,java.lang.String> parameters)
|
void |
doValidation(java.lang.String key,
java.util.Map parameters,
JiraServiceContext jiraServiceContext)
|
java.lang.String |
getDisplayName()
Returns display name - i18ned admin.permission.types.single.user |
java.lang.String |
getType()
Always returns DESC . |
java.util.Set<com.opensymphony.user.User> |
getUsers(PermissionContext ctx,
java.lang.String username)
Returns a single element set that contains a User object found
by the given user name. |
boolean |
hasPermission(org.ofbiz.core.entity.GenericValue entity,
java.lang.String argument)
Always returns false; |
boolean |
hasPermission(org.ofbiz.core.entity.GenericValue entity,
java.lang.String argument,
com.opensymphony.user.User user,
boolean issueCreation)
Determines if the single user is the same as the current user. |
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
SingleUser
public SingleUser(JiraAuthenticationContext jiraAuthenticationContext,
UserManager userManager)
getDisplayName
public java.lang.String getDisplayName()
- Returns display name - i18ned admin.permission.types.single.user
- Returns:
- display name
getType
public java.lang.String getType()
- Always returns
DESC
.
- Returns:
- Always returns
DESC
.
doValidation
public void doValidation(java.lang.String key,
java.util.Map parameters,
JiraServiceContext jiraServiceContext)
doValidation
public boolean doValidation(java.lang.String key,
java.util.Map<java.lang.String,java.lang.String> parameters)
hasPermission
public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity,
java.lang.String argument)
- Always returns false;
- Parameters:
entity
- This parameter is ignoredargument
- This parameter is ignored
- Returns:
- false
hasPermission
public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity,
java.lang.String argument,
com.opensymphony.user.User user,
boolean issueCreation)
- Determines if the single user is the same as the current user.
If it is not then false is returned.
- Parameters:
entity
- Not needed for this implementationargument
- The user name 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
- Returns:
- true if the user is the current user otherwise false
- 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)
,
GroupDropdown.hasPermission(org.ofbiz.core.entity.GenericValue, java.lang.String)
getUsers
public java.util.Set<com.opensymphony.user.User> getUsers(PermissionContext ctx,
java.lang.String username)
- Returns a single element set that contains a
User
object found
by the given user name.
- Parameters:
ctx
- permission contextusername
- user name string
- Returns:
- single element set
Copyright © 2002-2010 Atlassian. All Rights Reserved.