com.atlassian.confluence.security
Class CrowdDeactivatedUserChecker
java.lang.Object
com.atlassian.confluence.security.CrowdDeactivatedUserChecker
- All Implemented Interfaces:
- DeactivatedUserChecker
public class CrowdDeactivatedUserChecker
- extends java.lang.Object
- implements DeactivatedUserChecker
Class that determines the whether a user is deactivated by checking the embedded crowd active flag
Method Summary |
boolean |
isDeactivated(java.lang.String username)
Determines deactivation status of a user. |
boolean |
isDeactivated(com.atlassian.user.User user)
Determines deactivation status of a user. |
void |
setCrowdService(com.atlassian.crowd.embedded.api.CrowdService crowdService)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CrowdDeactivatedUserChecker
public CrowdDeactivatedUserChecker()
isDeactivated
public boolean isDeactivated(com.atlassian.user.User user)
- Determines deactivation status of a user. Anonymous users cannot be deactivated.
- Specified by:
isDeactivated
in interface DeactivatedUserChecker
- Parameters:
user
- The user object
- Returns:
- true if the specified user is deactivated, false otherwise.
isDeactivated
public boolean isDeactivated(java.lang.String username)
- Determines deactivation status of a user. Anonymous users cannot be deactivated.
Will throw a UserNotFoundException if the user does not exist.
- Specified by:
isDeactivated
in interface DeactivatedUserChecker
- Parameters:
username
- The username of the user
- Returns:
- true if the specified user is deactivated, false otherwise.
setCrowdService
public void setCrowdService(com.atlassian.crowd.embedded.api.CrowdService crowdService)
Copyright © 2003-2011 Atlassian. All Rights Reserved.