public class MockNode extends MapNode
MockCloud. They represent data in memory of a MockCloudContext. An even simpler
Node mocker is MapNode. This one ia a bit more sophisticated because it does actually
implements commit() too.nodeManager, originals, sizes, values, wrapperCLOUD_COMMITNODE_KEY| Constructor and Description |
|---|
MockNode(Map<String,Object> map,
MockCloudContext cc,
NodeManager nm,
boolean isNew) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commit the node to the database.
|
String |
getContext()
Get the security context of the current Node
|
StringList |
getPossibleContexts()
Contacts the security implementation to find out to which other possible contexts the
context of this node may be set.
|
Object |
getValueWithoutProcess(String fieldName)
Like getObjectValue, but skips any processing that MMBase would normally perform on a field.
|
boolean |
isNew()
Whether this Node is new (not yet committed).
|
void |
setContext(String c)
Sets the security context of this Node (AKA the 'owner' field)
|
String |
toString()
Converts the node to a string
|
cancel, countRelatedNodes, countRelatedNodes, createRelation, createVirtualNodeManager, delete, deleteRelations, edit, getAliases, getCloud, getNodeManager, getNumber, getRelatedNodes, getRelations, getRelations, getSize, hasRelations, isChanged, isChanged, isNull, mayChangeContext, mayWrite, setNodeManager, setSize, setValueWithoutChecks, setValueWithoutProcesscheckWrite, compareTo, countRelations, countRelations, createAlias, createFunctionValue, createParameters, delete, deleteAlias, deleteRelations, equals, getBooleanValue, getByteValue, getChanged, getDateValue, getDecimalValue, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunction, getFunctionMap, getFunctions, getFunctionValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNodeFunction, getNodeValue, getObjectValue, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getStringValue, getValue, getXMLValue, getXMLValue, hashCode, isNodeManager, isRelation, isRelationManager, mayDelete, processNull, setBooleanValue, setByteValue, setDateValue, setDecimalValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeValue, setObjectValue, setStringValue, setValue, setXMLValue, toNodeManager, toNodeNumber, toRelation, toRelationManager, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitcountRelations, countRelations, createAlias, createParameters, delete, deleteAlias, deleteRelations, getBooleanValue, getByteValue, getChanged, getDateValue, getDecimalValue, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunction, getFunctions, getFunctionValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNodeValue, getObjectValue, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getStringValue, getValue, getXMLValue, getXMLValue, isNodeManager, isRelation, isRelationManager, mayDelete, setBooleanValue, setByteValue, setDateValue, setDecimalValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeValue, setObjectValue, setStringValue, setValue, setXMLValue, toNodeManager, toRelation, toRelationManager, validatecompareToMockNode(Map<String,Object> map, MockCloudContext cc, NodeManager nm, boolean isNew)
public void commit()
Nodepublic Object getValueWithoutProcess(String fieldName)
NodegetValueWithoutProcess in interface NodegetValueWithoutProcess in class MapNodefieldName - name of fieldpublic String getContext()
NodegetContext in interface NodegetContext in class AbstractNodepublic void setContext(String c)
NodesetContext in interface NodesetContext in class AbstractNodec - The security context to which this node should belong,public StringList getPossibleContexts()
NodegetPossibleContexts in interface NodegetPossibleContexts in class AbstractNodepublic boolean isNew()
NodeMMBase 1.9-SNAPSHOT - ${javadoctimestamp}