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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DESC
public static final String DESC
- See Also:
- Constant Field Values
SingleUser
public SingleUser(JiraAuthenticationContext jiraAuthenticationContext)
getDisplayName
public String getDisplayName()
getType
public String getType()
doValidation
public boolean doValidation(String key,
Map parameters)
hasPermission
public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity,
String argument)
- Description copied from interface:
SchemeType
- Interface for determining if a permission type has the permission.
This method is called if there is no Remote User (ie anonymous)
- Parameters:
entity
- This is the issue or 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 {@link com.atlassian.jira.security.type.GroupDropdown)
hasPermission
public boolean hasPermission(org.ofbiz.core.entity.GenericValue entity,
String argument,
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
-
- 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)
Copyright © 2002-2006 Atlassian. All Rights Reserved.