|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.navigation.Pages
@Scope(value=APPLICATION)
@BypassInterceptors
@Name(value="org.jboss.seam.navigation.pages")
@Install(precedence=0,
classDependencies="javax.faces.context.FacesContext")
@Startup
public class PagesHolds metadata for pages defined in pages.xml, including page actions and page descriptions.
| Constructor Summary | |
|---|---|
Pages()
|
|
| Method Summary | |
|---|---|
void |
create()
|
java.lang.String |
encodePageParameters(javax.faces.context.FacesContext facesContext,
java.lang.String url,
java.lang.String viewId)
Encode page parameters into a URL |
java.lang.String |
encodePageParameters(javax.faces.context.FacesContext facesContext,
java.lang.String url,
java.lang.String viewId,
java.util.Set<java.lang.String> overridden)
Encode page parameters into a URL |
java.lang.String |
encodeScheme(java.lang.String viewId,
javax.faces.context.FacesContext context,
java.lang.String url)
|
java.lang.Integer |
getConcurrentRequestTimeout(java.lang.String viewId)
Search for a defined concurrent request timeout, beginning with the most specific view id, then wildcarded view ids, and finally the global setting from Manager |
ConversationIdParameter |
getConversationIdParameter(java.lang.String conversationName)
|
static java.lang.String |
getCurrentBaseName()
|
static java.lang.String |
getCurrentViewId()
|
java.lang.String |
getDescription(java.lang.String viewId)
|
static java.util.Map<java.lang.String,javax.faces.application.FacesMessage.Severity> |
getFacesMessageValuesMap()
|
java.lang.Integer |
getHttpPort()
|
java.lang.Integer |
getHttpsPort()
|
java.util.Collection<java.lang.String> |
getKnownViewIds()
|
java.lang.String |
getLoginViewId()
The global setting for login-viewid. |
Expressions.ValueExpression<java.lang.String> |
getNoConversationViewId()
The global setting for no-conversation-viewid. |
java.lang.String |
getNoConversationViewId(java.lang.String viewId)
Search for a defined no-conversation-view-id, beginning with the most specific view id, then wildcarded view ids, and finally the global setting |
Page |
getPage(java.lang.String viewId)
Get the Page object for the given view id. |
protected java.util.List<Page> |
getPageStack(java.lang.String viewId)
Get the stack of Page objects, from least specific to most specific, that match the given view id. |
java.lang.String |
getRequestScheme(javax.faces.context.FacesContext facesContext)
|
java.util.List<java.util.ResourceBundle> |
getResourceBundles(java.lang.String viewId)
Build a list of page-scoped resource bundles, from most specific view id, to most general. |
java.lang.String[] |
getResources()
|
java.lang.String |
getScheme(java.lang.String viewId)
|
java.util.Map<java.lang.String,java.lang.Object> |
getStringValuesFromModel(javax.faces.context.FacesContext facesContext,
java.lang.String viewId,
java.util.Set<java.lang.String> overridden)
Get the values of any page parameters by evaluating the value bindings against the model and converting to String. |
java.util.Map<java.lang.String,java.lang.Object> |
getStringValuesFromPageContext(javax.faces.context.FacesContext facesContext)
Get the page parameter values that were passed in the original request from the PAGE context |
static java.lang.String |
getSuffix()
|
java.lang.Integer |
getTimeout(java.lang.String viewId)
Search for a defined conversation timeout, beginning with the most specific view id, then wildcarded view ids, and finally the global setting from Manager |
static java.lang.String |
getViewId(javax.faces.context.FacesContext facesContext)
|
static void |
handleOutcome(javax.faces.context.FacesContext facesContext,
java.lang.String outcome,
java.lang.String fromAction)
Call the JSF navigation handler |
boolean |
hasDescription(java.lang.String viewId)
|
void |
initialize()
|
void |
initialize(java.util.Set<FileDescriptor> fileNames)
|
static Pages |
instance()
|
static boolean |
isDebugPage()
|
boolean |
isLoginRedirectRequired(javax.faces.context.FacesContext facesContext)
Check if a login redirect is required for the current FacesContext |
boolean |
navigate(javax.faces.context.FacesContext context,
java.lang.String actionExpression,
java.lang.String actionOutcomeValue)
Run any navigation rule defined in pages.xml |
protected void |
noConversation()
|
protected void |
notLoggedIn()
|
void |
postRestore(javax.faces.context.FacesContext facesContext)
Check permissions and validate the existence of a conversation for pages which require a long-running conversation, starting with the most general view id, ending at the most specific. |
boolean |
preRender(javax.faces.context.FacesContext facesContext)
Call page actions, check permissions and validate the existence of a conversation for pages which require a long-running conversation, starting with the most general view id, ending at the most specific. |
void |
redirectToLoginView()
|
void |
redirectToNoConversationView()
|
java.lang.String |
renderDescription(java.lang.String viewId)
|
protected void |
selectDataModelRow(javax.faces.context.FacesContext facesContext)
Look for a DataModel row selection in the request parameters, and apply it to the DataModel. |
void |
setHttpPort(java.lang.Integer httpPort)
|
void |
setHttpsPort(java.lang.Integer httpsPort)
|
void |
setLoginViewId(java.lang.String loginViewId)
|
void |
setNoConversationViewId(Expressions.ValueExpression<java.lang.String> noConversationViewId)
|
void |
setResources(java.lang.String[] resources)
|
static java.lang.String |
toString(java.lang.Object returnValue)
|
void |
updateStringValuesInPageContextUsingModel(javax.faces.context.FacesContext facesContext)
Update the page parameter values stored in the PAGE context with the current values of the mapped attributes of the model |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pages()
| Method Detail |
|---|
@Create public void create()
public void initialize()
public void initialize(java.util.Set<FileDescriptor> fileNames)
public boolean navigate(javax.faces.context.FacesContext context,
java.lang.String actionExpression,
java.lang.String actionOutcomeValue)
actionExpression - the action method binding expressionactionOutcomeValue - the outcome of the action method
public Page getPage(java.lang.String viewId)
viewId - a JSF view idprotected java.util.List<Page> getPageStack(java.lang.String viewId)
viewId - a JSF view idpublic boolean preRender(javax.faces.context.FacesContext facesContext)
protected void selectDataModelRow(javax.faces.context.FacesContext facesContext)
public void postRestore(javax.faces.context.FacesContext facesContext)
public boolean isLoginRedirectRequired(javax.faces.context.FacesContext facesContext)
facesContext - The faces context containing the view ID
public java.lang.String getRequestScheme(javax.faces.context.FacesContext facesContext)
public java.lang.String encodeScheme(java.lang.String viewId,
javax.faces.context.FacesContext context,
java.lang.String url)
public void redirectToLoginView()
public void redirectToNoConversationView()
public java.lang.String getScheme(java.lang.String viewId)
public boolean hasDescription(java.lang.String viewId)
public java.lang.String getDescription(java.lang.String viewId)
public java.lang.String renderDescription(java.lang.String viewId)
protected void noConversation()
protected void notLoggedIn()
public static java.lang.String toString(java.lang.Object returnValue)
public static void handleOutcome(javax.faces.context.FacesContext facesContext,
java.lang.String outcome,
java.lang.String fromAction)
public static Pages instance()
public java.util.List<java.util.ResourceBundle> getResourceBundles(java.lang.String viewId)
public java.util.Map<java.lang.String,java.lang.Object> getStringValuesFromModel(javax.faces.context.FacesContext facesContext,
java.lang.String viewId,
java.util.Set<java.lang.String> overridden)
viewId - the JSF view idoverridden - excluded parameters
public java.util.Map<java.lang.String,java.lang.Object> getStringValuesFromPageContext(javax.faces.context.FacesContext facesContext)
public void updateStringValuesInPageContextUsingModel(javax.faces.context.FacesContext facesContext)
public java.lang.String encodePageParameters(javax.faces.context.FacesContext facesContext,
java.lang.String url,
java.lang.String viewId)
url - the base URLviewId - the JSF view id of the page
public java.lang.String encodePageParameters(javax.faces.context.FacesContext facesContext,
java.lang.String url,
java.lang.String viewId,
java.util.Set<java.lang.String> overridden)
url - the base URLviewId - the JSF view id of the pageoverridden - excluded parameters
public java.lang.String getNoConversationViewId(java.lang.String viewId)
public java.lang.Integer getTimeout(java.lang.String viewId)
public java.lang.Integer getConcurrentRequestTimeout(java.lang.String viewId)
public static java.lang.String getSuffix()
public ConversationIdParameter getConversationIdParameter(java.lang.String conversationName)
public static java.util.Map<java.lang.String,javax.faces.application.FacesMessage.Severity> getFacesMessageValuesMap()
public Expressions.ValueExpression<java.lang.String> getNoConversationViewId()
public void setNoConversationViewId(Expressions.ValueExpression<java.lang.String> noConversationViewId)
public java.lang.String getLoginViewId()
public void setLoginViewId(java.lang.String loginViewId)
public static java.lang.String getCurrentViewId()
public static java.lang.String getCurrentBaseName()
public static java.lang.String getViewId(javax.faces.context.FacesContext facesContext)
public java.lang.Integer getHttpPort()
public void setHttpPort(java.lang.Integer httpPort)
public java.lang.Integer getHttpsPort()
public void setHttpsPort(java.lang.Integer httpsPort)
public java.lang.String[] getResources()
public void setResources(java.lang.String[] resources)
public static boolean isDebugPage()
public java.util.Collection<java.lang.String> getKnownViewIds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||