org.apache.cocoon.portal.wsrp.consumer
Class UserContextProviderImpl

java.lang.Object
  extended byorg.apache.cocoon.portal.wsrp.consumer.UserContextProviderImpl
All Implemented Interfaces:
ThreadSafe, UserContextProvider

public class UserContextProviderImpl
extends Object
implements UserContextProvider, ThreadSafe

This is the default implementation just returning an empty user context.

Version:
$Id: UserContextProviderImpl.java 322475 2005-10-16 14:26:44Z cziegeler $

Field Summary
 
Fields inherited from interface org.apache.cocoon.portal.wsrp.consumer.UserContextProvider
ROLE
 
Constructor Summary
UserContextProviderImpl()
           
 
Method Summary
 UserContextExtension createUserContext(String userId)
          Delivers a UserContext-object for the given User-id
the data will be read out of an individual location
protected  void fill(oasis.names.tc.wsrp.v1.types.PersonName name, UserContextExtension context)
          Fill the name.
protected  void fill(oasis.names.tc.wsrp.v1.types.UserProfile profile, UserContextExtension context)
          Fill the user profile.
protected  void setSupportedLocales(UserContextExtension userContext)
          Sets the supportedLocales out of an individual location This method can be overwritten in sub classes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserContextProviderImpl

public UserContextProviderImpl()
Method Detail

createUserContext

public UserContextExtension createUserContext(String userId)
Description copied from interface: UserContextProvider
Delivers a UserContext-object for the given User-id
the data will be read out of an individual location

Specified by:
createUserContext in interface UserContextProvider
Parameters:
userId -
Returns:
UserContextExtension
See Also:
UserContextProvider.createUserContext(java.lang.String)

setSupportedLocales

protected void setSupportedLocales(UserContextExtension userContext)
Sets the supportedLocales out of an individual location This method can be overwritten in sub classes.

Parameters:
userContext -

fill

protected void fill(oasis.names.tc.wsrp.v1.types.UserProfile profile,
                    UserContextExtension context)
Fill the user profile.
This method can be overwritten in sub classes.
Parameters:
profile -
context -

fill

protected void fill(oasis.names.tc.wsrp.v1.types.PersonName name,
                    UserContextExtension context)
Fill the name.
This method can be overwritten in sub classes.

Parameters:
name -
context -


Copyright ? 1999-2005 The Apache Software Foundation. All Rights Reserved.