public final class

CrowdDisabledUserManager

extends Object
implements DeactivatedUserChecker DisabledUserManager
java.lang.Object
   ↳ com.atlassian.confluence.user.crowd.CrowdDisabledUserManager

Class Overview

Implementation of DisabledUserManager which uses the Embedded Crowd service.

Summary

Public Constructors
CrowdDisabledUserManager(CrowdService crowdService)
Public Methods
void disableUser(User user)
Disables the specified user.
void enableUser(User user)
Enables the specified user.
@Deprecated boolean isDeactivated(User user)
This method is deprecated. since 3.5 use isDisabled(User)
@Deprecated boolean isDeactivated(String username)
This method is deprecated. since 3.5 use isDisabled(String)
boolean isDisabled(User user)
Returns true if the specified user is deactivated or does not exist, otherwise false.
boolean isDisabled(String username)
Returns true if the user with the specified username is deactivated or does not exist, otherwise false.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.security.DeactivatedUserChecker
From interface com.atlassian.confluence.user.DisabledUserManager

Public Constructors

public CrowdDisabledUserManager (CrowdService crowdService)

Public Methods

public void disableUser (User user)

Disables the specified user. Does nothing if the user is already disabled.

Parameters
user the user to disable

public void enableUser (User user)

Enables the specified user. Does nothing if the user is already enabled.

Parameters
user the user to enable

@Deprecated public boolean isDeactivated (User user)

This method is deprecated.
since 3.5 use isDisabled(User)

@inheritDoc

Parameters
user The user object
Returns
  • true if the specified user is deactivated, false otherwise.

@Deprecated public boolean isDeactivated (String username)

This method is deprecated.
since 3.5 use isDisabled(String)

@inheritDoc

Parameters
username The username of the user
Returns
  • true if the specified user is deactivated, false otherwise.

public boolean isDisabled (User user)

Returns true if the specified user is deactivated or does not exist, otherwise false. Returns false if the user is null, indicating an anonymous user.

Returns
  • true if the specified user exists and is deactivated, otherwise false.

public boolean isDisabled (String username)

Returns 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.

Returns
  • true if the user with the specified username exists and is deactivated, otherwise false.