|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.mmbase.bridge.remote.implementation.RemoteNode_Impl
RemoteNode_Impl in a generated implementation of Node
This implementation is used by a local class when the MMCI is called remotely
| Constructor Summary | |
RemoteNode_Impl(RemoteNode originalObject)
|
|
| Method Summary | |
void |
cancel()
Cancel changes to a node This fails if the current node is not in edit mode. |
void |
commit()
Commit the node to the database. |
int |
countRelatedNodes(java.lang.String param1)
Returns the number of related nodes that have a specific node manager. |
int |
countRelations()
Returns the number of relations this node has with other nodes. |
int |
countRelations(java.lang.String param1)
Returns the number of relation nodes attached to this node that have a specific relation manager. |
void |
createAlias(java.lang.String param1)
Create an alias for this node. |
Relation |
createRelation(Node param1,
RelationManager param2)
Adds a relation between this node and a specified node to the cloud. |
void |
delete()
Removes the Node. |
void |
delete(boolean param1)
Removes the Node. |
void |
deleteAlias(java.lang.String param1)
Delete an alias for this node. |
void |
deleteRelations()
Removes all relation nodes attached to this node. |
void |
deleteRelations(java.lang.String param1)
Removes all relation nodes with a certain relation manager that are attached to this node. |
StringList |
getAliases()
Returns all aliases for this node. |
boolean |
getBooleanValue(java.lang.String param1)
Returns the value of the specified field as a boolean. |
byte[] |
getByteValue(java.lang.String param1)
Returns the value of the specified field as a byte array. |
Cloud |
getCloud()
Returns the cloud this node belongs to. |
java.lang.String |
getContext()
get the Context of the current Node |
double |
getDoubleValue(java.lang.String param1)
Returns the value of the specified field as a double. |
float |
getFloatValue(java.lang.String param1)
Returns the value of the specified field as a float. |
int |
getIntValue(java.lang.String param1)
Returns the value of the specified field as an int. |
long |
getLongValue(java.lang.String param1)
Returns the value of the specified field as a long. |
NodeManager |
getNodeManager()
Returns the node manager for this node. |
Node |
getNodeValue(java.lang.String param1)
Returns the value of the specified field as a Node. |
int |
getNumber()
Returns the unique number for this node. |
StringList |
getPossibleContexts()
get the Contextes which can be set to this specific node |
NodeList |
getRelatedNodes()
Returns all related nodes. |
NodeList |
getRelatedNodes(java.lang.String param1)
Returns all related nodes that have a specific node manager. |
RelationList |
getRelations()
Returns all relation nodes attached to this node. |
RelationList |
getRelations(java.lang.String param1)
Returns all relation nodes attached to this node that have a specific role |
RelationList |
getRelations(java.lang.String param1,
java.lang.String param2)
Returns all relation nodes attached to this node that have a specific role, or refer a node from a specific nodemanager |
java.lang.String |
getStringValue(java.lang.String param1)
Returns the value of the specified field as a String. |
java.lang.Object |
getValue(java.lang.String param1)
Returns the value of the specified field as an object. |
boolean |
hasRelations()
Checks whether this node has any relations. |
boolean |
mayChangeContext()
Check context-change rights on this node. |
boolean |
mayDelete()
Check delete rights on this node. |
boolean |
mayLink()
Check link rights on this node. |
boolean |
mayWrite()
Check write rights on this node. |
void |
setByteValue(java.lang.String param1,
byte[] param2)
Sets the value of the specified field using a byte array. |
void |
setContext(java.lang.String param1)
set the Context of the current Node |
void |
setDoubleValue(java.lang.String param1,
double param2)
Sets the value of the specified field using a double. |
void |
setFloatValue(java.lang.String param1,
float param2)
Sets the value of the specified field using a float. |
void |
setIntValue(java.lang.String param1,
int param2)
Sets the value of the specified field using an int. |
void |
setLongValue(java.lang.String param1,
long param2)
Sets the value of the specified field using a long. |
void |
setStringValue(java.lang.String param1,
java.lang.String param2)
Sets the value of the specified field using a String. |
void |
setValue(java.lang.String param1,
java.lang.Object param2)
Sets the value of the specified field using an object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mmbase.bridge.Node |
toString |
| Constructor Detail |
public RemoteNode_Impl(RemoteNode originalObject)
| Method Detail |
public java.lang.Object getValue(java.lang.String param1)
Nodeint is returned as an Integer.getValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be returnedpublic java.lang.String getContext()
NodegetContext in interface Nodeorg.mmbase.bridge.NodeBridgeException - Dunno?java.lang.SecurityException - When not the approperate rights (read rights)public void delete()
Nodedelete in interface Nodepublic void delete(boolean param1)
Nodedelete in interface Nodeorg.mmbase.bridge.NodedeleteRelations - a boolean. If true, then first all
existing relations with this node will be removed.
public void setValue(java.lang.String param1,
java.lang.Object param2)
Nodeint can be set using an
Integer.
This change will not be visible to the cloud until the commit method is
called.setValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be updatedvalue - the new value for the given fieldpublic Node getNodeValue(java.lang.String param1)
NodeNode.
If the value is not itself a Node, this call attempts to convert the
original field value to a Node, by trying to retrieve a Node using
the field value as a Node number or alias.null.
null lets the
Node return a reference to itself, regardless of the actual value of the
number field or status of the Node.getNodeValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be returnedCloud.getList(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, boolean)public NodeManager getNodeManager()
NodegetNodeManager in interface Nodepublic void commit()
Nodecommit in interface Nodepublic void cancel()
Nodecancel in interface Nodepublic Cloud getCloud()
NodegetCloud in interface Node
public Relation createRelation(Node param1,
RelationManager param2)
NodecreateRelation in interface Nodeorg.mmbase.bridge.NodedestinationNode - the node to which you want to relate this noderelationManager - the relation manager you want to useBridgeException - if the relation manager is not the right one
for this type of relationpublic RelationList getRelations()
NodegetRelations in interface Nodeorg.mmbase.bridge.Nodepublic RelationList getRelations(java.lang.String param1)
NodegetRelations in interface Nodeorg.mmbase.bridge.Noderole - the name of the role the returned
relation nodes should have
public RelationList getRelations(java.lang.String param1,
java.lang.String param2)
NodegetRelations in interface Nodeorg.mmbase.bridge.Noderole - the name of the role the returned
relation nodes should havenodeManager - the name of the nodemanager for the nodes the returned
relation nodes should have a relation topublic int getNumber()
NodegetNumber in interface Nodeorg.mmbase.bridge.NodeNode.createAlias(String alias)
public void setIntValue(java.lang.String param1,
int param2)
Nodeint.
This change will not be visible to the cloud until the commit method is
called.setIntValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be updatedvalue - the new value for the given field
public void setFloatValue(java.lang.String param1,
float param2)
Nodefloat.
This change will not be visible to the cloud until the commit method is
called.setFloatValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be updatedvalue - the new value for the given field
public void setDoubleValue(java.lang.String param1,
double param2)
Nodedouble.
This change will not be visible to the cloud until the commit method is
called.setDoubleValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be updatedvalue - the new value for the given field
public void setByteValue(java.lang.String param1,
byte[] param2)
Nodebyte array.
This change will not be visible to the cloud until the commit method is
called.setByteValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be updatedvalue - the new value for the given field
public void setLongValue(java.lang.String param1,
long param2)
Nodelong.
This change will not be visible to the cloud until the commit method is
called.setLongValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be updatedvalue - the new value for the given field
public void setStringValue(java.lang.String param1,
java.lang.String param2)
NodeString.
This change will not be visible to the cloud until the commit method is
called.setStringValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be updatedvalue - the new value for the given fieldpublic boolean getBooleanValue(java.lang.String param1)
Nodeboolean.getBooleanValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be returnedpublic int getIntValue(java.lang.String param1)
Nodeint.getIntValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be returnedpublic float getFloatValue(java.lang.String param1)
Nodefloat.getFloatValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be returnedpublic long getLongValue(java.lang.String param1)
Nodelong.getLongValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be returnedpublic double getDoubleValue(java.lang.String param1)
Nodedouble.getDoubleValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be returnedpublic byte[] getByteValue(java.lang.String param1)
Nodebyte array.getByteValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be returnedpublic java.lang.String getStringValue(java.lang.String param1)
NodeString.getStringValue in interface Nodeorg.mmbase.bridge.Nodefieldname - the name of the field to be returnedpublic boolean hasRelations()
NodehasRelations in interface Nodeorg.mmbase.bridge.Nodetrue if the node has relationspublic void deleteRelations()
NodedeleteRelations in interface Nodepublic void deleteRelations(java.lang.String param1)
NodedeleteRelations in interface Nodeorg.mmbase.bridge.NoderelationManager - the name of the relation manager the removed
relation nodes should havepublic int countRelations()
NodecountRelations in interface Nodeorg.mmbase.bridge.Nodepublic int countRelations(java.lang.String param1)
NodecountRelations in interface Nodeorg.mmbase.bridge.Nodepublic NodeList getRelatedNodes()
NodegetRelatedNodes in interface Nodeorg.mmbase.bridge.Nodepublic NodeList getRelatedNodes(java.lang.String param1)
NodegetRelatedNodes in interface Nodeorg.mmbase.bridge.NodenodeManager - the name of the node manager the returned nodes
should havepublic int countRelatedNodes(java.lang.String param1)
NodecountRelatedNodes in interface Nodeorg.mmbase.bridge.NodenodeManager - the name of the node manager the counted nodes
should havepublic StringList getAliases()
NodegetAliases in interface Nodeorg.mmbase.bridge.Nodepublic void createAlias(java.lang.String param1)
NodecreateAlias in interface Nodeorg.mmbase.bridge.Nodealias - the alias to be created for this nodeBridgeException - if the alias allready existspublic void deleteAlias(java.lang.String param1)
NodedeleteAlias in interface Nodeorg.mmbase.bridge.Nodealias - the alias to be removed for this nodepublic void setContext(java.lang.String param1)
NodesetContext in interface Nodeorg.mmbase.bridge.Nodecontext - The context to which the current node should belong,BridgeException - Dunno?java.lang.SecurityException - When not the approperate rights (change context)public StringList getPossibleContexts()
NodegetPossibleContexts in interface Nodeorg.mmbase.bridge.NodeBridgeException - Dunno?java.lang.SecurityException - When not the approperate rights (read rights)public boolean mayWrite()
NodemayWrite in interface Nodeorg.mmbase.bridge.Nodepublic boolean mayDelete()
NodemayDelete in interface Nodeorg.mmbase.bridge.Nodepublic boolean mayLink()
NodemayLink in interface Nodeorg.mmbase.bridge.Nodepublic boolean mayChangeContext()
NodemayChangeContext in interface Nodeorg.mmbase.bridge.Node
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||