|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.faces.application.NavigationHandler
org.alfresco.web.app.AlfrescoNavigationHandler
public class AlfrescoNavigationHandler
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
AlfrescoNavigationHandler(javax.faces.application.NavigationHandler origHandler)
Default constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public AlfrescoNavigationHandler(javax.faces.application.NavigationHandler origHandler)
origHandler - The original navigation handler| Method Detail |
|---|
public 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 test
protected boolean isWizard(java.lang.String outcome)
outcome - The outcome to test
protected boolean isDialogOrWizardClosing(java.lang.String outcome)
outcome - The outcome to test
protected int getNumberToClose(java.lang.String outcome)
protected boolean isWizardStep(java.lang.String fromAction)
fromAction - The fromAction
protected java.lang.String stripPrefix(java.lang.String outcome)
outcome - The outcome to remove the prefix from
protected java.lang.String getOutcomeOverride(java.lang.String outcome)
outcome - The current outcome
protected 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 upon
protected 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 upon
protected java.lang.String getDialogContainer(javax.faces.context.FacesContext context)
context - FacesContext
protected java.lang.String getWizardContainer(javax.faces.context.FacesContext context)
context - FacesContext
protected 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 outcome
protected 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 open
protected 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 open
protected 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 closed
protected java.lang.String getViewIdFromStackObject(javax.faces.context.FacesContext context,
java.lang.Object topOfStack)
context - FacesContexttopOfStack - The object retrieved from the view stack
protected void addCurrentViewToStack(javax.faces.context.FacesContext context)
context - FacesContext
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||