public abstract class PageLayoutUtil extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
PageLayoutUtil.IMappingResolver
Provides a method to resolve a service interface instance identifier into
another one.
|
Modifier and Type | Field and Description |
---|---|
static String |
WITHOUT_HOLDER_ID
Holder identifier used for interfaces without holder.
|
Constructor and Description |
---|
PageLayoutUtil() |
Modifier and Type | Method and Description |
---|---|
static NodeList |
getInterfaceInstanceNodeList(Document document)
|
static List<Node> |
getLayoutInterfaceInstanceNodes(Document document)
|
static List<String> |
getLayoutServiceInstanceIds(Document document)
|
static String |
getNodeInterfaceInstanceId(Node interfaceInstanceNode)
Gets the service interface instance identifier present into its
Node . |
static void |
replaceInterfaceInstanceIds(Document layout,
Map<String,String> mapping)
|
static void |
replaceInterfaceInstanceIds(Document layoutDocument,
PageLayoutUtil.IMappingResolver resolver)
Replaces service interface instance identifiers of given
layout using the given PageLayoutUtil.IMappingResolver to resolve the
identifiers. |
static void |
setServiceInterfaceInstanceIdInNode(Node node,
String serviceInterfaceInstanceId)
Sets the service interface instance identifier to the given
service interface instance node . |
public static final String WITHOUT_HOLDER_ID
public static void replaceInterfaceInstanceIds(Document layout, Map<String,String> mapping) throws PortalException
layout
using the Map
to resolve the identifiers.layout
- the layout to be altered.mapping
- the mapping used to resolve the service interface instance
identifiers.PortalException
public static void replaceInterfaceInstanceIds(Document layoutDocument, PageLayoutUtil.IMappingResolver resolver) throws PortalException
layout
using the given PageLayoutUtil.IMappingResolver
to resolve the
identifiers.layoutDocument
- the layout to be altered.resolver
- the resolver that will manage interface instance identifiers
resolving.PortalException
public static List<String> getLayoutServiceInstanceIds(Document document) throws PortalException
document
- the layout document.PortalException
public static String getNodeInterfaceInstanceId(Node interfaceInstanceNode) throws PortalException
Node
.interfaceInstanceNode
- the node from where it should be read the service interface
instance identifier.PortalException
public static List<Node> getLayoutInterfaceInstanceNodes(Document document)
document
- the layout document.public static NodeList getInterfaceInstanceNodeList(Document document)
document
- the layout document.public static void setServiceInterfaceInstanceIdInNode(Node node, String serviceInterfaceInstanceId)
service interface instance node
.node
- the service interface instance node.serviceInterfaceInstanceId
- the service interface instance identifier ti be set.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.