org.openmobileis.test.mock.common
Class MockUserManagerFactory

java.lang.Object
  extended byorg.openmobileis.test.mock.common.MockUserManagerFactory
All Implemented Interfaces:
UserManagerFactory

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


Constructor Summary
MockUserManagerFactory(java.lang.String group, java.lang.String profilid, Credential cred)
           
 
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

MockUserManagerFactory

public MockUserManagerFactory(java.lang.String group,
                              java.lang.String profilid,
                              Credential cred)
Method Detail

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

deleteUser

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

getUser

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

storeUser

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


Copyright 2006 OpenMobileIS. All Rights Reserved.