Package com.atlassian.sal.crowd.user
Class DefaultUserManager
java.lang.Object
com.atlassian.sal.crowd.user.DefaultUserManager
- All Implemented Interfaces:
com.atlassian.sal.api.user.UserManager
Crowd implementation of the UserManager
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultUserManager(com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, UserService userService, CrowdService crowdService) DefaultUserManager(TransactionHelper transactionHelper, UserService userService, CrowdService crowdService, com.atlassian.sal.api.web.context.HttpContext httpContext) -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(String username, String password) findGroupNamesByPrefix(String prefix, int startIndex, int maxResults) com.atlassian.sal.api.user.UserProfilecom.atlassian.sal.api.user.UserProfilegetRemoteUser(javax.servlet.http.HttpServletRequest httpServletRequest) com.atlassian.sal.api.user.UserKeycom.atlassian.sal.api.user.UserKeygetRemoteUserKey(javax.servlet.http.HttpServletRequest httpServletRequest) Deprecated.getRemoteUsername(javax.servlet.http.HttpServletRequest request) Deprecated.com.atlassian.sal.api.user.UserProfilegetUserProfile(com.atlassian.sal.api.user.UserKey userKey) com.atlassian.sal.api.user.UserProfilegetUserProfile(String username) booleanisAdmin(com.atlassian.sal.api.user.UserKey userKey) booleanbooleanbooleanisLicensed(com.atlassian.sal.api.user.UserKey userKey) booleanbooleanisSystemAdmin(com.atlassian.sal.api.user.UserKey userKey) booleanisSystemAdmin(String username) booleanisUserInGroup(com.atlassian.sal.api.user.UserKey userKey, String group) booleanisUserInGroup(String username, String group) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.sal.api.user.UserManager
isLimitedUnlicensedUser
-
Constructor Details
-
DefaultUserManager
public DefaultUserManager(TransactionHelper transactionHelper, UserService userService, CrowdService crowdService, com.atlassian.sal.api.web.context.HttpContext httpContext) -
DefaultUserManager
public DefaultUserManager(com.atlassian.sal.api.transaction.TransactionTemplate transactionTemplate, UserService userService, CrowdService crowdService)
-
-
Method Details
-
getRemoteUsername
Deprecated.- Specified by:
getRemoteUsernamein interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUser
@Nullable public com.atlassian.sal.api.user.UserProfile getRemoteUser()- Specified by:
getRemoteUserin interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUserKey
@Nullable public com.atlassian.sal.api.user.UserKey getRemoteUserKey()- Specified by:
getRemoteUserKeyin interfacecom.atlassian.sal.api.user.UserManager
-
isSystemAdmin
- Specified by:
isSystemAdminin interfacecom.atlassian.sal.api.user.UserManager
-
isSystemAdmin
public boolean isSystemAdmin(@Nullable com.atlassian.sal.api.user.UserKey userKey) - Specified by:
isSystemAdminin interfacecom.atlassian.sal.api.user.UserManager
-
isAdmin
- Specified by:
isAdminin interfacecom.atlassian.sal.api.user.UserManager
-
isAdmin
public boolean isAdmin(@Nullable com.atlassian.sal.api.user.UserKey userKey) - Specified by:
isAdminin interfacecom.atlassian.sal.api.user.UserManager
-
isLicensed
public boolean isLicensed(@Nullable com.atlassian.sal.api.user.UserKey userKey) - Specified by:
isLicensedin interfacecom.atlassian.sal.api.user.UserManager
-
isUserInGroup
- Specified by:
isUserInGroupin interfacecom.atlassian.sal.api.user.UserManager
-
isUserInGroup
public boolean isUserInGroup(@Nullable com.atlassian.sal.api.user.UserKey userKey, @Nullable String group) - Specified by:
isUserInGroupin interfacecom.atlassian.sal.api.user.UserManager
-
authenticate
- Specified by:
authenticatein interfacecom.atlassian.sal.api.user.UserManager
-
resolve
- Specified by:
resolvein interfacecom.atlassian.sal.api.user.UserManager- Throws:
com.atlassian.sal.api.user.UserResolutionException
-
findGroupNamesByPrefix
- Specified by:
findGroupNamesByPrefixin interfacecom.atlassian.sal.api.user.UserManager
-
isAnonymousAccessEnabled
public boolean isAnonymousAccessEnabled()- Specified by:
isAnonymousAccessEnabledin interfacecom.atlassian.sal.api.user.UserManager
-
isLimitedUnlicensedAccessEnabled
public boolean isLimitedUnlicensedAccessEnabled()- Specified by:
isLimitedUnlicensedAccessEnabledin interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUsername
@Deprecated @Nullable public String getRemoteUsername(javax.servlet.http.HttpServletRequest request) Deprecated.- Specified by:
getRemoteUsernamein interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUser
@Nullable public com.atlassian.sal.api.user.UserProfile getRemoteUser(javax.servlet.http.HttpServletRequest httpServletRequest) - Specified by:
getRemoteUserin interfacecom.atlassian.sal.api.user.UserManager
-
getRemoteUserKey
@Nullable public com.atlassian.sal.api.user.UserKey getRemoteUserKey(javax.servlet.http.HttpServletRequest httpServletRequest) - Specified by:
getRemoteUserKeyin interfacecom.atlassian.sal.api.user.UserManager
-
getUserProfile
- Specified by:
getUserProfilein interfacecom.atlassian.sal.api.user.UserManager
-
getUserProfile
@Nullable public com.atlassian.sal.api.user.UserProfile getUserProfile(@Nullable com.atlassian.sal.api.user.UserKey userKey) - Specified by:
getUserProfilein interfacecom.atlassian.sal.api.user.UserManager
-