org.apache.wsrp4j.consumer.driver
Class UserImpl

java.lang.Object
  extended byorg.apache.wsrp4j.util.StateChangedServiceImpl
      extended byorg.apache.wsrp4j.consumer.driver.UserImpl
All Implemented Interfaces:
StateChangedService, User

public class UserImpl
extends StateChangedServiceImpl
implements User

This class contains the userid and the UserContext together for Castor persistence support.

Author:
Ralf Altrichter

Constructor Summary
UserImpl()
          Creates a user without a user id.
UserImpl(java.lang.String userID)
          Creates a user with the given user id.
 
Method Summary
 UserContext getUserContext()
          Returns the UserContext for this userid
 java.lang.String getUserID()
          Returns the userID
 void setUserContext(UserContext userContext)
          Sets the UserContext for this userID
 void setUserID(java.lang.String userID)
          Sets the userID
 
Methods inherited from class org.apache.wsrp4j.util.StateChangedServiceImpl
addListener, stateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserImpl

public UserImpl()
Creates a user without a user id.


UserImpl

public UserImpl(java.lang.String userID)
Creates a user with the given user id.

Method Detail

getUserID

public java.lang.String getUserID()
Returns the userID

Specified by:
getUserID in interface User
Returns:
_userID

setUserID

public void setUserID(java.lang.String userID)
Sets the userID

Specified by:
setUserID in interface User
Parameters:
userID - as String

getUserContext

public UserContext getUserContext()
Returns the UserContext for this userid

Specified by:
getUserContext in interface User
Returns:
_userContext

setUserContext

public void setUserContext(UserContext userContext)
Sets the UserContext for this userID

Specified by:
setUserContext in interface User
Parameters:
userContext -