|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.user.crowd.CrowdDisabledUserManager
public final class CrowdDisabledUserManager
Implementation of DisabledUserManager which uses the Embedded Crowd service.
Constructor Summary | |
---|---|
CrowdDisabledUserManager(com.atlassian.crowd.embedded.api.CrowdService crowdService)
|
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 |
isDeactivated(String username)
Deprecated. since 3.5 use isDisabled(String) |
boolean |
isDeactivated(com.atlassian.user.User user)
Deprecated. since 3.5 use isDisabled(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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CrowdDisabledUserManager(com.atlassian.crowd.embedded.api.CrowdService crowdService)
Method Detail |
---|
@Deprecated public boolean isDeactivated(com.atlassian.user.User user)
isDisabled(User)
DeactivatedUserChecker
isDeactivated
in interface DeactivatedUserChecker
user
- The user object
@Deprecated public boolean isDeactivated(String username)
isDisabled(String)
DeactivatedUserChecker
isDeactivated
in interface DeactivatedUserChecker
username
- The username of the user
public boolean isDisabled(com.atlassian.crowd.embedded.api.User user)
DisabledUserManager
true
if the specified user is deactivated or does not exist, otherwise false
.
Returns false
if the user is null, indicating an anonymous user.
isDisabled
in interface DisabledUserManager
public boolean isDisabled(String username)
DisabledUserManager
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.
isDisabled
in interface DisabledUserManager
public void disableUser(com.atlassian.crowd.embedded.api.User user) throws com.atlassian.crowd.exception.UserNotFoundException
DisabledUserManager
disableUser
in interface DisabledUserManager
user
- the user to disable
com.atlassian.crowd.exception.UserNotFoundException
- if the user does not existpublic void enableUser(com.atlassian.crowd.embedded.api.User user) throws com.atlassian.crowd.exception.UserNotFoundException
DisabledUserManager
enableUser
in interface DisabledUserManager
user
- the user to enable
com.atlassian.crowd.exception.UserNotFoundException
- if the user does not exist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |