com.googlecode.fascinator.portal.guitoolkit
Class GUIDisplay

java.lang.Object
  extended by com.googlecode.fascinator.portal.guitoolkit.GUIDisplay

public class GUIDisplay
extends Object

Displays arbitrary content in the portal.

Author:
Greg Pendlebury

Constructor Summary
GUIDisplay(JsonSimpleConfig config, DynamicPageService renderer)
          Constructor.
 
Method Summary
 String renderTemplate(String portalId, String template, FormData formData, JsonSessionState sessionState)
          Render the template requested and return the contents.
 String renderTemplate(String portalId, String template, FormData formData, JsonSessionState sessionState, boolean useLayout)
          Render the template requested and return the contents.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIDisplay

public GUIDisplay(JsonSimpleConfig config,
                  DynamicPageService renderer)
Constructor. Access to system configuration and a page renderer is required

Parameters:
config - : System configuration
renderer - : The page service to use for rendering
Method Detail

renderTemplate

public String renderTemplate(String portalId,
                             String template,
                             FormData formData,
                             JsonSessionState sessionState)
Render the template requested and return the contents. Will never render the content with branding/layout.

Parameters:
portalId - : ID of the portal the template should be found in
template - : The template required to be rendered
formData - : The form data to be accessible during the render
sessionState - : The session data to be accessible during the render
Returns:
String : The page content

renderTemplate

public String renderTemplate(String portalId,
                             String template,
                             FormData formData,
                             JsonSessionState sessionState,
                             boolean useLayout)
Render the template requested and return the contents.

Parameters:
portalId - : ID of the portal the template should be found in
template - : The template required to be rendered
formData - : The form data to be accessible during the render
sessionState - : The session data to be accessible during the render
useLayout - : Flag to indicate if the content should be wrapped in page layout
Returns:
String : The page content


Copyright © 2009-2012. All Rights Reserved.