public final class CrowdDisabledUserManager extends Object implements DisabledUserManager, DeactivatedUserChecker
Constructor and Description |
---|
CrowdDisabledUserManager(com.atlassian.crowd.embedded.api.CrowdService crowdService) |
Modifier and Type | Method and Description |
---|---|
void |
disableUser(com.atlassian.crowd.embedded.api.User user)
Disables the specified user.
|
void |
enableUser(com.atlassian.crowd.embedded.api.User user)
Enables the specified user.
|
boolean |
isDeactivated(String username)
Deprecated.
since 3.5 use
isDisabled(String) |
boolean |
isDeactivated(com.atlassian.user.User user)
Deprecated.
since 3.5 use
isDisabled(User) |
boolean |
isDisabled(String username)
Returns
true if the user with the specified username is deactivated or does not exist, otherwise false . |
boolean |
isDisabled(com.atlassian.crowd.embedded.api.User user)
Returns
true if the specified user is deactivated or does not exist, otherwise false . |
public CrowdDisabledUserManager(com.atlassian.crowd.embedded.api.CrowdService crowdService)
@Deprecated public boolean isDeactivated(com.atlassian.user.User user)
isDisabled(User)
DeactivatedUserChecker
isDeactivated
in interface DeactivatedUserChecker
user
- The user object@Deprecated public boolean isDeactivated(String username)
isDisabled(String)
DeactivatedUserChecker
isDeactivated
in interface DeactivatedUserChecker
username
- The username of the userpublic boolean isDisabled(com.atlassian.crowd.embedded.api.User user)
DisabledUserManager
true
if the specified user is deactivated or does not exist, otherwise false
.
Returns false
if the user is null, indicating an anonymous user.isDisabled
in interface DisabledUserManager
public boolean isDisabled(String username)
DisabledUserManager
true
if the user with the specified username is deactivated or does not exist, otherwise false
.
Returns false
if the username is null, indicating an anonymous user.isDisabled
in interface DisabledUserManager
public void disableUser(com.atlassian.crowd.embedded.api.User user) throws com.atlassian.crowd.exception.UserNotFoundException
DisabledUserManager
disableUser
in interface DisabledUserManager
user
- the user to disablecom.atlassian.crowd.exception.UserNotFoundException
- if the user does not existpublic void enableUser(com.atlassian.crowd.embedded.api.User user) throws com.atlassian.crowd.exception.UserNotFoundException
DisabledUserManager
enableUser
in interface DisabledUserManager
user
- the user to enablecom.atlassian.crowd.exception.UserNotFoundException
- if the user does not existCopyright © 2003–2016 Atlassian. All rights reserved.