Class PageDefinition

java.lang.Object
org.apache.empire.jsf2.pages.PageDefinition

public class PageDefinition extends Object
  • 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 page
      pageBeanClass - the page bean class associated with this page
      parent - the parent page (if any). May be null
      pageBeanName - the page bean name. If null this will be calculated from the path
    • PageDefinition

      public PageDefinition(String path, Class<? extends Page> pageBeanClass, String pageBeanName)
      Constructs a page definition
      Parameters:
      path - the path of the view associated with this page
      pageBeanClass - the page bean class associated with this page
      pageBeanName - the page bean name. If null this will be calculated from the path
    • PageDefinition

      public PageDefinition(String path, Class<? extends Page> pageBeanClass, PageDefinition parent)
      Constructs a page definition
      Parameters:
      path - the path of the view associated with this page
      pageBeanClass - the page bean class associated with this page
      parent - the parent page (if any). May be null
    • PageDefinition

      public PageDefinition(String path, Class<? extends Page> pageBeanClass)
      Constructs a page definition
      Parameters:
      path - the path of the view associated with this page
      pageBeanClass - the page bean class associated with this page
  • Method Details

    • decodeActionParam

      public static String decodeActionParam(String param)
      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

      protected String getPageBeanNameFromPath(String path, String extension)
    • getPath

      public String getPath()
    • getFileExtension

      public String getFileExtension()
    • getPageBeanName

      public String getPageBeanName()
    • getPageBeanClass

      public Class<? extends Page> getPageBeanClass()
    • getParent

      public PageDefinition getParent()
    • getOutcome

      public PageOutcome getOutcome()
    • getOutcome

      public PageOutcome getOutcome(String action)
    • getRedirect

      public PageOutcome getRedirect()
    • getRedirect

      public PageOutcome getRedirect(String action)
    • getRedirectWithViewParams

      public PageOutcome getRedirectWithViewParams()
    • getRedirectWithViewParams

      public PageOutcome getRedirectWithViewParams(String action)
    • toString

      public String toString()
      Overrides:
      toString in class Object