|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A UserProvider is a plug-in implementation that allows a UserManager to access data in the back-end store.
A UserProvider implementation should always contain a public default constructor. The init() method shall always be called before any other methods.
Almost all methods return a boolean. This is to signify whether the operation was successful.
CredentialsProvider,
AccessProvider,
ProfileProvider| Method Summary | |
boolean |
create(java.lang.String name)
Create new Entity with given name. |
void |
flushCaches()
Flush the providers caches - if it is caching. |
boolean |
handles(java.lang.String name)
Determine whether this UserProvider implementation is responsible for handling this Entity. |
boolean |
init(java.util.Properties properties)
Called by UserManager before any other method. |
java.util.List |
list()
Returns List of names (Strings) of all Entities that can be accessed by this UserProvider If this UserProvider cannot retrieve a list of names, null is to be returned. |
boolean |
load(java.lang.String name,
Entity.Accessor accessor)
Load Entity. |
boolean |
remove(java.lang.String name)
Remove Entity with given name. |
boolean |
store(java.lang.String name,
Entity.Accessor accessor)
Stores changes to Entity. |
| Method Detail |
public boolean create(java.lang.String name)
public void flushCaches()
public boolean handles(java.lang.String name)
public boolean init(java.util.Properties properties)
properties - Extra properties passed across by UserManager.public java.util.List list()
public boolean load(java.lang.String name,
Entity.Accessor accessor)
public boolean remove(java.lang.String name)
public boolean store(java.lang.String name,
Entity.Accessor accessor)
|
See www.opensymphony.com for more information. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||