public class MockNodeManager extends AbstractNodeManager
| Modifier and Type | Class and Description |
|---|---|
protected class |
MockNodeManager.SystemField |
| Modifier and Type | Field and Description |
|---|---|
protected String |
context |
protected List<Function<?>> |
functions |
protected Map<String,Field> |
map |
protected String |
name |
protected int |
oType |
protected String |
parent |
protected MockCloud |
vcloud |
cloud, valuesGUI_PLURAL, GUI_SINGULAR, ORDER_CREATE, ORDER_EDIT, ORDER_LIST, ORDER_NONE, ORDER_SEARCHCLOUD_COMMITNODE_KEY| Constructor and Description |
|---|
MockNodeManager(MockCloud cloud,
NodeManagerDescription desc) |
| Modifier and Type | Method and Description |
|---|---|
Node |
createNode()
Creates a new node.
|
String |
getContext()
Get the security context of the current Node
|
protected Map<String,Field> |
getFieldTypes() |
Collection<Function<?>> |
getFunctions()
This default implementation is based on
Node.getNodeManager().Node.getFunctions(). |
String |
getName()
Returns the name of this node manager.
|
NodeManager |
getParent()
Retrieve the parent of this NodeManager (the Nodemanager that this nodemanager extends from)
|
Map<String,String> |
getProperties()
Retrieve a copy of the node manager's properties
|
boolean |
mayCreateNode()
Check if the current user may create a new node of this type.
|
void |
setContext(String c)
Sets the security context of this Node (AKA the 'owner' field)
|
protected void |
setDefaultsWithCloud(Node node) |
createFieldList, createNodeList, createQuery, createRelationList, edit, getAllowedRelations, getAllowedRelations, getAllowedRelations, getCloud, getDescendants, getDescription, getDescription, getField, getFields, getFields, getGUIName, getGUIName, getGUIName, getInfo, getInfo, getList, getList, getList, getList, getNodeManager, getProperty, getSize, getValueWithoutProcess, hasField, isNodeManager, setNodeManager, setSize, setValueWithoutChecks, toNodeManager, toStringcancel, checkWrite, commit, compareTo, countRelatedNodes, countRelatedNodes, countRelations, countRelations, createAlias, createFunctionValue, createParameters, createRelation, delete, delete, deleteAlias, deleteRelations, deleteRelations, equals, getAliases, getBooleanValue, getByteValue, getChanged, getDateValue, getDecimalValue, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunction, getFunctionMap, getFunctionValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNodeFunction, getNodeValue, getNumber, getObjectValue, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getRelations, getRelations, getStringValue, getValue, getXMLValue, getXMLValue, hashCode, hasRelations, isChanged, isChanged, isNew, isNull, isRelation, isRelationManager, mayChangeContext, mayDelete, mayWrite, processNull, setBooleanValue, setByteValue, setDateValue, setDecimalValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeValue, setObjectValue, setStringValue, setValue, setValueWithoutProcess, setXMLValue, toNodeNumber, toRelation, toRelationManager, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitcancel, commit, countRelatedNodes, countRelatedNodes, countRelations, countRelations, createAlias, createParameters, createRelation, delete, delete, deleteAlias, deleteRelations, deleteRelations, getAliases, getBooleanValue, getByteValue, getChanged, getDateValue, getDecimalValue, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunction, getFunctionValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNodeValue, getNumber, getObjectValue, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getRelations, getRelations, getStringValue, getValue, getXMLValue, getXMLValue, hasRelations, isChanged, isChanged, isNew, isNull, isRelation, isRelationManager, mayChangeContext, mayDelete, mayWrite, setBooleanValue, setByteValue, setDateValue, setDecimalValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeValue, setObjectValue, setStringValue, setValue, setValueWithoutProcess, setXMLValue, toRelation, toRelationManager, validatecompareToprotected final String name
protected final String parent
protected final MockCloud vcloud
protected final int oType
protected String context
public MockNodeManager(MockCloud cloud, NodeManagerDescription desc)
public String getName()
NodeManagergetName in interface NodeManagergetName in class AbstractNodeManagerprotected void setDefaultsWithCloud(Node node)
public Node createNode()
NodeManagercreateNode in interface NodeManagercreateNode in class AbstractNodeManagerNodepublic Map<String,String> getProperties()
NodeManagergetProperties in interface NodeManagergetProperties in class AbstractNodeManagerprotected Map<String,Field> getFieldTypes()
getFieldTypes in class AbstractNodeManagerpublic NodeManager getParent() throws NotFoundException
NodeManagergetParent in interface NodeManagergetParent in class AbstractNodeManagerNotFoundException - if no parent exists (i.e. this nodeManager is "object")public Collection<Function<?>> getFunctions()
AbstractNodeNode.getNodeManager().Node.getFunctions().getFunctions in interface NodegetFunctions in class AbstractNodeManagerFunction objects.public 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 boolean mayCreateNode()
NodeManagermayCreateNode in interface NodeManagermayCreateNode in class AbstractNodeManagerMMBase 1.9-SNAPSHOT - ${javadoctimestamp}