public class DefaultLockOutProvider extends Object implements LockOutProvider
Constructor and Description |
---|
DefaultLockOutProvider()
Constructs a new DefaultLockOutProvider
|
Modifier and Type | Method and Description |
---|---|
LockOutFlag |
getDisabledStatus(String username)
Default provider retrieves disabled status from ofUserFlag table.
|
boolean |
isDelayedStartSupported()
Default provider allows delayed start to disabled status.
|
boolean |
isReadOnly()
Default provider allows editing of disabled status.
|
boolean |
isTimeoutSupported()
Default provider allows timeout of disabled status.
|
void |
setDisabledStatus(LockOutFlag flag)
Default provider deletes existing flag, if it exists, and adds new described flag in ofUserFlag table.
|
boolean |
shouldNotBeCached()
Default provider should be cached.
|
void |
unsetDisabledStatus(String username)
Default provider deletes existing flag from ofUserFlag table.
|
public DefaultLockOutProvider()
public LockOutFlag getDisabledStatus(String username)
getDisabledStatus
in interface LockOutProvider
username
- Username of account to request status of.LockOutProvider.getDisabledStatus(String)
public void setDisabledStatus(LockOutFlag flag)
setDisabledStatus
in interface LockOutProvider
flag
- A LockOutFlag instance to describe the disabled status of a user.LockOutProvider.setDisabledStatus(LockOutFlag)
public void unsetDisabledStatus(String username)
unsetDisabledStatus
in interface LockOutProvider
username
- User to enable.LockOutProvider.unsetDisabledStatus(String)
public boolean isReadOnly()
isReadOnly
in interface LockOutProvider
LockOutProvider.isReadOnly()
public boolean isDelayedStartSupported()
isDelayedStartSupported
in interface LockOutProvider
LockOutProvider.isDelayedStartSupported()
public boolean isTimeoutSupported()
isTimeoutSupported
in interface LockOutProvider
LockOutProvider.isTimeoutSupported()
public boolean shouldNotBeCached()
shouldNotBeCached
in interface LockOutProvider
LockOutProvider.shouldNotBeCached()
Copyright © 2003-2008 Jive Software.