|
||||||||||
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(java.lang.String username)
Returns true if the user with the specified username is deactivated, otherwise false . |
boolean |
isDisabled(com.atlassian.crowd.embedded.api.User user)
Returns true if the specified user is deactivated, otherwise false . |
Method Detail |
---|
boolean isDisabled(com.atlassian.crowd.embedded.api.User user)
true
if the specified user is deactivated, otherwise false
.
java.lang.NullPointerException
- if the user is nullboolean isDisabled(java.lang.String username)
true
if the user with the specified username is deactivated, otherwise false
.
java.lang.NullPointerException
- if the username is nullvoid 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
java.lang.NullPointerException
- if the user is nullvoid 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
java.lang.NullPointerException
- if the user is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |