Flushes the instance map, by calling cleanup() on all the objects stored in the AdfUserActivityInfo._instanceMap map. This function can be called when its no longer needed to store any userActivity data. Usage : AdfUserActivityInfo.cleanInstanceMap()
Flushes the contents of the AdfUserActivityInfo object and initializes them to null. This method is called on an instance of AdfUserActivityInfo. Usage : userActivityInfo.cleanup() where userActivityInfo is an instance of AdfUserActivityInfo.
Takes the JSON String representation passed in (userActInfoStr) and unmarshal it to retrieve the JS Object out of it and then updates the UserActivityInfo object of the specified "type". In some cases, if a value already exists in the object, it takes precedence over the value stored in session storage as it may be older.
the marshaled JSON String representation of UserActivityInfo Object
Returns a new instance by type. Internally UserActivityInfo maintains a static map, of UserActivityInfo objects. This is required in cases where we need to store data for more than one request. The method should be called when caller needs a UserActivityInfo object for the specified type. "previous<n>"- previous requests. In some cases the client keeps track of information for more than one request that was prior to the primary. A higher number for n indicates an older request. n=0 is "previous". "previous" - the request prior to the "primary". "primary" - the primary request. The one that is being sent to the server. "secondary" - the secondary request that is associated to the primary request.
Valid types include "previous", "primary", "secondary",. In special cases, such as redirect, it may be required to store multiple previous requests' information. In such cases the type of the form "previous<n>" can be used where <n> is a number identifying the specific instance of a previous request.
AdfUserActivityInfo - an instance of UserActivityInfo object if one already exists for the type, otherwise a new instance of UserActivityInfo object is created.
Marshals information for the previous and the current (or primary) requests to be sent to server. This method is usually called when a partial request is about to be made to the server. A call to this method cleans up all UserActivityInfo objects. TODO If we cleanup our data at the end of this call then in the event of an error with the request, all past data gets lost. particularly if there were previous requests' data. Perhaps we should cleanup after a successful partial response returns.
String - an XML String representation of the given dom node and its children