Package com.atlassian.confluence.user
Interface DisabledUserManager
- 
- All Known Implementing Classes:
- CrowdDisabledUserManager
 
 public interface DisabledUserManagerManages the underlying changes to enable and disable users. Clients should not normally use this API directly, but instead callUserAccessor.isDeactivated(String)orUserAccessor.deactivateUser(com.atlassian.user.User)which take care of checking permissions and firing appropriate events.- Since:
- 3.5
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddisableUser(com.atlassian.crowd.embedded.api.User user)Disables the specified user.voidenableUser(com.atlassian.crowd.embedded.api.User user)Enables the specified user.booleanisDisabled(com.atlassian.crowd.embedded.api.User user)Returnstrueif the specified user is deactivated or does not exist, otherwisefalse.booleanisDisabled(com.atlassian.user.User user)booleanisDisabled(String username)Returnstrueif the user with the specified username is deactivated or does not exist, otherwisefalse.
 
- 
- 
- 
Method Detail- 
isDisabledboolean isDisabled(com.atlassian.crowd.embedded.api.User user) Returnstrueif the specified user is deactivated or does not exist, otherwisefalse. Returnsfalseif the user is null, indicating an anonymous user.- Returns:
- true if the specified user exists and is deactivated, otherwise false.
 
 - 
isDisabledboolean isDisabled(com.atlassian.user.User user) - Returns:
- true if the specified user exists and is deactivated, otherwise false.
- Since:
- 7.17
 
 - 
isDisabledboolean isDisabled(String username) Returnstrueif the user with the specified username is deactivated or does not exist, otherwisefalse. Returnsfalseif the username is null, indicating an anonymous user.- Returns:
- true if the user with the specified username exists and is deactivated, otherwise false.
 
 - 
disableUservoid disableUser(com.atlassian.crowd.embedded.api.User user) throws com.atlassian.crowd.exception.UserNotFoundExceptionDisables the specified user. Does nothing if the user is already disabled.- Parameters:
- user- the user to disable
- Throws:
- com.atlassian.crowd.exception.UserNotFoundException- if the user does not exist
- NullPointerException- if the user is null
 
 - 
enableUservoid enableUser(com.atlassian.crowd.embedded.api.User user) throws com.atlassian.crowd.exception.UserNotFoundExceptionEnables the specified user. Does nothing if the user is already enabled.- Parameters:
- user- the user to enable
- Throws:
- com.atlassian.crowd.exception.UserNotFoundException- if the user does not exist
- NullPointerException- if the user is null
 
 
- 
 
-