public class RemoteRelationManager_Proxy extends MappedObject_Proxy<RemoteRelationManager> implements RelationManager
BIDIRECTIONAL, UNIDIRECTIONALGUI_PLURAL, GUI_SINGULAR, ORDER_CREATE, ORDER_EDIT, ORDER_LIST, ORDER_NONE, ORDER_SEARCHCLOUD_COMMITNODE_KEY| Constructor and Description |
|---|
RemoteRelationManager_Proxy(RemoteRelationManager remoteObject) |
| Modifier and Type | Method and Description |
|---|---|
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 |
compareTo(Node arg0) |
int |
countRelatedNodes(NodeManager arg0,
String arg1,
String arg2) |
int |
countRelatedNodes(String arg0)
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(String arg0)
Returns the number of relation nodes attached to this node that have a
specific relation manager.
|
void |
createAlias(String arg0)
Create an alias for this node.
|
FieldList |
createFieldList()
Returns a new, empty field list for this nodemanager
|
Node |
createNode()
Creates a new node.
|
NodeList |
createNodeList()
Returns a new, empty node list for this nodemanager
|
Parameters |
createParameters(String arg0)
Creates a parameter list for a function.
|
NodeQuery |
createQuery()
Creates a query for this NodeNanager.
|
Relation |
createRelation(Node arg0,
Node arg1)
Adds a relation from this type.
|
Relation |
createRelation(Node arg0,
RelationManager arg1)
This method from Node is redeclared here to prevent an ambiguous invocation of method.
|
RelationList |
createRelationList()
Returns a new, empty relation list for this nodemanager
|
void |
delete()
Removes the Node.
|
void |
delete(boolean arg0)
Removes the Node.
|
void |
deleteAlias(String arg0)
Delete an alias for this node.
|
void |
deleteRelations()
Removes all relation nodes attached to this node.
|
void |
deleteRelations(String arg0)
Removes all relation nodes with a certain relation manager that are
attached to this node.
|
StringList |
getAliases()
Returns all aliases for this node.
|
RelationManagerList |
getAllowedRelations()
Retrieve all relation managers that can be used to create relations for objects of this nodemanager.
|
RelationManagerList |
getAllowedRelations(NodeManager arg0,
String arg1,
String arg2)
Retrieve all relation managers that can be used to create relations for objects from this nodemanager,
to the specified manager, using the specified role and direction.
|
RelationManagerList |
getAllowedRelations(String arg0,
String arg1,
String arg2)
Retrieve all relation managers that can be used to create relations for objects from this nodemanager,
to the specified manager, using the specified role and direction.
|
boolean |
getBooleanValue(String arg0)
Returns the value of the specified field as a
boolean. |
byte[] |
getByteValue(String arg0)
Returns the value of the specified field as a
byte array. |
Set<String> |
getChanged()
A Set of Strings containing the names of all changed fields.
|
Cloud |
getCloud()
Returns the cloud to which this manager belongs.
|
String |
getContext()
Get the security context of the current Node
|
Date |
getDateValue(String arg0) |
BigDecimal |
getDecimalValue(String arg0) |
NodeManagerList |
getDescendants()
Retrieve a list of descendant nodemanagers (the nodemanagers that - possibly indirectly - extend from this nodemanager)
|
String |
getDescription()
Returns the description of this node manager.
|
String |
getDescription(Locale arg0)
Returns the description of this node manager in a specified language.
|
NodeManager |
getDestinationManager()
Retrieves the type of node that can act as the destination of a relation of this type.
|
int |
getDirectionality()
Retrieves the directionality for this type (the default assigned to a new relation).
|
double |
getDoubleValue(String arg0)
Returns the value of the specified field as a
double. |
Field |
getField(String arg0)
Returns the field with the specified name.
|
FieldList |
getFields()
Returns a list of all fields defined for this node manager.
|
FieldList |
getFields(int arg0)
Retrieve a subset of field types of this NodeManager, depending on a given order.
|
FieldValue |
getFieldValue(Field arg0)
Returns the value of the specified field as a
FieldValue object. |
FieldValue |
getFieldValue(String arg0)
Returns the value of the specified field as a
FieldValue object. |
float |
getFloatValue(String arg0)
Returns the value of the specified field as a
float. |
String |
getForwardGUIName()
Retrieves the gui name (prompt) of the role from source to destination
|
String |
getForwardRole()
Retrieves the role of the source to the destination
|
<R> Function<R> |
getFunction(String arg0)
Returns a Fuction object.
|
Collection<Function<?>> |
getFunctions()
Returns all the Function objects of this Node
|
FieldValue |
getFunctionValue(String arg0,
List<?> arg1)
Returns the value of the specified function on the node.
|
String |
getGUIName()
Returns the descriptive name of this node manager.
|
String |
getGUIName(int arg0)
Returns the descriptive name of this node manager.
|
String |
getGUIName(int arg0,
Locale arg1)
Returns the descriptive name of this node manager ina a specified language.
|
String |
getInfo(String arg0)
Retrieve info from a node manager based on a command string.
|
String |
getInfo(String arg0,
javax.servlet.ServletRequest arg1,
javax.servlet.ServletResponse arg2)
Retrieve info from a node manager based on a command string
Similar to the $MOD command in SCAN.
|
InputStream |
getInputStreamValue(String arg0)
Returns the value of the specified field as a
java.io.InputStream This is
especially useful for large byte-array fields. |
int |
getIntValue(String arg0)
Returns the value of the specified field as an
int. |
NodeList |
getList(NodeQuery arg0)
Executes a query and returns the result as nodes of this NodeManager (or of extensions)
|
NodeList |
getList(String arg0,
Map arg1)
Retrieve info (as a list of virtual nodes) from a node manager based on a command string.
|
NodeList |
getList(String arg0,
Map arg1,
javax.servlet.ServletRequest arg2,
javax.servlet.ServletResponse arg3)
Retrieve info from a node manager based on a command string
Similar to the LIST command in SCAN.
|
NodeList |
getList(String arg0,
String arg1,
String arg2)
Returns a list of nodes belonging to this node manager.
|
List<?> |
getListValue(String arg0) |
long |
getLongValue(String arg0)
Returns the value of the specified field as a
long. |
String |
getName()
Returns the name of this node manager.
|
NodeManager |
getNodeManager()
Returns the node manager for this node.
|
Node |
getNodeValue(String arg0)
Returns the value of the specified field as a
Node. |
int |
getNumber()
Returns the unique number for this node.
|
Object |
getObjectValue(String arg0)
Returns the field's value as an object.
|
NodeManager |
getParent()
Retrieve the parent of this NodeManager (the Nodemanager that this nodemanager extends from)
|
StringList |
getPossibleContexts()
Contacts the security implementation to find out to which other possible contexts the
context of this node may be set.
|
Map<String,String> |
getProperties()
Retrieve a copy of the node manager's properties
|
String |
getProperty(String arg0)
Retrieve a property of the node manager.
|
String |
getReciprocalGUIName()
Retrieves the gui name (prompt) of the role from destination to source
|
String |
getReciprocalRole()
Retrieves the role of the destination to the source
|
NodeList |
getRelatedNodes()
Returns all related nodes.
|
NodeList |
getRelatedNodes(NodeManager arg0)
Returns all related nodes that have a specific node manager.
|
NodeList |
getRelatedNodes(NodeManager arg0,
String arg1,
String arg2)
Returns all related nodes that have a specific node manager and role.
|
NodeList |
getRelatedNodes(String arg0)
Returns all related nodes that have a specific node manager.
|
NodeList |
getRelatedNodes(String arg0,
String arg1,
String arg2)
Returns all related nodes that have a specific node manager and role.
|
RelationList |
getRelations()
Returns all relation nodes attached to this node.
|
RelationList |
getRelations(Node arg0)
Retrieves all the relations of this type from a given node.
|
RelationList |
getRelations(String arg0)
Returns all relation nodes attached to this node that have a specific
role
|
RelationList |
getRelations(String arg0,
NodeManager arg1)
Returns all relation nodes attached to this node that have a specific
role, or refer a node from a specific nodemanager
|
RelationList |
getRelations(String arg0,
NodeManager arg1,
String arg2) |
RelationList |
getRelations(String arg0,
String arg1)
Returns all relation nodes attached to this node that have a specific
role, or refer a node from a specific nodemanager
|
long |
getSize(String arg0)
Returns the 'size' (e.g.
|
NodeManager |
getSourceManager()
Retrieves the NodeManager of node that can act as the source of a relation of this type.
|
String |
getStringValue(String arg0)
Returns the value of the specified field as a
String. |
Object |
getValue(String arg0)
Returns the value of the specified field as an object.
|
Object |
getValueWithoutProcess(String arg0)
Like getObjectValue, but skips any processing that MMBase would normally perform on a field.
|
RemoteRelationManager |
getWrappedObject() |
Document |
getXMLValue(String arg0)
Returns the value of the specified field as a
dom.Document
If the node value is not itself a Document, the method attempts to
attempts to convert the String value into an XML. |
Element |
getXMLValue(String arg0,
Document arg1)
Returns the value of the specified field as a
dom.Element
If the node value is not itself a Document, the method attempts to
attempts to convert the String value into an XML. |
boolean |
hasField(String arg0)
Tests whether the field with the specified name exists in this nodemanager.
|
boolean |
hasRelations()
Checks whether this node has any relations.
|
boolean |
isChanged()
Whether field values were changed since the last commit.
|
boolean |
isChanged(String arg0)
Whether a certain field's value was changed since the last commit.
|
boolean |
isNew()
Whether this Node is new (not yet committed).
|
boolean |
isNodeManager()
Determine whether this Node is a NodeManager.
|
boolean |
isNull(String arg0)
Whether the value for the specified field is
null. |
boolean |
isRelation()
Determine whether this Node is a Relation.
|
boolean |
isRelationManager()
Determine whether this Node is a RelationManager.
|
boolean |
mayChangeContext()
Check context-change rights on this node.
|
boolean |
mayCreateNode()
Check if the current user may create a new node of this type.
|
boolean |
mayCreateRelation(Node arg0,
Node arg1)
Check if the current user may create a new relation of this type between
the specified nodes.
|
boolean |
mayDelete()
Check delete rights on this node.
|
boolean |
mayWrite()
Check write rights on this node.
|
void |
setBooleanValue(String arg0,
boolean arg1)
Sets the value of the specified field using an
boolean. |
void |
setByteValue(String arg0,
byte[] arg1)
Sets the value of the specified field using a
byte array. |
void |
setContext(String arg0)
Sets the security context of this Node (AKA the 'owner' field)
|
void |
setDateValue(String arg0,
Date arg1)
Sets the value of the specified field using a
Date. |
void |
setDecimalValue(String arg0,
BigDecimal arg1)
Sets the value of the specified field using a
BigDecimal. |
void |
setDoubleValue(String arg0,
double arg1)
Sets the value of the specified field using a
double. |
void |
setFloatValue(String arg0,
float arg1)
Sets the value of the specified field using a
float. |
void |
setInputStreamValue(String arg0,
InputStream arg1,
long arg2)
Sets the value of the specified field using a
java.io.InputStream. |
void |
setIntValue(String arg0,
int arg1)
Sets the value of the specified field using an
int. |
void |
setListValue(String arg0,
List<?> arg1)
Sets the value of the specified field using a
List. |
void |
setLongValue(String arg0,
long arg1)
Sets the value of the specified field using a
long. |
void |
setNodeManager(NodeManager arg0)
Sets the node manager of this node.
|
void |
setNodeValue(String arg0,
Node arg1)
Sets the value of the specified field using an
Node. |
void |
setObjectValue(String arg0,
Object arg1)
Sets the value of the specified field using an object, but without dispatching to the right
type first.
|
void |
setStringValue(String arg0,
String arg1)
Sets the value of the specified field using a
String. |
void |
setValue(String arg0,
Object arg1)
Sets the value of the specified field using an object, but delegated to the right
set--Value depending on the type of the field.
|
void |
setValueWithoutProcess(String arg0,
Object arg1)
Like setValue, but skips any processing that MMBase would normally perform on a field.
|
void |
setXMLValue(String arg0,
Document arg1)
Set's the value of the specified field as a
dom.Element |
NodeManager |
toNodeManager()
Returns this as a NodeManager.
|
Relation |
toRelation()
Returns this as a Relation.
|
RelationManager |
toRelationManager()
Returns this as a RelationManager.
|
Collection<String> |
validate()
Validates a node by checking the values from it's fields against the constraints of
each field's datatype.
|
equals, getMapperCode, hashCode, toStringpublic RemoteRelationManager_Proxy(RemoteRelationManager remoteObject)
public String getForwardRole()
RelationManagergetForwardRole in interface RelationManagerStringpublic String getReciprocalRole()
RelationManagergetReciprocalRole in interface RelationManagerStringpublic String getForwardGUIName()
RelationManagergetForwardGUIName in interface RelationManagerStringpublic String getReciprocalGUIName()
RelationManagergetReciprocalGUIName in interface RelationManagerStringpublic NodeManager getSourceManager()
RelationManagergetSourceManager in interface RelationManagerpublic NodeManager getDestinationManager()
RelationManagergetDestinationManager in interface RelationManagerpublic Relation createRelation(Node arg0, Node arg1)
RelationManagercreateRelation in interface RelationManagerarg0 - the node from which you want to relatearg1 - the node to which you want to relatepublic Relation createRelation(Node arg0, RelationManager arg1)
RelationManagercreateRelation in interface NodecreateRelation in interface RelationManagerarg0 - source node of the relationarg1 - relation manager of the relationpublic RelationList getRelations(Node arg0)
RelationManagerNode.getRelations(String, NodeManager, String).getRelations in interface RelationManagerarg0 - the node from which to give the relationspublic boolean mayCreateRelation(Node arg0, Node arg1)
RelationManagermayCreateRelation in interface RelationManagerarg0 - source node of the relationarg1 - destination node of the relationpublic int getDirectionality()
RelationManagergetDirectionality in interface RelationManagerpublic Node createNode()
NodeManagercreateNode in interface NodeManagerNodepublic NodeManagerList getDescendants()
NodeManagergetDescendants in interface NodeManagerpublic NodeQuery createQuery()
NodeManagercreateQuery in interface NodeManagerNodeManager.getList(NodeQuery),
Cloud.createNodeQuery()public RelationManagerList getAllowedRelations(NodeManager arg0, String arg1, String arg2)
NodeManagergetAllowedRelations in interface NodeManagerarg0 - the nodemanger with which to make a relation, can be nullarg1 - the role with which to make a relation, can be nullarg2 - the search direction ("source", "destination", "both"), can be nullpublic RelationManagerList getAllowedRelations(String arg0, String arg1, String arg2)
NodeManagergetAllowedRelations in interface NodeManagerarg0 - the name of the nodemanger with which to make a relation, can be nullarg1 - the role with which to make a relation, can be nullarg2 - the search direction ("source", "destination", "both"), can be nullpublic RelationManagerList getAllowedRelations()
NodeManagergetAllowedRelations in interface NodeManagerpublic boolean mayCreateNode()
NodeManagermayCreateNode in interface NodeManagerpublic FieldList createFieldList()
NodeManagercreateFieldList in interface NodeManagerpublic NodeList createNodeList()
NodeManagercreateNodeList in interface NodeManagerpublic RelationList createRelationList()
NodeManagercreateRelationList in interface NodeManagerpublic String getGUIName()
NodeManagergetGUIName in interface NodeManagerpublic String getGUIName(int arg0)
NodeManagergetGUIName in interface NodeManagerarg0 - the plurality (number of objects) for which to return a description
(NodeManager.GUI_SINGULAR or NodeManager.GUI_PLURAL)public String getGUIName(int arg0, Locale arg1)
NodeManagergetGUIName in interface NodeManagerarg0 - the plurality (number of objects) for which to return a description
(NodeManager.GUI_SINGULAR or NodeManager.GUI_PLURAL)arg1 - the locale that determines the language for the GUI namepublic String getDescription()
NodeManagergetDescription in interface NodeManagerpublic String getDescription(Locale arg0)
NodeManagergetDescription in interface NodeManagerarg0 - the locale that determines the language for the descriptionpublic boolean hasField(String arg0)
NodeManagerhasField in interface NodeManagerarg0 - the name of the field to be returnedtrue if the field with the requested name existspublic Cloud getCloud()
NodeManagergetCloud in interface NodegetCloud in interface NodeManagerpublic NodeList getList(String arg0, Map arg1)
NodeManagergetList in interface NodeManagerarg0 - the info to obtain, i.e. "USER-OS".arg1 - a hashtable containing the named parameters of the list.public NodeList getList(String arg0, Map arg1, javax.servlet.ServletRequest arg2, javax.servlet.ServletResponse arg3)
NodeManagergetList in interface NodeManagerarg0 - the info to obtain, i.e. "USER-OS".arg1 - a hashtable containing the named parameters of the list.arg2 - the Request item to use for obtaining user information. For backward compatibility.arg3 - the Response item to use for redirecting users. For backward compatibility.public NodeList getList(NodeQuery arg0)
NodeManagergetList in interface NodeManagerarg0 - query to executepublic NodeList getList(String arg0, String arg1, String arg2)
NodeManager
"number = 100" (!=, <, >, <= and >= can also be used)
"name = 'admin'",
"email IS NULL" (indicating the email field is empty)
"email LIKE '%.org'" (indication the email should end with .org)
"number BETWEEN 99 AND 101"
"name IN ('admin', 'anonymous')"
The NOT operator can be used to get the opposite result like:
"NOT (number = 100)"
"NOT (name = 'admin')",
"email IS NOT NULL"
"email NOT LIKE '%.org'" (indication the email should not end with .org)
"number NOT BETWEEN 99 AND 101"
"name NOT IN ('admin', 'anonymous')"
Some special functions (not part of standard SQL, but most databases
support them) can be used like:
"LOWER(name) = 'admin'" (to also allow 'Admin' to be selected) "LENGTH(name) > 5" (to only select names longer then 5 characters)Constraints can be linked together using AND and OR:
"((number=100) OR (name='admin') AND email LIKE '%.org')"The single quote can be escaped using it twice for every single occurence:
"name='aaa''bbb'" (if we want to find the string aaa'bbb)For more info consult a SQL tutorial like Jim Hoffman's introduction to Structured Query Language.
getList in interface NodeManagerarg0 - Constraints to prevent nodes from being
included in the resulting list which would normally
by included or null if no constraints
should be applied .arg1 - A comma separated list of field names on which the
returned list should be sorted or null
if the order of the returned virtual nodes doesn't
matter.arg2 - A comma separated list of values indicating wether
to sort up (ascending) or down (descending) on the
corresponding field in the orderby
parameter or null if sorting on all
fields should be up.
The value DOWN (case insensitive) indicates
that sorting on the corresponding field should be
down, all other values (including the
empty value) indicate that sorting on the
corresponding field should be up.
If the number of values found in this parameter are
less than the number of fields in the
orderby parameter, all fields that
don't have a corresponding direction value are
sorted according to the last specified direction
value.public String getInfo(String arg0, javax.servlet.ServletRequest arg1, javax.servlet.ServletResponse arg2)
NodeManagergetInfo in interface NodeManagerarg0 - the info to obtain, i.e. "USER-OS".arg1 - the Request item to use for obtaining user information. For backward compatibility.arg2 - the Response item to use for redirecting users. For backward compatibility.public String getInfo(String arg0)
NodeManagergetInfo in interface NodeManagerarg0 - the info to obtain, i.e. "USER-OS".public String getProperty(String arg0)
NodeManagergetProperty in interface NodeManagerarg0 - the name of the propertypublic String getName()
NodeManagergetName in interface NodeManagerpublic FieldList getFields(int arg0)
NodeManagergetFields in interface NodeManagerarg0 - the order in which to list the fieldsFieldList object, which is a specialized List of Field objects.NodeManager.ORDER_NONE,
NodeManager.ORDER_CREATE,
NodeManager.ORDER_EDIT,
NodeManager.ORDER_LIST,
NodeManager.ORDER_SEARCHpublic FieldList getFields()
NodeManagergetFields in interface NodeManagerpublic Field getField(String arg0)
NodeManagergetField in interface NodeManagerarg0 - the name of the field to be returnedpublic NodeManager getParent()
NodeManagergetParent in interface NodeManagerpublic Map<String,String> getProperties()
NodeManagergetProperties in interface NodeManagerpublic Parameters createParameters(String arg0)
NodecreateParameters in interface Nodearg0 - name of the functionParameters object.public FieldValue getFunctionValue(String arg0, List<?> arg1)
NodegetFunctionValue in interface Nodearg0 - name of the functionarg1 - list with parameters for the fucntionpublic RelationList getRelations()
NodegetRelations in interface Nodepublic RelationList getRelations(String arg0, String arg1)
NodegetRelations in interface Nodearg0 - the name of the role the returned
relation nodes should havearg1 - the name of the nodemanager for the nodes the returned
relation nodes should have a relation topublic RelationList getRelations(String arg0, NodeManager arg1)
NodegetRelations in interface Nodearg0 - the name of the role the returned
relation nodes should havearg1 - the nodemanager for the nodes the returned
relation nodes should have a relation to (can be null)public RelationList getRelations(String arg0)
NodegetRelations in interface Nodearg0 - the name of the role the returned
relation nodes should havepublic RelationList getRelations(String arg0, NodeManager arg1, String arg2)
getRelations in interface Nodearg0 - forward role of a relationarg1 - node manager on the other side of the relationarg2 - the direction of the relationpublic NodeManager getNodeManager()
NodegetNodeManager in interface Nodepublic void setNodeManager(NodeManager arg0)
NodesetNodeManager in interface Nodepublic boolean isRelation()
NodeisRelation in interface Nodetrue if this Node is a Relation.public Relation toRelation()
NodetoRelation in interface NodeRelation objectpublic boolean isNodeManager()
NodeisNodeManager in interface Nodetrue if this Node is a NodeManager.public NodeManager toNodeManager()
NodetoNodeManager in interface NodeNodeManager objectpublic boolean isRelationManager()
NodeisRelationManager in interface Nodetrue if this Node is a RelationManager.public RelationManager toRelationManager()
NodetoRelationManager in interface NodeNodeManager objectpublic void setValueWithoutProcess(String arg0, Object arg1)
NodesetValueWithoutProcess in interface Nodearg0 - name of fieldarg1 - new value of the fieldpublic void setObjectValue(String arg0, Object arg1)
NodesetObjectValue in interface Nodearg0 - the name of the field to be updatedarg1 - the new value for the given fieldpublic void setBooleanValue(String arg0, boolean arg1)
Nodeboolean.
This change will not be visible to the cloud until the commit method is
called.setBooleanValue in interface Nodearg0 - the name of the field to be updatedarg1 - the new value for the given fieldpublic void setIntValue(String arg0, int arg1)
Nodeint.
This change will not be visible to the cloud until the commit method is
called.setIntValue in interface Nodearg0 - the name of the field to be updatedarg1 - the new value for the given fieldpublic void setFloatValue(String arg0, float arg1)
Nodefloat.
This change will not be visible to the cloud until the commit method is
called.setFloatValue in interface Nodearg0 - the name of the field to be updatedarg1 - the new value for the given fieldpublic void setDoubleValue(String arg0, double arg1)
Nodedouble.
This change will not be visible to the cloud until the commit method is
called.setDoubleValue in interface Nodearg0 - the name of the field to be updatedarg1 - the new value for the given fieldpublic void setByteValue(String arg0, byte[] arg1)
Nodebyte array.
This change will not be visible to the cloud until the commit method is
called.setByteValue in interface Nodearg0 - the name of the field to be updatedarg1 - the new value for the given fieldpublic void setInputStreamValue(String arg0, InputStream arg1, long arg2)
Nodejava.io.InputStream.setInputStreamValue in interface Nodearg0 - the name of the field to be updatedarg1 - the new value for the given fieldarg2 - size of input streampublic void setLongValue(String arg0, long arg1)
Nodelong.
This change will not be visible to the cloud until the commit method is
called.setLongValue in interface Nodearg0 - the name of the field to be updatedarg1 - the new value for the given fieldpublic void setStringValue(String arg0, String arg1)
NodeString.
This change will not be visible to the cloud until the commit method is
called.setStringValue in interface Nodearg0 - the name of the field to be updatedarg1 - the new value for the given fieldpublic void setDateValue(String arg0, Date arg1)
NodeDate.
This change will not be visible to the cloud until the commit method is
called.setDateValue in interface Nodearg0 - the name of the field to be updatedarg1 - the new value for the given fieldpublic void setDecimalValue(String arg0, BigDecimal arg1)
NodeBigDecimal.
This change will not be visible to the cloud until the commit method is
called.setDecimalValue in interface Nodearg0 - the name of the field to be updatedarg1 - the new value for the given fieldpublic void setListValue(String arg0, List<?> arg1)
NodeList.
This change will not be visible to the cloud until the commit method is
called.setListValue in interface Nodearg0 - the name of the field to be updatedarg1 - the new value for the given field
// not yet workingpublic Object getObjectValue(String arg0)
NodegetObjectValue in interface Nodearg0 - name of the fieldpublic Object getValueWithoutProcess(String arg0)
NodegetValueWithoutProcess in interface Nodearg0 - name of fieldpublic int getIntValue(String arg0)
Nodeint.
Numeric fields are simply converted. Double and float values may be truncated.
For Node values, the numeric key is returned.
Long values return -1 of the value is too large.
Boolean fields return 0 if false, and 1 if true.
String fields are parsed.
If a parsed string contains an error, ot the field value is not of a type that can be converted
(i.e. a byte array), this function returns -1getIntValue in interface Nodearg0 - the name of the field to be returnedpublic InputStream getInputStreamValue(String arg0)
Nodejava.io.InputStream This is
especially useful for large byte-array fields. By this you can avoid them to be completely
stored in memory.getInputStreamValue in interface Nodearg0 - the name of the fieldpublic String getStringValue(String arg0)
NodeString.
Byte arrays are converted to string using the default encoding (UTF8).
Node values return a string representation of their numeric key.
For other values the result is calling the toString() method on the actual object.getStringValue in interface Nodearg0 - the name of the field to be returnedpublic BigDecimal getDecimalValue(String arg0)
getDecimalValue in interface Nodearg0 - the name of the field to be returnedpublic List<?> getListValue(String arg0)
getListValue in interface Nodearg0 - the name of the field to be returnedpublic FieldValue getFieldValue(Field arg0)
NodeFieldValue object.getFieldValue in interface Nodearg0 - the Field object whose value to returnpublic FieldValue getFieldValue(String arg0)
NodeFieldValue object.getFieldValue in interface Nodearg0 - the name of the field whose value to returnpublic boolean isChanged(String arg0)
Nodepublic boolean isChanged()
Nodepublic Set<String> getChanged()
NodegetChanged in interface Nodepublic Element getXMLValue(String arg0, Document arg1)
Nodedom.Element
If the node value is not itself a Document, the method attempts to
attempts to convert the String value into an XML.
This method fails (throws a IllegalArgumentException) if the Field is not of type TYPE_XML.
If the value cannot be converted, this method returns nullgetXMLValue in interface Nodearg0 - the name of the field to be returnedarg1 - the DOM Document to which the Element is added
(as the document root element)nullpublic Document getXMLValue(String arg0)
Nodedom.Document
If the node value is not itself a Document, the method attempts to
attempts to convert the String value into an XML.
This included the empty string, but not the 'null' value.
If the value is null, this method returns nullgetXMLValue in interface Nodearg0 - the name of the field to be returnednullpublic void setXMLValue(String arg0, Document arg1)
Nodedom.ElementsetXMLValue in interface Nodearg0 - the name of the field to be returnedarg1 - the DOM Document to has to be set, if not correct doc-type,
system will try to convert it to the wanted type.public boolean hasRelations()
NodehasRelations in interface Nodetrue if the node has relationspublic void deleteRelations()
NodedeleteRelations in interface Nodepublic void deleteRelations(String arg0)
NodedeleteRelations in interface Nodearg0 - the name of the relation manager the removed
relation nodes should havepublic int countRelations()
NodecountRelations in interface Nodepublic int countRelations(String arg0)
NodecountRelations in interface Nodearg0 - relation managerpublic NodeList getRelatedNodes(String arg0, String arg1, String arg2)
NodegetRelatedNodes in interface Nodearg0 - the name of the node manager the returned nodes
should havearg1 - the role of the relationarg2 - the direction of the relationpublic NodeList getRelatedNodes(NodeManager arg0, String arg1, String arg2)
NodegetRelatedNodes in interface Nodearg0 - the node manager the returned nodes should havearg1 - the role of the relationarg2 - the direction of the relationpublic NodeList getRelatedNodes()
NodegetRelatedNodes in interface Nodepublic NodeList getRelatedNodes(NodeManager arg0)
NodegetRelatedNodes in interface Nodearg0 - the node manager the returned nodes should have, can be nullpublic NodeList getRelatedNodes(String arg0)
NodegetRelatedNodes in interface Nodearg0 - the name of the node manager the returned nodes
should havepublic int countRelatedNodes(NodeManager arg0, String arg1, String arg2)
countRelatedNodes in interface Nodearg0 - the node manager the nodes should havearg1 - the role of the relationarg2 - the direction of the relationpublic int countRelatedNodes(String arg0)
NodecountRelatedNodes in interface Nodearg0 - the name of the node manager the counted nodes
should havepublic void createAlias(String arg0)
NodecreateAlias in interface Nodearg0 - the alias to be created for this nodepublic void deleteAlias(String arg0)
NodedeleteAlias in interface Nodearg0 - the alias to be removed for this nodepublic StringList getPossibleContexts()
NodegetPossibleContexts in interface Nodepublic boolean mayDelete()
Nodepublic boolean mayChangeContext()
NodemayChangeContext in interface Nodepublic boolean getBooleanValue(String arg0)
Nodeboolean.
If the actual value is numeric, this call returns true
if the value is a positive, non-zero, value. In other words, values '0'
and '-1' are considered false.
If the value is a string, this call returns true if
the value is "true" or "yes" (case-insensitive).
In all other cases (including calling byte fields), false
is returned.getBooleanValue in interface Nodearg0 - the name of the field to be returnedpublic Date getDateValue(String arg0)
getDateValue in interface Nodearg0 - the name of the field to be returnedpublic byte[] getByteValue(String arg0)
Nodebyte array.
This function returns either the value of a byte field, or the byte value of a string
(converted using the default encoding, i.e. UTF8)
Other types of values return an empty byte-array.getByteValue in interface Nodearg0 - the name of the field to be returnedpublic double getDoubleValue(String arg0)
Nodedouble.
This function attempts to convert the value to a double.
Numeric fields are simply converted. Double may be truncated.
Boolean fields return 0.0 if false, and 1.0 if true.
String fields are parsed.
If a parsed string contains an error, ot the field value is not of a type that can be converted
(i.e. a byte array), this function returns -1.0.getDoubleValue in interface Nodearg0 - the name of the field to be returnedpublic float getFloatValue(String arg0)
Nodefloat.
This function attempts to convert the value to a float.
Numeric fields are simply converted.
Boolean fields return 0.0 if false, and 1.0 if true.
String fields are parsed.
If a parsed string contains an error, ot the field value is not of a type that can be converted
(i.e. a byte array), this function returns -1.0.getFloatValue in interface Nodearg0 - the name of the field to be returnedpublic long getLongValue(String arg0)
Nodelong.
This function attempts to convert the value to a long.
Numeric fields are simply converted. Double and float values may be truncated.
Boolean fields return 0 if false, and 1 if true.
String fields are parsed.
If a parsed string contains an error, ot the field value is not of a type that can be converted
(i.e. a byte array), this function returns -1getLongValue in interface Nodearg0 - the name of the field to be returnedpublic StringList getAliases()
NodegetAliases in interface Nodepublic Collection<Function<?>> getFunctions()
NodegetFunctions in interface NodeFunction objects.public <R> Function<R> getFunction(String arg0)
NodeFunction object.
You need to explixitly cast the result to this object, since not all bridge
implementations (i.e. the RMMCI) support this class.getFunction in interface Nodearg0 - name of the functionFunction object.public void setContext(String arg0)
NodesetContext in interface Nodearg0 - The security context to which this node should belong,public boolean isNew()
Nodepublic void commit()
Nodepublic boolean mayWrite()
Nodepublic Collection<String> validate()
NodeNode.commit() method, after commit processors are run.
Note that because commit processors may make necessary changes to field values, it is possible for
validate() to fail when used outside the commit process if the constraints are set too strict.public Node getNodeValue(String arg0)
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 Nodearg0 - the name of the field to be returnedCloud.getList(String, String, String, String, String, String, String, boolean)public void setNodeValue(String arg0, Node arg1)
NodeNode.
This change will not be visible to the cloud until the commit method is
called.setNodeValue in interface Nodearg0 - the name of the field to be updatedarg1 - the new value for the given fieldpublic void cancel()
Nodepublic Object getValue(String arg0)
Nodeint is returned as an Integer.
The object type may vary and is dependent on how data was stored in a field.
I.e. It may be possible for an Integer field to return it's value as a String
if it was stored that way in the first place.public void delete(boolean arg0)
Nodepublic void delete()
Nodepublic String getContext()
NodegetContext in interface Nodepublic void setValue(String arg0, Object arg1)
Nodeint can be set using an
Integer.
This change will not be visible to the cloud until the commit method is
called.public long getSize(String arg0)
Nodepublic boolean isNull(String arg0)
Nodenull. This avoids acquiring the
complete value if you only want to check if for emptiness.public int getNumber()
NodegetNumber in interface NodeNode.createAlias(String alias)public int compareTo(Node arg0)
compareTo in interface Comparable<Node>public RemoteRelationManager getWrappedObject()
getWrappedObject in interface MappedObjectgetWrappedObject in class MappedObject_Proxy<RemoteRelationManager>MMBase 1.9-SNAPSHOT - ${javadoctimestamp}