Package org.apache.empire.jsf2.pages
Class PageDefinition
java.lang.Object
org.apache.empire.jsf2.pages.PageDefinition
-
Constructor Summary
ConstructorsConstructorDescriptionPageDefinition(String path, Class<? extends Page> pageBeanClass) Constructs a page definitionPageDefinition(String path, Class<? extends Page> pageBeanClass, String pageBeanName) Constructs a page definitionPageDefinition(String path, Class<? extends Page> pageBeanClass, PageDefinition parent) Constructs a page definitionPageDefinition(String path, Class<? extends Page> pageBeanClass, PageDefinition parent, String pageBeanName) Constructs a page definition -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecodeActionParam(String param) Decodes a page action method from a MD5 code.getOutcome(String action) protected StringgetPageBeanNameFromPath(String path, String extension) getPath()getRedirect(String action) getRedirectWithViewParams(String action) toString()
-
Constructor Details
-
PageDefinition
public PageDefinition(String path, Class<? extends Page> pageBeanClass, PageDefinition parent, String pageBeanName) Constructs a page definition- Parameters:
path- the path of the view associated with this pagepageBeanClass- the page bean class associated with this pageparent- the parent page (if any). May be nullpageBeanName- the page bean name. If null this will be calculated from the path
-
PageDefinition
Constructs a page definition- Parameters:
path- the path of the view associated with this pagepageBeanClass- the page bean class associated with this pagepageBeanName- the page bean name. If null this will be calculated from the path
-
PageDefinition
Constructs a page definition- Parameters:
path- the path of the view associated with this pagepageBeanClass- the page bean class associated with this pageparent- the parent page (if any). May be null
-
PageDefinition
Constructs a page definition- Parameters:
path- the path of the view associated with this pagepageBeanClass- the page bean class associated with this page
-
-
Method Details
-
decodeActionParam
Decodes a page action method from a MD5 code.- Parameters:
param- the MD5 code for a page action method- Returns:
- the action method name
-
getPageBeanNameFromPath
-
getPath
-
getFileExtension
-
getPageBeanName
-
getPageBeanClass
-
getParent
-
getOutcome
-
getOutcome
-
getRedirect
-
getRedirect
-
getRedirectWithViewParams
-
getRedirectWithViewParams
-
toString
-