Class SetupUserManager
- java.lang.Object
-
- com.atlassian.sal.confluence.user.SetupUserManager
-
- All Implemented Interfaces:
com.atlassian.sal.api.user.UserManager
public class SetupUserManager extends Object implements com.atlassian.sal.api.user.UserManager
-
-
Constructor Summary
Constructors Constructor Description SetupUserManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
authenticate(String username, String password)
Iterable<String>
findGroupNamesByPrefix(String prefix, int startIndex, int maxResults)
@Nullable com.atlassian.sal.api.user.UserProfile
getRemoteUser()
@Nullable com.atlassian.sal.api.user.UserProfile
getRemoteUser(javax.servlet.http.HttpServletRequest request)
@Nullable com.atlassian.sal.api.user.UserKey
getRemoteUserKey()
@Nullable com.atlassian.sal.api.user.UserKey
getRemoteUserKey(javax.servlet.http.HttpServletRequest request)
@Nullable String
getRemoteUsername()
@Nullable String
getRemoteUsername(javax.servlet.http.HttpServletRequest request)
@Nullable com.atlassian.sal.api.user.UserProfile
getUserProfile(@Nullable com.atlassian.sal.api.user.UserKey userKey)
@Nullable com.atlassian.sal.api.user.UserProfile
getUserProfile(@Nullable String username)
boolean
isAdmin(@Nullable com.atlassian.sal.api.user.UserKey userKey)
boolean
isAdmin(@Nullable String username)
boolean
isAnonymousAccessEnabled()
boolean
isLicensed(@Nullable com.atlassian.sal.api.user.UserKey userKey)
boolean
isLimitedUnlicensedAccessEnabled()
boolean
isLimitedUnlicensedUser(@Nullable com.atlassian.sal.api.user.UserKey userKey)
boolean
isSystemAdmin(@Nullable com.atlassian.sal.api.user.UserKey userKey)
boolean
isSystemAdmin(@Nullable String username)
boolean
isUserInGroup(@Nullable com.atlassian.sal.api.user.UserKey userKey, @Nullable String group)
boolean
isUserInGroup(@Nullable String username, @Nullable String group)
@Nullable Principal
resolve(String username)
-
-
-
Method Detail
-
getRemoteUsername
public @Nullable String getRemoteUsername()
- Specified by:
getRemoteUsername
in interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUser
public @Nullable com.atlassian.sal.api.user.UserProfile getRemoteUser()
- Specified by:
getRemoteUser
in interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUserKey
public @Nullable com.atlassian.sal.api.user.UserKey getRemoteUserKey()
- Specified by:
getRemoteUserKey
in interfacecom.atlassian.sal.api.user.UserManager
-
getUserProfile
public @Nullable com.atlassian.sal.api.user.UserProfile getUserProfile(@Nullable String username)
- Specified by:
getUserProfile
in interfacecom.atlassian.sal.api.user.UserManager
-
getUserProfile
public @Nullable com.atlassian.sal.api.user.UserProfile getUserProfile(@Nullable com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
getUserProfile
in interfacecom.atlassian.sal.api.user.UserManager
-
isUserInGroup
public boolean isUserInGroup(@Nullable String username, @Nullable String group)
- Specified by:
isUserInGroup
in interfacecom.atlassian.sal.api.user.UserManager
-
isUserInGroup
public boolean isUserInGroup(@Nullable com.atlassian.sal.api.user.UserKey userKey, @Nullable String group)
- Specified by:
isUserInGroup
in interfacecom.atlassian.sal.api.user.UserManager
-
isSystemAdmin
public boolean isSystemAdmin(@Nullable String username)
- Specified by:
isSystemAdmin
in interfacecom.atlassian.sal.api.user.UserManager
-
isSystemAdmin
public boolean isSystemAdmin(@Nullable com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
isSystemAdmin
in interfacecom.atlassian.sal.api.user.UserManager
-
isAdmin
public boolean isAdmin(@Nullable String username)
- Specified by:
isAdmin
in interfacecom.atlassian.sal.api.user.UserManager
-
isAdmin
public boolean isAdmin(@Nullable com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
isAdmin
in interfacecom.atlassian.sal.api.user.UserManager
-
isLicensed
public boolean isLicensed(@Nullable com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
isLicensed
in interfacecom.atlassian.sal.api.user.UserManager
-
isLimitedUnlicensedUser
public boolean isLimitedUnlicensedUser(@Nullable com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
isLimitedUnlicensedUser
in interfacecom.atlassian.sal.api.user.UserManager
-
authenticate
public boolean authenticate(String username, String password)
- Specified by:
authenticate
in interfacecom.atlassian.sal.api.user.UserManager
-
resolve
public @Nullable Principal resolve(String username) throws com.atlassian.sal.api.user.UserResolutionException
- Specified by:
resolve
in interfacecom.atlassian.sal.api.user.UserManager
- Throws:
com.atlassian.sal.api.user.UserResolutionException
-
findGroupNamesByPrefix
public Iterable<String> findGroupNamesByPrefix(String prefix, int startIndex, int maxResults)
- Specified by:
findGroupNamesByPrefix
in interfacecom.atlassian.sal.api.user.UserManager
-
isAnonymousAccessEnabled
public boolean isAnonymousAccessEnabled()
- Specified by:
isAnonymousAccessEnabled
in interfacecom.atlassian.sal.api.user.UserManager
-
isLimitedUnlicensedAccessEnabled
public boolean isLimitedUnlicensedAccessEnabled()
- Specified by:
isLimitedUnlicensedAccessEnabled
in interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUserKey
public @Nullable com.atlassian.sal.api.user.UserKey getRemoteUserKey(javax.servlet.http.HttpServletRequest request)
- Specified by:
getRemoteUserKey
in interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUser
public @Nullable com.atlassian.sal.api.user.UserProfile getRemoteUser(javax.servlet.http.HttpServletRequest request)
- Specified by:
getRemoteUser
in interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUsername
public @Nullable String getRemoteUsername(javax.servlet.http.HttpServletRequest request)
- Specified by:
getRemoteUsername
in interfacecom.atlassian.sal.api.user.UserManager
-
-