|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Describes an object in the cloud.
| 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 type)
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 relationManager)
Returns the number of relation nodes attached to this node that have a specific relation manager. |
void |
createAlias(java.lang.String alias)
Create an alias for this node. |
Relation |
createRelation(Node destinationNode,
RelationManager relationManager)
Adds a relation between this node and a specified node to the cloud. |
void |
delete()
Removes the Node. |
void |
delete(boolean deleteRelations)
Removes the Node. |
void |
deleteAlias(java.lang.String alias)
Delete an alias for this node. |
void |
deleteRelations()
Removes all relation nodes attached to this node. |
void |
deleteRelations(java.lang.String relationManager)
Removes all relation nodes with a certain relation manager that are attached to this node. |
java.util.List |
getAliases()
Returns all aliases for this node. |
boolean |
getBooleanValue(java.lang.String fieldname)
Returns the value of the specified field as a boolean. |
byte[] |
getByteValue(java.lang.String fieldname)
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 fieldname)
Returns the value of the specified field as a double. |
float |
getFloatValue(java.lang.String fieldname)
Returns the value of the specified field as a float. |
int |
getIntValue(java.lang.String fieldname)
Returns the value of the specified field as an int. |
long |
getLongValue(java.lang.String fieldname)
Returns the value of the specified field as a long. |
NodeManager |
getNodeManager()
Returns the node manager for this node. |
Node |
getNodeValue(java.lang.String fieldname)
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 nodeManager)
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 relationManager)
Returns all relation nodes attached to this node that have a specific relation manager. |
java.lang.String |
getStringValue(java.lang.String fieldname)
Returns the value of the specified field as a String. |
java.lang.Object |
getValue(java.lang.String fieldname)
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 fieldname,
byte[] value)
Sets the value of the specified field using a byte array. |
void |
setContext(java.lang.String context)
set the Context of the current Node |
void |
setDoubleValue(java.lang.String fieldname,
double value)
Sets the value of the specified field using a double. |
void |
setFloatValue(java.lang.String fieldname,
float value)
Sets the value of the specified field using a float. |
void |
setIntValue(java.lang.String fieldname,
int value)
Sets the value of the specified field using an int. |
void |
setLongValue(java.lang.String fieldname,
long value)
Sets the value of the specified field using a long. |
void |
setStringValue(java.lang.String fieldname,
java.lang.String value)
Sets the value of the specified field using a String. |
void |
setValue(java.lang.String fieldname,
java.lang.Object value)
Sets the value of the specified field using an object. |
java.lang.String |
toString()
Converts the node to a string |
| Method Detail |
public Cloud getCloud()
public NodeManager getNodeManager()
public int getNumber()
createAlias(String alias)
public void setValue(java.lang.String fieldname,
java.lang.Object value)
int can be set using an
Integer.
This change will not be visible to the cloud until the commit method is
called.fieldname - the name of the field to be updatedvalue - the new value for the given field
public void setIntValue(java.lang.String fieldname,
int value)
int.
This change will not be visible to the cloud until the commit method is
called.fieldname - the name of the field to be updatedvalue - the new value for the given field
public void setFloatValue(java.lang.String fieldname,
float value)
float.
This change will not be visible to the cloud until the commit method is
called.fieldname - the name of the field to be updatedvalue - the new value for the given field
public void setDoubleValue(java.lang.String fieldname,
double value)
double.
This change will not be visible to the cloud until the commit method is
called.fieldname - the name of the field to be updatedvalue - the new value for the given field
public void setByteValue(java.lang.String fieldname,
byte[] value)
byte array.
This change will not be visible to the cloud until the commit method is
called.fieldname - the name of the field to be updatedvalue - the new value for the given field
public void setLongValue(java.lang.String fieldname,
long value)
long.
This change will not be visible to the cloud until the commit method is
called.fieldname - the name of the field to be updatedvalue - the new value for the given field
public void setStringValue(java.lang.String fieldname,
java.lang.String value)
String.
This change will not be visible to the cloud until the commit method is
called.fieldname - the name of the field to be updatedvalue - the new value for the given fieldpublic java.lang.Object getValue(java.lang.String fieldname)
int is returned as an Integer.fieldname - the name of the field to be returnedpublic boolean getBooleanValue(java.lang.String fieldname)
boolean.fieldname - the name of the field to be returnedpublic Node getNodeValue(java.lang.String fieldname)
Node.
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.fieldname - 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 int getIntValue(java.lang.String fieldname)
int.fieldname - the name of the field to be returnedpublic float getFloatValue(java.lang.String fieldname)
float.fieldname - the name of the field to be returnedpublic long getLongValue(java.lang.String fieldname)
long.fieldname - the name of the field to be returnedpublic double getDoubleValue(java.lang.String fieldname)
double.fieldname - the name of the field to be returnedpublic byte[] getByteValue(java.lang.String fieldname)
byte array.fieldname - the name of the field to be returnedpublic java.lang.String getStringValue(java.lang.String fieldname)
String.fieldname - the name of the field to be returnedpublic void commit()
public void cancel()
public void delete()
public void delete(boolean deleteRelations)
deleteRelations - a boolean. If true, then first all
existing relations with this node will be removed.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean hasRelations()
true if the node has relationspublic void deleteRelations()
public void deleteRelations(java.lang.String relationManager)
relationManager - the name of the relation manager the removed
relation nodes should havepublic RelationList getRelations()
public RelationList getRelations(java.lang.String relationManager)
relationManager - the name of the relation manager the returned
relation nodes should havepublic int countRelations()
public int countRelations(java.lang.String relationManager)
public NodeList getRelatedNodes()
public NodeList getRelatedNodes(java.lang.String nodeManager)
nodeManager - the name of the node manager the returned nodes
should havepublic int countRelatedNodes(java.lang.String type)
nodeManager - the name of the node manager the counted nodes
should havepublic java.util.List getAliases()
public void createAlias(java.lang.String alias)
alias - the alias to be created for this nodeBridgeException - if the alias allready existspublic void deleteAlias(java.lang.String alias)
alias - the alias to be removed for this node
public Relation createRelation(Node destinationNode,
RelationManager relationManager)
destinationNode - 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 void setContext(java.lang.String context)
context - The context to which the current node should belong,BridgeException - Dunno?java.lang.SecurityException - When not the approperate rights (change context)public java.lang.String getContext()
BridgeException - Dunno?java.lang.SecurityException - When not the approperate rights (read rights)public StringList getPossibleContexts()
BridgeException - Dunno?java.lang.SecurityException - When not the approperate rights (read rights)public boolean mayWrite()
public boolean mayDelete()
public boolean mayLink()
public boolean mayChangeContext()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||