Class CrowdDisabledUserManager
java.lang.Object
com.atlassian.confluence.user.crowd.CrowdDisabledUserManager
- All Implemented Interfaces:
DisabledUserManager
Implementation of DisabledUserManager which uses the Embedded Crowd service.
- Since:
- 3.5
-
Constructor Summary
ConstructorsConstructorDescriptionCrowdDisabledUserManager(com.atlassian.crowd.embedded.api.CrowdService crowdService) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisableEnableUserLocally(com.atlassian.crowd.embedded.api.User user, boolean doEnable) Disables the specified user in the internal confluence directory.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.
-
Constructor Details
-
CrowdDisabledUserManager
public CrowdDisabledUserManager(com.atlassian.crowd.embedded.api.CrowdService crowdService)
-
-
Method Details
-
isDisabled
public boolean isDisabled(com.atlassian.crowd.embedded.api.User user) Description copied from interface:DisabledUserManagerReturnstrueif the specified user is deactivated or does not exist, otherwisefalse. Returnsfalseif the user is null, indicating an anonymous user.- Specified by:
isDisabledin interfaceDisabledUserManager- Returns:
- true if the specified user exists and is deactivated, otherwise false.
-
isDisabled
public boolean isDisabled(com.atlassian.user.User user) Description copied from interface:DisabledUserManager- Specified by:
isDisabledin interfaceDisabledUserManager- Returns:
- true if the specified user exists and is deactivated, otherwise false.
-
isDisabled
Description copied from interface:DisabledUserManagerReturnstrueif the user with the specified username is deactivated or does not exist, otherwisefalse. Returnsfalseif the username is null, indicating an anonymous user.- Specified by:
isDisabledin interfaceDisabledUserManager- Returns:
- true if the user with the specified username exists and is deactivated, otherwise false.
-
disableUser
public void disableUser(com.atlassian.crowd.embedded.api.User user) throws com.atlassian.user.impl.EntityValidationException, UserManagementOperationFailedException Description copied from interface:DisabledUserManagerDisables the specified user. Does nothing if the user is already disabled.- Specified by:
disableUserin interfaceDisabledUserManager- Parameters:
user- the user to disable- Throws:
com.atlassian.user.impl.EntityValidationExceptionUserManagementOperationFailedException
-
disableEnableUserLocally
public void disableEnableUserLocally(com.atlassian.crowd.embedded.api.User user, boolean doEnable) throws com.atlassian.user.impl.EntityValidationException, UserManagementOperationFailedException Description copied from interface:DisabledUserManagerDisables the specified user in the internal confluence directory. Does nothing if the user is already disabled.- Specified by:
disableEnableUserLocallyin interfaceDisabledUserManager- Parameters:
user- the user to disabledoEnable- whether to enable or disable- Throws:
com.atlassian.user.impl.EntityValidationExceptionUserManagementOperationFailedException
-
enableUser
public void enableUser(com.atlassian.crowd.embedded.api.User user) throws com.atlassian.user.impl.EntityValidationException, UserManagementOperationFailedException Description copied from interface:DisabledUserManagerEnables the specified user. Does nothing if the user is already enabled.- Specified by:
enableUserin interfaceDisabledUserManager- Parameters:
user- the user to enable- Throws:
com.atlassian.user.impl.EntityValidationExceptionUserManagementOperationFailedException
-