|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bucket.user.providers.ChainedUserProvider
public abstract class ChainedUserProvider
Allows more explicit chaining of OSUser providers. Normal OSUser chaining is applied externally, so a provider doesn't know it's part of a chain, and can't explicitly talk to providers down the chain (making implementing a generic caching provider difficult, for example)
Init Properties:
If you're a masochist, you can configure multiple chained providers in a row, using properties like "chain.chain.chain.of.fools" to pass configuration properties down the list.
Constructor Summary | |
---|---|
ChainedUserProvider()
|
Method Summary | |
---|---|
boolean |
create(java.lang.String s)
|
void |
flushCaches()
|
protected com.opensymphony.user.provider.UserProvider |
getNextProvider()
Get the next UserProvider in the chain. |
protected abstract java.lang.Class |
getProviderClass()
Get the exact kind of provider we are chaining. |
boolean |
handles(java.lang.String s)
|
boolean |
init(java.util.Properties properties)
See the class Javadoc for the chaining provider's properties. |
java.util.List |
list()
|
boolean |
load(java.lang.String s,
com.opensymphony.user.Entity.Accessor accessor)
|
boolean |
remove(java.lang.String s)
|
boolean |
store(java.lang.String s,
com.opensymphony.user.Entity.Accessor accessor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChainedUserProvider()
Method Detail |
---|
protected abstract java.lang.Class getProviderClass()
protected com.opensymphony.user.provider.UserProvider getNextProvider()
public boolean init(java.util.Properties properties)
init
in interface com.opensymphony.user.provider.UserProvider
properties
- initialisation properties for this provider, and subsequent
providers in the chain.
public boolean create(java.lang.String s)
create
in interface com.opensymphony.user.provider.UserProvider
public void flushCaches()
flushCaches
in interface com.opensymphony.user.provider.UserProvider
public boolean handles(java.lang.String s)
handles
in interface com.opensymphony.user.provider.UserProvider
public java.util.List list()
list
in interface com.opensymphony.user.provider.UserProvider
public boolean load(java.lang.String s, com.opensymphony.user.Entity.Accessor accessor)
load
in interface com.opensymphony.user.provider.UserProvider
public boolean remove(java.lang.String s)
remove
in interface com.opensymphony.user.provider.UserProvider
public boolean store(java.lang.String s, com.opensymphony.user.Entity.Accessor accessor)
store
in interface com.opensymphony.user.provider.UserProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |