|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbucket.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(String s)
|
void |
flushCaches()
|
protected com.opensymphony.user.provider.UserProvider |
getNextProvider()
Get the next UserProvider in the chain. |
protected abstract Class |
getProviderClass()
Get the exact kind of provider we are chaining. |
boolean |
handles(String s)
|
boolean |
init(Properties properties)
See the class Javadoc for the chaining provider's properties. |
List |
list()
|
boolean |
load(String s,
com.opensymphony.user.Entity.Accessor accessor)
|
boolean |
remove(String s)
|
boolean |
store(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 Class getProviderClass()
protected com.opensymphony.user.provider.UserProvider getNextProvider()
public boolean init(Properties properties)
init in interface com.opensymphony.user.provider.UserProviderproperties - initialisation properties for this provider, and subsequent
providers in the chain.
public boolean create(String s)
create in interface com.opensymphony.user.provider.UserProviderpublic void flushCaches()
flushCaches in interface com.opensymphony.user.provider.UserProviderpublic boolean handles(String s)
handles in interface com.opensymphony.user.provider.UserProviderpublic List list()
list in interface com.opensymphony.user.provider.UserProvider
public boolean load(String s,
com.opensymphony.user.Entity.Accessor accessor)
load in interface com.opensymphony.user.provider.UserProviderpublic boolean remove(String s)
remove in interface com.opensymphony.user.provider.UserProvider
public boolean store(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 | |||||||||