Hot upgrade support from version without manager to one with a window manager
-----------------------------------------------------------------------------
Key: TRINIDAD-1869
URL: https://issues.apache.org/jira/browse/TRINIDAD-1869
Project: MyFaces Trinidad
Issue Type: Improvement
Components: Archetype
Affects Versions: 1.2.14-core , 2.0.0.3-core
Reporter: Blake Sullivan
Assignee: Blake Sullivan
Priority: Minor
Hot upgrade allows a new version of the server software to be installed in
place without affecting the current users of the system. In order to support
hot upgrade of a version of Trinidad without a WindowManager to a version with
a WindowManager, we need more support for tricky cases like state token
detection and remapping with some new internal apis:
CoreStateManager:
/**
* Returns the State token if a valid state token is available in the
request, or null if not.
* @param external
* @return
*/
public static String getStateToken(ExternalContext external)
StateManagerImpl:
/**
* Returns whether a token is a currently valid View State Token
* @param external The ExternalContext
* @param token The state token to check for validity
* @return
*/
public static boolean isValidViewStateToken(ExternalContext external, String
token)
/**
* Give a valid state token not associated with a window, change it to be
associated with
* the specified window Id.
* @param external The ExternalContext
* @param windowId window id to store the state token under
* @param token The state token to remap from windowless to windowed
*/
public static void remapViewState(ExternalContext external, String windowId,
String token)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.