|
SAP NetWeaver 7.30 (SP02) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface INode
The INode interface describes nodes in the Portal DOM,
namely the
representation of the current portal hierarchy for a specific request.
Note: Instead of implementing this interface - if it is desired to implement
application specific nodes - it is strongly recommended to derive from
AbstractNode, which provides a default implementation.
| Field Summary |
|---|
| Fields inherited from interface com.sapportals.portal.prt.pom.IPOMConstants |
|---|
ABOUT_MODE, ABOUT_REQUEST_EVENT, ACTION_EVENT, AFTER_CONTENT_EVENT, BEFORE_CONTENT_EVENT, COMPONENT_EVENT, COMPONENT_NODE, DEFAULT_MODE, EDIT_ACKNOWLEDGE_EVENT, EDIT_MODE, EDIT_REQUEST_EVENT, HELP_MODE, HELP_REQUEST_EVENT, LOGON_EVENT, LOGON_MODE, LOGOUT_EVENT, ON_NODE_READY_EVENT, ON_NODE_REMOVE_EVENT, ON_POM_READY_EVENT, PORTAL_NODE, PREVIEW_MODE, PREVIEW_REQUEST_EVENT, REFRESH_MODE, REFRESH_REQUEST_EVENT, REQUEST_EVENT, TEST_MODE |
| Method Summary | |
|---|---|
INode |
addChildNode(INode node)
Adds a node as a children of this node. |
INodeList |
getChildNodes()
All the children that have been added to this node using addChildNode |
INodeList |
getChildNodesByName(String name)
Finds direct children by Name |
IPortalComponent |
getComponent()
the object associated
with the current node. |
INode |
getFirstChild()
The first child of this node |
INode |
getLastChild()
The last child of this node |
INode |
getNextSibling()
The next node in the children list of this node's parent |
INode |
getNextSiblingOfChild(INode childNode)
The next sibling of any specified child node of this node |
String |
getNodeMark()
Retrieves the mark set on this node. |
NodeMode |
getNodeMode()
Gets the mode to be used for the associated component during this request. |
String |
getNodeName()
All nodes have a name that is used to identify it within the Portal Object Model. |
NodeType |
getNodeType()
Each INode implementation belongs to a certain node type. |
INode |
getParentNode()
The parent node of this node. |
IPortalNode |
getPortalNode()
The Portal Node, in other words, the root node of the Portal Object Model |
INode |
getPreviousSibling()
The previous node in the children list of this node's parent |
INode |
getPreviousSiblingOfChild(INode childNode)
The previous sibling of any specified child node of this node |
Object |
getValue(String name)
Retrieves an object from this node according to its name. |
boolean |
hasChildNodes()
If this node has children |
void |
putValue(String name,
Object value)
Enables to register an object value associated with this node. |
void |
removeChildNode(INode node)
Removes a child node from this node. |
void |
removeValue(String name)
remove an object from this node |
void |
setNodeMark(String mark)
Sets a mark on this node. |
void |
setNodeMode(NodeMode mode)
Sets the mode to be used for the associated component during this request. |
void |
setParentNode(INode parent)
Sets the parent node of this node. |
void |
setPortalNode(IPortalNode node)
Sets the portal node of this node |
| Methods inherited from interface com.sapportals.portal.prt.util.IReleasable |
|---|
release |
| Method Detail |
|---|
NodeType getNodeType()
COMPONENT_NODE , LAYOUT_NODE , PORTAL_NODE ,
String getNodeName()
INodeList getChildNodes()
addChildNode
INode getFirstChild()
INode getLastChild()
INode getNextSibling()
INode getPreviousSibling()
INode getParentNode()
IPortalNode).
void setParentNode(INode parent)
parent - The node to set as parent of this nodeIPortalNode getPortalNode()
void setPortalNode(IPortalNode node)
node - the portal node of this POM boolean hasChildNodes()
INodeList getChildNodesByName(String name)
name - name to search chidren for
INode getNextSiblingOfChild(INode childNode)
childNode - the child node reference
INode getPreviousSiblingOfChild(INode childNode)
childNode - a node reference
INode addChildNode(INode node)
throws PortalOMException
EventType.ON_NODE_READY_EVENT to the child
node.EventType.ON_POM_READY_EVENT for the child
node.
node - the node to add as a child
PortalOMException - If the child node is null or it already
belong to another node
void removeChildNode(INode node)
throws PortalOMException
node - The child node to remove
PortalOMException - if an error occursIPortalComponent getComponent()
IPortalComponent object associated
with the current node.
IPortalComponent object associated with the
current node.void setNodeMode(NodeMode mode)
DEFAULT_MODE, PREVIEW_MODE,
EDIT_MODE,...
Setting of this property can have an effect on the type of request to be
handled by the associated Portal Component
mode - NodeMode getNodeMode()
DEFAULT_MODE temporarily until the node
is part of the POM (addChildNode is called with this node)
void putValue(String name,
Object value)
name - An identifier for the value put in this nodevalue - Object getValue(String name)
putValue method
name - An identifier of the object
null if not present.void removeValue(String name)
name - An identifier of the objectvoid setNodeMark(String mark)
IPortalComponentRequest.createComponentURL(com.sapportals.portal.prt.pom.INode, com.sapportals.portal.prt.event.IPortalRequestEvent).
In order to keep generated urls short you should use the mark up mechanisms
carefully.
mark - The mark to be put on this nodeString getNodeMark()
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
|
SAP NetWeaver 7.30 (SP02) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||