SalesPoint v3.3 API

users
Class UserCreator

java.lang.Object
  extended by users.UserCreator
All Implemented Interfaces:
Serializable

public class UserCreator
extends Object
implements Serializable

A factory that can create User objects.

Since:
v2.0
Author:
Steffen Zschaler
See Also:
User, UserManager.createUser(java.lang.String), Serialized Form

Constructor Summary
UserCreator()
           
 
Method Summary
 User createUser(String sName)
          Create and return a new User object for the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserCreator

public UserCreator()
Method Detail

createUser

public User createUser(String sName)
Create and return a new User object for the given name.

The default implementation creates and returns a direct instance of User.

Parameters:
sName - the name of the user to be created.
Returns:
the new User object. Must not be null.
Override:
Sometimes Override this method if you want the UserManager to create instances of subclasses of User rather than direct instances.

SalesPoint v3.3 API