org.openmobileis.examples.mycrm.data.jdbc
Class MyCrmJDBCUserFactory

java.lang.Object
  extended byorg.openmobileis.examples.mycrm.data.jdbc.MyCrmJDBCUserFactory
All Implemented Interfaces:
UserManagerFactory

public final class MyCrmJDBCUserFactory
extends java.lang.Object
implements UserManagerFactory


Constructor Summary
MyCrmJDBCUserFactory()
           
 
Method Summary
 java.lang.String authenticateUser(java.lang.String login, java.lang.String pass)
          Authenticate the login/pass.
 void deleteUser(java.lang.String userID)
           
 User getUser(java.lang.String userID)
           
 void storeUser(User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyCrmJDBCUserFactory

public MyCrmJDBCUserFactory()
Method Detail

deleteUser

public void deleteUser(java.lang.String userID)
                throws ServiceException,
                       UserNotFoundException
Specified by:
deleteUser in interface UserManagerFactory
Throws:
ServiceException
UserNotFoundException

storeUser

public void storeUser(User user)
               throws ServiceException,
                      UserAlreadyExistException
Specified by:
storeUser in interface UserManagerFactory
Throws:
ServiceException
UserAlreadyExistException

getUser

public User getUser(java.lang.String userID)
             throws ServiceException,
                    UserNotFoundException
Specified by:
getUser in interface UserManagerFactory
Throws:
ServiceException
UserNotFoundException

authenticateUser

public java.lang.String authenticateUser(java.lang.String login,
                                         java.lang.String pass)
                                  throws ServiceException,
                                         UserNotFoundException
Description copied from interface: UserManagerFactory
Authenticate the login/pass. return the authenticated userId if ok.

Specified by:
authenticateUser in interface UserManagerFactory
Parameters:
login -
pass -
Returns:
Throws:
UserNotFoundException
ServiceException


Copyright 2005 e-Care. All Rights Reserved.