|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.presentation.PageRendererUtil
public class PageRendererUtil
Contains utility methods to help the page render.
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 |
---|
public PageRendererUtil()
Method Detail |
---|
public static String getServiceInterfaceInstanceSafeModeHTML()
public static CharSequence renderServiceInterfaceInstance(String serviceInterfaceInstanceId, LayoutFilePage page)
serviceInterfaceInstanceId
- the service interface instance identifier.page
- the page that contains the service instance to be rendered.
public static Document getPageLayout(SessionConfig sessionConfig, PageWebResource pageWebResource, ITransaction transaction, int mode)
document
. Result is
cached during the request's live time.
public static List<String> getHolderServiceInterfaceInstanceIds(String holderId, Document layoutDocument)
holderId
- the holder identifier.
public static String getLayoutFilePath(PageWebResource pageWebResource)
null
if no
layout file is set.public static Collection<String> getPageLayoutHolderIds(Document pageLayout, PageWebResource pageWebResource)
Document
if the PageWebResource
has a layout file path,
else returns null.
pageLayout
- the page layout document.pageWebResource
- the page web resource.
Document
if the PageWebResource
has a layout file path,
else returns null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |