lumis.portal.presentation
Class PageRendererUtil

Package class diagram package PageRendererUtil
java.lang.Object
  extended by lumis.portal.presentation.PageRendererUtil

public class PageRendererUtil
extends Object

Contains utility methods to help the page render.

Since:
5.6.0

Constructor Summary
PageRendererUtil()
           
 
Method Summary
static List<String> getHolderServiceInterfaceInstanceIds(String holderId, Document layoutDocument)
          Returns the identifiers of the service interface instances in a holder.
static String getLayoutFilePath(PageWebResource pageWebResource)
          Returns the path to the layout file.
static Document getPageLayout(SessionConfig sessionConfig, PageWebResource pageWebResource, ITransaction transaction, int mode)
          Returns current page's layout document.
static Collection<String> getPageLayoutHolderIds(Document pageLayout, PageWebResource pageWebResource)
          Returns a collection of holder ids for the given page layout Document if the PageWebResource has a layout file path, else returns null.
static String getServiceInterfaceInstanceSafeModeHTML()
          Returns the HTML used for a service interface instance rendering in safe mode.
static CharSequence renderServiceInterfaceInstance(String serviceInterfaceInstanceId, LayoutFilePage page)
          Returns the HTML source code for the service interface instance instantiated on a page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageRendererUtil

public PageRendererUtil()
Method Detail

getServiceInterfaceInstanceSafeModeHTML

public static String getServiceInterfaceInstanceSafeModeHTML()
Returns the HTML used for a service interface instance rendering in safe mode.

Returns:
the HTML code.
Since:
5.6.0

renderServiceInterfaceInstance

public static CharSequence renderServiceInterfaceInstance(String serviceInterfaceInstanceId,
                                                          LayoutFilePage page)
Returns the HTML source code for the service interface instance instantiated on a page.

Parameters:
serviceInterfaceInstanceId - the service interface instance identifier.
page - the page that contains the service instance to be rendered.
Returns:
the HTML source code for the service interface instance instantiated on a page.
Since:
6.0.0

getPageLayout

public static Document getPageLayout(SessionConfig sessionConfig,
                                     PageWebResource pageWebResource,
                                     ITransaction transaction,
                                     int mode)
Returns current page's layout document. Result is cached during the request's live time.

Returns:
current page's layout.
Since:
6.0.0

getHolderServiceInterfaceInstanceIds

public static List<String> getHolderServiceInterfaceInstanceIds(String holderId,
                                                                Document layoutDocument)
Returns the identifiers of the service interface instances in a holder.

Parameters:
holderId - the holder identifier.
Returns:
the service interface instance identifiers, ordered according to their place in the holder.
Since:
6.0.0

getLayoutFilePath

public static String getLayoutFilePath(PageWebResource pageWebResource)
Returns the path to the layout file.

Returns:
the path to the layout file, or null if no layout file is set.
Since:
6.0.0

getPageLayoutHolderIds

public static Collection<String> getPageLayoutHolderIds(Document pageLayout,
                                                        PageWebResource pageWebResource)
Returns a collection of holder ids for the given page layout Document if the PageWebResource has a layout file path, else returns null.

Parameters:
pageLayout - the page layout document.
pageWebResource - the page web resource.
Returns:
A collection of holder ids for the given page layout Document if the PageWebResource has a layout file path, else returns null.
Since:
6.0.0


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.