public final class CrowdDisabledUserManager extends Object implements DisabledUserManager
| 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 |
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)
public boolean isDisabled(com.atlassian.crowd.embedded.api.User user)
DisabledUserManagertrue 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 DisabledUserManagerpublic boolean isDisabled(String username)
DisabledUserManagertrue 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 DisabledUserManagerpublic void disableUser(com.atlassian.crowd.embedded.api.User user)
throws com.atlassian.crowd.exception.UserNotFoundException
DisabledUserManagerdisableUser in interface DisabledUserManageruser - 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
DisabledUserManagerenableUser in interface DisabledUserManageruser - the user to enablecom.atlassian.crowd.exception.UserNotFoundException - if the user does not existCopyright © 2003–2020 Atlassian. All rights reserved.