|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.portal.page.PageLayoutUtil
public abstract class PageLayoutUtil
Utility class for operating pages' layouts.
Nested Class Summary | |
---|---|
static interface |
PageLayoutUtil.IMappingResolver
Provides a method to resolve a service interface instance identifier into another one. |
Field Summary | |
---|---|
static java.lang.String |
WITHOUT_HOLDER_ID
Holder identifier used for interfaces without holder. |
Constructor Summary | |
---|---|
PageLayoutUtil()
|
Method Summary | |
---|---|
static org.w3c.dom.NodeList |
getInterfaceInstanceNodeList(org.w3c.dom.Document document)
Gets a node list of the service interface instances
contained into the given layout document . |
static java.util.List<org.w3c.dom.Node> |
getLayoutInterfaceInstanceNodes(org.w3c.dom.Document document)
Gets a list with the service interface instance nodes present into the given layout document . |
static java.util.List<java.lang.String> |
getLayoutServiceInstanceIds(org.w3c.dom.Document document)
Gets a list of the service interface instance
identifiers contained into the Document . |
static java.lang.String |
getNodeInterfaceInstanceId(org.w3c.dom.Node interfaceInstanceNode)
Gets the service interface instance identifier present into its Node . |
static void |
replaceInterfaceInstanceIds(org.w3c.dom.Document layout,
java.util.Map<java.lang.String,java.lang.String> mapping)
Replaces service interface instance identifiers of given layout using the Map to resolve the identifiers. |
static void |
replaceInterfaceInstanceIds(org.w3c.dom.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(org.w3c.dom.Node node,
java.lang.String serviceInterfaceInstanceId)
Sets the service interface instance identifier to the given service interface instance node . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String WITHOUT_HOLDER_ID
Constructor Detail |
---|
public PageLayoutUtil()
Method Detail |
---|
public static void replaceInterfaceInstanceIds(org.w3c.dom.Document layout, java.util.Map<java.lang.String,java.lang.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(org.w3c.dom.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 java.util.List<java.lang.String> getLayoutServiceInstanceIds(org.w3c.dom.Document document) throws PortalException
list
of the service interface instance
identifiers
contained into the Document
.
document
- the layout document.
PortalException
public static java.lang.String getNodeInterfaceInstanceId(org.w3c.dom.Node interfaceInstanceNode) throws PortalException
Node
.
interfaceInstanceNode
- the node from where it should be read the service interface
instance identifier.
PortalException
public static java.util.List<org.w3c.dom.Node> getLayoutInterfaceInstanceNodes(org.w3c.dom.Document document)
list
with the service interface instance nodes
present into the given layout document
.
document
- the layout document.
public static org.w3c.dom.NodeList getInterfaceInstanceNodeList(org.w3c.dom.Document document)
node list
of the service interface instances
contained into the given layout document
.
document
- the layout document.
public static void setServiceInterfaceInstanceIdInNode(org.w3c.dom.Node node, java.lang.String serviceInterfaceInstanceId)
service interface instance node
.
node
- the service interface instance node.serviceInterfaceInstanceId
- the service interface instance identifier ti be set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |