com.opensymphony.user.provider.ofbiz
Class OFBizCredentialsProvider

java.lang.Object
  extended bycom.opensymphony.user.provider.ofbiz.OFBizAbstractProvider
      extended bycom.opensymphony.user.provider.ofbiz.OFBizCredentialsProvider
All Implemented Interfaces:
CredentialsProvider, java.io.Serializable, UserProvider

public class OFBizCredentialsProvider
extends OFBizAbstractProvider
implements CredentialsProvider

Takes same properties as OFBizAbstractProvider with one addition:

userSequence - the name of the sequence used to generate user IDs (default: "OSUser")

Author:
Victor Salaman, Mike Cannon-Brookes $Revision: 1.2 $
See Also:
Serialized Form

Field Summary
protected  java.lang.String userSequence
           
 
Fields inherited from class com.opensymphony.user.provider.ofbiz.OFBizAbstractProvider
delegator, exclusiveAccess, nameCache, userEntity
 
Constructor Summary
OFBizCredentialsProvider()
           
 
Method Summary
 boolean authenticate(java.lang.String name, java.lang.String password)
          Check password supplied matches that of User.
 boolean changePassword(java.lang.String name, java.lang.String password)
          Change password of user.
 boolean create(java.lang.String name)
          Create new Entity with given name.
 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.
 
Methods inherited from class com.opensymphony.user.provider.ofbiz.OFBizAbstractProvider
clearAllCache, clearUserCache, findUser, flushCaches, getDelegator, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.opensymphony.user.provider.UserProvider
flushCaches, store
 

Field Detail

userSequence

protected java.lang.String userSequence
Constructor Detail

OFBizCredentialsProvider

public OFBizCredentialsProvider()
Method Detail

authenticate

public boolean authenticate(java.lang.String name,
                            java.lang.String password)
Description copied from interface: CredentialsProvider
Check password supplied matches that of User.

Specified by:
authenticate in interface CredentialsProvider

changePassword

public boolean changePassword(java.lang.String name,
                              java.lang.String password)
Description copied from interface: CredentialsProvider
Change password of user.

Specified by:
changePassword in interface CredentialsProvider

create

public boolean create(java.lang.String name)
Description copied from interface: UserProvider
Create new Entity with given name.

Specified by:
create in interface UserProvider
Overrides:
create in class OFBizAbstractProvider

handles

public boolean handles(java.lang.String name)
Description copied from interface: UserProvider
Determine whether this UserProvider implementation is responsible for handling this Entity.

Specified by:
handles in interface UserProvider

init

public boolean init(java.util.Properties properties)
Description copied from interface: UserProvider
Called by UserManager before any other method. Allows for UserProvider specific initialization.

Specified by:
init in interface UserProvider
Overrides:
init in class OFBizAbstractProvider

list

public java.util.List list()
Description copied from interface: UserProvider
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. If there are no current Entities stored by this provider, an empty List is to be returned. The order of names returned can be determined by the UserProvider (it may or may not be relevant). This List should be immutable.

Specified by:
list in interface UserProvider
Overrides:
list in class OFBizAbstractProvider

load

public boolean load(java.lang.String name,
                    Entity.Accessor accessor)
Description copied from interface: UserProvider
Load Entity.

Specified by:
load in interface UserProvider
Overrides:
load in class OFBizAbstractProvider

remove

public boolean remove(java.lang.String name)
Description copied from interface: UserProvider
Remove Entity with given name.

Specified by:
remove in interface UserProvider
Overrides:
remove in class OFBizAbstractProvider

See www.opensymphony.com for more information.