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)
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–2020 Atlassian. All rights reserved.