public class AlfrescoNavigationHandler
extends javax.faces.application.NavigationHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLOSE_DIALOG_OUTCOME |
static java.lang.String |
CLOSE_MULTIPLE_END |
static java.lang.String |
CLOSE_MULTIPLE_START |
static java.lang.String |
CLOSE_WIZARD_OUTCOME |
static java.lang.String |
DIALOG_PREFIX |
protected java.lang.String |
dialogContainer |
static java.lang.String |
EXTERNAL_CONTAINER_SESSION |
static java.lang.String |
OUTCOME_BROWSE |
static java.lang.String |
OUTCOME_SEPARATOR |
protected java.lang.String |
plainDialogContainer |
protected java.lang.String |
plainWizardContainer |
static java.lang.String |
WIZARD_PREFIX |
protected java.lang.String |
wizardContainer |
| Constructor and Description |
|---|
AlfrescoNavigationHandler(javax.faces.application.NavigationHandler origHandler)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCurrentViewToStack(javax.faces.context.FacesContext context)
Adds the current view to the stack (if required).
|
protected DialogsConfigElement.DialogConfig |
getDialogConfig(javax.faces.context.FacesContext context,
java.lang.String name,
Node dispatchContext)
Returns the dialog configuration object for the given dialog name.
|
protected java.lang.String |
getDialogContainer(javax.faces.context.FacesContext context)
Retrieves the configured dialog container page
|
protected Node |
getDispatchContextNode(javax.faces.context.FacesContext context)
Returns the node currently in the dispatch context
|
protected int |
getNumberToClose(java.lang.String outcome) |
protected java.lang.String |
getOutcomeOverride(java.lang.String outcome)
Returns the overridden outcome.
|
protected java.lang.String |
getViewIdFromStackObject(javax.faces.context.FacesContext context,
java.lang.Object topOfStack)
Returns the view id of the given item retrieved from the view stack.
|
protected WizardsConfigElement.WizardConfig |
getWizardConfig(javax.faces.context.FacesContext context,
java.lang.String name,
Node dispatchContext)
Returns the wizard configuration object for the given wizard name.
|
protected java.lang.String |
getWizardContainer(javax.faces.context.FacesContext context)
Retrieves the configured wizard container page
|
protected void |
handleBrowseDispatch(javax.faces.context.FacesContext context,
java.lang.String fromAction,
java.lang.String outcome) |
protected void |
handleDialogOpen(javax.faces.context.FacesContext context,
java.lang.String fromAction,
java.lang.String name)
Opens a dialog
|
protected void |
handleDialogOrWizardClose(javax.faces.context.FacesContext context,
java.lang.String fromAction,
java.lang.String outcome,
boolean dialog)
Closes the current dialog or wizard
|
protected void |
handleDispatch(javax.faces.context.FacesContext context,
java.lang.String fromAction,
java.lang.String outcome)
Processes any dispatching that may need to occur
|
void |
handleNavigation(javax.faces.context.FacesContext context,
java.lang.String fromAction,
java.lang.String outcome) |
protected void |
handleWizardOpen(javax.faces.context.FacesContext context,
java.lang.String fromAction,
java.lang.String name)
Opens a wizard
|
protected boolean |
isDialog(java.lang.String outcome)
Determines whether the given outcome is dialog related
|
protected boolean |
isDialogOrWizardClosing(java.lang.String outcome)
Determines whether the given outcome represents a dialog or wizard closing
|
protected boolean |
isWizard(java.lang.String outcome)
Determines whether the given outcome is wizard related
|
protected boolean |
isWizardStep(java.lang.String fromAction)
Determines whether the given fromAction represents a step in the wizard
i.e.
|
protected java.lang.String |
stripPrefix(java.lang.String outcome)
Removes the dialog or wizard prefix from the given outcome
|
public static final java.lang.String OUTCOME_SEPARATOR
public static final java.lang.String OUTCOME_BROWSE
public static final java.lang.String DIALOG_PREFIX
public static final java.lang.String WIZARD_PREFIX
public static final java.lang.String CLOSE_DIALOG_OUTCOME
public static final java.lang.String CLOSE_WIZARD_OUTCOME
public static final java.lang.String CLOSE_MULTIPLE_START
public static final java.lang.String CLOSE_MULTIPLE_END
public static final java.lang.String EXTERNAL_CONTAINER_SESSION
protected java.lang.String dialogContainer
protected java.lang.String wizardContainer
protected java.lang.String plainDialogContainer
protected java.lang.String plainWizardContainer
public AlfrescoNavigationHandler(javax.faces.application.NavigationHandler origHandler)
origHandler - The original navigation handlerpublic void handleNavigation(javax.faces.context.FacesContext context,
java.lang.String fromAction,
java.lang.String outcome)
handleNavigation in class javax.faces.application.NavigationHandlerNavigationHandler.handleNavigation(javax.faces.context.FacesContext, java.lang.String, java.lang.String)protected boolean isDialog(java.lang.String outcome)
outcome - The outcome to testprotected boolean isWizard(java.lang.String outcome)
outcome - The outcome to testprotected boolean isDialogOrWizardClosing(java.lang.String outcome)
outcome - The outcome to testprotected int getNumberToClose(java.lang.String outcome)
protected boolean isWizardStep(java.lang.String fromAction)
fromAction - The fromActionprotected java.lang.String stripPrefix(java.lang.String outcome)
outcome - The outcome to remove the prefix fromprotected java.lang.String getOutcomeOverride(java.lang.String outcome)
outcome - The current outcomeprotected DialogsConfigElement.DialogConfig getDialogConfig(javax.faces.context.FacesContext context, java.lang.String name, Node dispatchContext)
name - The name of dialog being launcheddispatchContext - The node being acted uponprotected WizardsConfigElement.WizardConfig getWizardConfig(javax.faces.context.FacesContext context, java.lang.String name, Node dispatchContext)
name - The name of wizard being launcheddispatchContext - The node being acted uponprotected java.lang.String getDialogContainer(javax.faces.context.FacesContext context)
context - FacesContextprotected java.lang.String getWizardContainer(javax.faces.context.FacesContext context)
context - FacesContextprotected Node getDispatchContextNode(javax.faces.context.FacesContext context)
protected void handleBrowseDispatch(javax.faces.context.FacesContext context,
java.lang.String fromAction,
java.lang.String outcome)
protected void handleDispatch(javax.faces.context.FacesContext context,
java.lang.String fromAction,
java.lang.String outcome)
context - Faces contextfromAction - The from actionoutcome - The outcomeprotected void handleDialogOpen(javax.faces.context.FacesContext context,
java.lang.String fromAction,
java.lang.String name)
context - FacesContextfromAction - The fromActionname - The name of the dialog to openprotected void handleWizardOpen(javax.faces.context.FacesContext context,
java.lang.String fromAction,
java.lang.String name)
context - FacesContextfromAction - The fromActionname - The name of the wizard to openprotected void handleDialogOrWizardClose(javax.faces.context.FacesContext context,
java.lang.String fromAction,
java.lang.String outcome,
boolean dialog)
context - FacesContextfromAction - The fromActionoutcome - The outcomedialog - true if a dialog is being closed, false if a wizard is being closedprotected java.lang.String getViewIdFromStackObject(javax.faces.context.FacesContext context,
java.lang.Object topOfStack)
context - FacesContexttopOfStack - The object retrieved from the view stackprotected void addCurrentViewToStack(javax.faces.context.FacesContext context)
context - FacesContextCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.