public class PageRendererUtil extends Object
Constructor and Description |
---|
PageRendererUtil() |
Modifier and Type | Method and Description |
---|---|
static List<String> |
getHolderServiceInterfaceInstanceIds(String holderId,
Document layoutDocument)
Returns the identifiers of the service interface instances in a holder.
|
static URL |
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(String serviceInterfaceInstanceId)
Returns the HTML used for a service interface instance rendering
in safe mode.
|
static CharSequence |
renderServiceInterfaceInstance(String baseServiceInterfaceInstanceId,
LayoutFilePage page)
Returns the HTML source code for the service interface instance instantiated on a page.
|
public static String getServiceInterfaceInstanceSafeModeHTML(String serviceInterfaceInstanceId) throws PortalException
PortalException
public static CharSequence renderServiceInterfaceInstance(String baseServiceInterfaceInstanceId, LayoutFilePage page)
baseServiceInterfaceInstanceId
- the service interface instance identifier (before replacements).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 URL 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.LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.