|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.portal.presentation.PageRendererUtil
public class PageRendererUtil
Contains utility methods to help the page render.
Constructor Summary | |
---|---|
PageRendererUtil()
|
Method Summary | |
---|---|
static java.util.List<java.lang.String> |
getHolderServiceInterfaceInstanceIds(java.lang.String holderId,
org.w3c.dom.Document layoutDocument)
Returns the identifiers of the service interface instances in a holder. |
static java.lang.String |
getLayoutFilePath(PageWebResource pageWebResource)
Returns the path to the layout file. |
static org.w3c.dom.Document |
getPageLayout(SessionConfig sessionConfig,
PageWebResource pageWebResource,
ITransaction transaction,
int mode)
Returns current page's layout document . |
static java.util.Collection<java.lang.String> |
getPageLayoutHolderIds(org.w3c.dom.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 java.lang.String |
getServiceInterfaceInstanceSafeModeHTML()
Returns the HTML used for a service interface instance rendering in safe mode. |
static java.lang.CharSequence |
renderServiceInterfaceInstance(java.lang.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 java.lang.String getServiceInterfaceInstanceSafeModeHTML()
public static java.lang.CharSequence renderServiceInterfaceInstance(java.lang.String serviceInterfaceInstanceId, LayoutFilePage page)
serviceInterfaceInstanceId
- the service interface instance identifier.page
- the page that contains the service instance to be rendered.
public static org.w3c.dom.Document getPageLayout(SessionConfig sessionConfig, PageWebResource pageWebResource, ITransaction transaction, int mode)
document
. Result is
cached during the request's live time.
public static java.util.List<java.lang.String> getHolderServiceInterfaceInstanceIds(java.lang.String holderId, org.w3c.dom.Document layoutDocument)
holderId
- the holder identifier.
public static java.lang.String getLayoutFilePath(PageWebResource pageWebResource)
null
if no
layout file is set.public static java.util.Collection<java.lang.String> getPageLayoutHolderIds(org.w3c.dom.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 |