|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.sal.confluence.user.ConfluenceUserManager
public class ConfluenceUserManager
Authenticates a user against UserAccessor in Confluence.
Constructor Summary | |
---|---|
ConfluenceUserManager(UserAccessor userAccessor,
com.atlassian.crowd.embedded.api.CrowdService crowdService,
PermissionManager permissionManager)
|
Method Summary | |
---|---|
boolean |
authenticate(java.lang.String username,
java.lang.String password)
|
java.lang.Iterable<java.lang.String> |
findGroupNamesByPrefix(java.lang.String prefix,
int startIndex,
int maxResults)
|
com.atlassian.sal.api.user.UserProfile |
getRemoteUser()
|
com.atlassian.sal.api.user.UserProfile |
getRemoteUser(javax.servlet.http.HttpServletRequest httpServletRequest)
|
com.atlassian.sal.api.user.UserKey |
getRemoteUserKey()
|
com.atlassian.sal.api.user.UserKey |
getRemoteUserKey(javax.servlet.http.HttpServletRequest httpServletRequest)
|
java.lang.String |
getRemoteUsername()
|
java.lang.String |
getRemoteUsername(javax.servlet.http.HttpServletRequest request)
|
com.atlassian.sal.api.user.UserProfile |
getUserProfile(java.lang.String username)
|
com.atlassian.sal.api.user.UserProfile |
getUserProfile(com.atlassian.sal.api.user.UserKey userKey)
|
boolean |
isAdmin(java.lang.String username)
|
boolean |
isAdmin(com.atlassian.sal.api.user.UserKey userKey)
|
boolean |
isSystemAdmin(java.lang.String username)
|
boolean |
isSystemAdmin(com.atlassian.sal.api.user.UserKey userKey)
|
boolean |
isUserInGroup(java.lang.String username,
java.lang.String group)
Returns whether the user is in the specify group |
boolean |
isUserInGroup(com.atlassian.sal.api.user.UserKey userKey,
java.lang.String groupName)
|
ConfluenceUser |
resolve(java.lang.String username)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfluenceUserManager(UserAccessor userAccessor, com.atlassian.crowd.embedded.api.CrowdService crowdService, PermissionManager permissionManager)
Method Detail |
---|
public java.lang.String getRemoteUsername()
getRemoteUsername
in interface com.atlassian.sal.api.user.UserManager
@Nullable public com.atlassian.sal.api.user.UserProfile getRemoteUser()
getRemoteUser
in interface com.atlassian.sal.api.user.UserManager
@Nullable public com.atlassian.sal.api.user.UserKey getRemoteUserKey()
getRemoteUserKey
in interface com.atlassian.sal.api.user.UserManager
public boolean isSystemAdmin(java.lang.String username)
isSystemAdmin
in interface com.atlassian.sal.api.user.UserManager
public boolean isSystemAdmin(@Nullable com.atlassian.sal.api.user.UserKey userKey)
isSystemAdmin
in interface com.atlassian.sal.api.user.UserManager
public boolean authenticate(java.lang.String username, java.lang.String password)
authenticate
in interface com.atlassian.sal.api.user.UserManager
public boolean isUserInGroup(java.lang.String username, java.lang.String group)
isUserInGroup
in interface com.atlassian.sal.api.user.UserManager
username
- The username to checkgroup
- The group to check
public boolean isUserInGroup(@Nullable com.atlassian.sal.api.user.UserKey userKey, @Nullable java.lang.String groupName)
isUserInGroup
in interface com.atlassian.sal.api.user.UserManager
public java.lang.String getRemoteUsername(javax.servlet.http.HttpServletRequest request)
getRemoteUsername
in interface com.atlassian.sal.api.user.UserManager
@Nullable public com.atlassian.sal.api.user.UserProfile getRemoteUser(javax.servlet.http.HttpServletRequest httpServletRequest)
getRemoteUser
in interface com.atlassian.sal.api.user.UserManager
@Nullable public com.atlassian.sal.api.user.UserKey getRemoteUserKey(javax.servlet.http.HttpServletRequest httpServletRequest)
getRemoteUserKey
in interface com.atlassian.sal.api.user.UserManager
public ConfluenceUser resolve(java.lang.String username)
resolve
in interface com.atlassian.sal.api.user.UserManager
public java.lang.Iterable<java.lang.String> findGroupNamesByPrefix(java.lang.String prefix, int startIndex, int maxResults)
findGroupNamesByPrefix
in interface com.atlassian.sal.api.user.UserManager
public boolean isAdmin(java.lang.String username)
isAdmin
in interface com.atlassian.sal.api.user.UserManager
public boolean isAdmin(@Nullable com.atlassian.sal.api.user.UserKey userKey)
isAdmin
in interface com.atlassian.sal.api.user.UserManager
public com.atlassian.sal.api.user.UserProfile getUserProfile(java.lang.String username)
getUserProfile
in interface com.atlassian.sal.api.user.UserManager
@Nullable public com.atlassian.sal.api.user.UserProfile getUserProfile(@Nullable com.atlassian.sal.api.user.UserKey userKey)
getUserProfile
in interface com.atlassian.sal.api.user.UserManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |