|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.core.impl.tree.SessionImpl
Implementation of Session.
Method Summary | |
Node |
addChild(Node parent,
java.lang.String key,
java.util.Map properties)
Add a child to the current node. |
void |
commit()
Make all the change to the tree permanent. |
Node |
createNode(FQN fqn,
java.util.Map properties)
Create a node and all its ancestors if they dont previously exist. |
Tree |
getTree()
Returns the manager this session belongs to. |
void |
removeChild(Node parent,
java.lang.String key)
Removes a child from a parent node. |
void |
removeProperty(Node node,
java.lang.String key)
Remove a property on the node. |
void |
rollback()
Rollback all changes made to the tree. |
void |
setProperty(Node node,
java.lang.String key,
java.lang.Object value)
Set a property on the node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public Tree getTree()
Session
public void rollback()
Session
public void commit()
Session
public void setProperty(Node node, java.lang.String key, java.lang.Object value)
Session
setProperty
in interface Session
node
- the target nodekey
- the property keyvalue
- the new property valuepublic void removeProperty(Node node, java.lang.String key)
Session
removeProperty
in interface Session
node
- the target nodekey
- the property keypublic Node addChild(Node parent, java.lang.String key, java.util.Map properties)
Session
parent
- the node that will be the parent of the newly created nodekey
- the node name for the parentproperties
- the initial properties contained in this node
public Node createNode(FQN fqn, java.util.Map properties) throws TreeException, java.lang.IllegalArgumentException, java.lang.IllegalStateException
Session
createNode
in interface Session
fqn
-
TreeException
- signals the operation failed
java.lang.IllegalArgumentException
- if one of the argument is null
java.lang.IllegalStateException
- if the session is already terminatedpublic void removeChild(Node parent, java.lang.String key)
Session
removeChild
in interface Session
parent
- the parent nodekey
- the child key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |