com.atlassian.sal.confluence.user
Class ConfluenceUserManager
java.lang.Object
com.atlassian.sal.confluence.user.ConfluenceUserManager
- All Implemented Interfaces:
- com.atlassian.sal.api.user.UserManager
public class ConfluenceUserManager
- extends Object
- implements com.atlassian.sal.api.user.UserManager
Authenticates a user against UserAccessor in Confluence.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluenceUserManager
public ConfluenceUserManager(UserAccessor userAccessor,
PermissionManager permissionManager)
getRemoteUsername
public String getRemoteUsername()
- Specified by:
getRemoteUsername
in interface com.atlassian.sal.api.user.UserManager
isSystemAdmin
public boolean isSystemAdmin(String username)
- Specified by:
isSystemAdmin
in interface com.atlassian.sal.api.user.UserManager
authenticate
public boolean authenticate(String username,
String password)
- Specified by:
authenticate
in interface com.atlassian.sal.api.user.UserManager
isUserInGroup
public boolean isUserInGroup(String username,
String group)
- Returns whether the user is in the specify group
- Specified by:
isUserInGroup
in interface com.atlassian.sal.api.user.UserManager
- Parameters:
username
- The username to checkgroup
- The group to check
- Returns:
- True if the user is in the specified group
getRemoteUsername
public String getRemoteUsername(javax.servlet.http.HttpServletRequest request)
- Specified by:
getRemoteUsername
in interface com.atlassian.sal.api.user.UserManager
resolve
public com.atlassian.user.User resolve(String username)
- Specified by:
resolve
in interface com.atlassian.sal.api.user.UserManager
isAdmin
public boolean isAdmin(String username)
- Specified by:
isAdmin
in interface com.atlassian.sal.api.user.UserManager
getUserProfile
public com.atlassian.sal.api.user.UserProfile getUserProfile(String username)
-
- Specified by:
getUserProfile
in interface com.atlassian.sal.api.user.UserManager
Copyright © 2003-2011 Atlassian. All Rights Reserved.