com.ibm.workflow.portlet.client
Class GlobalRegistrationMap

java.lang.Object
  |
  +--com.ibm.workflow.portlet.client.GlobalRegistrationMap

public class GlobalRegistrationMap
extends java.lang.Object

The GlobalRegistration map allows different user portlet instances of the workflow portlet application to share a common RegistrationMap per user. Basically this kind of a scratch area where a reference for the RegistrationMap is stored for every user currently login. In the login method of the portlets, this RegistrationMap will be retrieved and stored in the session of each user portlet instance.


Constructor Summary
GlobalRegistrationMap()
           
 
Method Summary
 RegistrationMap getRegistrationMap(java.lang.String userId, boolean create)
          Retrieves the Registration map for a certain user.
 java.lang.Object removeRegistrationMap(java.lang.String userId)
          Removes a registration Map.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalRegistrationMap

public GlobalRegistrationMap()
Method Detail

getRegistrationMap

public RegistrationMap getRegistrationMap(java.lang.String userId,
                                          boolean create)
Retrieves the Registration map for a certain user.
Parameters:
userId - userid of the user whose RegistrationMap is wanted.
create - if true a new RegistrationMap is created if no RegistrationMap exists already.
Returns:
the RegistrationMap or null if no RegistrationMap is stored of the user and create is false. When create is true, you can take for granted that a RegistrationMap will be returned.

removeRegistrationMap

public java.lang.Object removeRegistrationMap(java.lang.String userId)
Removes a registration Map.
Parameters:
userid - userid of the user whose RegistrationMap will be removed.
Returns:
the removed RegistrationMap QUESTION: Does the return value and type make any sense?


© Copyright IBM Corporation 2002, 2008. All Rights Reserved.