|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DisabledUserManager
Manages the underlying changes to enable and disable users. Clients should not normally use
this API directly, but instead call UserAccessor.isDeactivated(String) or
UserAccessor.deactivateUser(com.atlassian.user.User) which take care of
checking permissions and firing appropriate events.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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(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 disable
com.atlassian.crowd.exception.UserNotFoundException - if the user does not exist
NullPointerException - if the user is null
void enableUser(com.atlassian.crowd.embedded.api.User user)
throws com.atlassian.crowd.exception.UserNotFoundException
user - the user to enable
com.atlassian.crowd.exception.UserNotFoundException - if the user does not exist
NullPointerException - if the user is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||