Class DefaultLockOutProvider
java.lang.Object
org.jivesoftware.openfire.lockout.DefaultLockOutProvider
- All Implemented Interfaces:
LockOutProvider
The DefaultLockOutProvider works with the ofUserFlag table to maintain a list of disabled/locked out
accounts., and as the name implies, is the default LockOutProvider implementation.
- Author:
- Daniel Henninger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDisabledStatus(String username) Default provider retrieves disabled status from ofUserFlag table.booleanDefault provider allows delayed start to disabled status.booleanDefault provider allows editing of disabled status.booleanDefault provider allows timeout of disabled status.voidsetDisabledStatus(LockOutFlag flag) Default provider deletes existing flag, if it exists, and adds new described flag in ofUserFlag table.booleanDefault provider should be cached.voidunsetDisabledStatus(String username) Default provider deletes existing flag from ofUserFlag table.
-
Constructor Details
-
DefaultLockOutProvider
public DefaultLockOutProvider()Constructs a new DefaultLockOutProvider
-
-
Method Details
-
getDisabledStatus
Default provider retrieves disabled status from ofUserFlag table.- Specified by:
getDisabledStatusin interfaceLockOutProvider- Parameters:
username- Username of account to request status of.- Returns:
- The LockOutFlag instance describing the accounts disabled status or null if user account specified is not currently locked out (disabled).
- See Also:
-
setDisabledStatus
Default provider deletes existing flag, if it exists, and adds new described flag in ofUserFlag table.- Specified by:
setDisabledStatusin interfaceLockOutProvider- Parameters:
flag- A LockOutFlag instance to describe the disabled status of a user.- See Also:
-
unsetDisabledStatus
Default provider deletes existing flag from ofUserFlag table.- Specified by:
unsetDisabledStatusin interfaceLockOutProvider- Parameters:
username- User to enable.- See Also:
-
isReadOnly
public boolean isReadOnly()Default provider allows editing of disabled status.- Specified by:
isReadOnlyin interfaceLockOutProvider- Returns:
- true if the lock out provider is read-only.
- See Also:
-
isDelayedStartSupported
public boolean isDelayedStartSupported()Default provider allows delayed start to disabled status.- Specified by:
isDelayedStartSupportedin interfaceLockOutProvider- Returns:
- true if the lock out provider provides this feature.
- See Also:
-
isTimeoutSupported
public boolean isTimeoutSupported()Default provider allows timeout of disabled status.- Specified by:
isTimeoutSupportedin interfaceLockOutProvider- Returns:
- true if the lcok out provider provides this feature.
- See Also:
-
shouldNotBeCached
public boolean shouldNotBeCached()Default provider should be cached.- Specified by:
shouldNotBeCachedin interfaceLockOutProvider- Returns:
- true if disabled status should not be cached.
- See Also:
-