public interface DisabledUserManager
UserAccessor.isDeactivated(String)
or
UserAccessor.deactivateUser(com.atlassian.user.User)
which take care of
checking permissions and firing appropriate events.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 . |
boolean |
isDisabled(com.atlassian.user.User user)
|
boolean isDisabled(com.atlassian.crowd.embedded.api.User user)
true
if the specified user is deactivated or does not exist, otherwise false
.
Returns false
if the user is null, indicating an anonymous user.boolean isDisabled(com.atlassian.user.User user)
boolean isDisabled(String username)
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.void disableUser(com.atlassian.crowd.embedded.api.User user) throws com.atlassian.crowd.exception.UserNotFoundException
user
- the user to disablecom.atlassian.crowd.exception.UserNotFoundException
- if the user does not existNullPointerException
- if the user is nullvoid enableUser(com.atlassian.crowd.embedded.api.User user) throws com.atlassian.crowd.exception.UserNotFoundException
user
- the user to enablecom.atlassian.crowd.exception.UserNotFoundException
- if the user does not existNullPointerException
- if the user is nullCopyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences