org.mmbase.bridge.implementation
Class VirtualNodeManager

java.lang.Object
  extended byorg.mmbase.bridge.implementation.BasicNode
      extended byorg.mmbase.bridge.implementation.BasicNodeManager
          extended byorg.mmbase.bridge.implementation.VirtualNodeManager
All Implemented Interfaces:
java.lang.Comparable, Node, NodeManager, SizeMeasurable

public class VirtualNodeManager
extends BasicNodeManager

This class represents a virtual node type information object. It has the same functionality as BasicNodeType, but it's nodes are vitrtual - that is, constructed based on the results of a search over multiple node managers. As such, it is not possible to search on this node type, nor to create new nodes. It's sole function is to provide a type definition for the results of a search.

Version:
$Id: VirtualNodeManager.java,v 1.19 2004/01/16 14:51:57 michiel Exp $
Author:
Rob Vermeulen, Pierre van Rooden

Field Summary
 
Fields inherited from class org.mmbase.bridge.implementation.BasicNodeManager
builder, fieldTypes, queryFields
 
Fields inherited from class org.mmbase.bridge.implementation.BasicNode
account, ACTION_COMMIT, ACTION_CREATE, ACTION_DELETE, ACTION_EDIT, cloud, isnew, mmb, nodeManager, noderef, temporaryNodeId
 
Fields inherited from interface org.mmbase.bridge.NodeManager
GUI_PLURAL, GUI_SINGULAR, ORDER_CREATE, ORDER_EDIT, ORDER_LIST, ORDER_NONE, ORDER_SEARCH
 
Method Summary
 Node createNode()
          Gets a new (initialized) node.
 NodeList getList(java.lang.String where, java.lang.String sorted, boolean direction)
          Search nodes of this type.
protected  void init()
          Initializes the node.
protected  void initManager()
          Initializes the NodeManager
 
Methods inherited from class org.mmbase.bridge.implementation.BasicNodeManager
commit, createQuery, delete, getAllowedRelations, getAllowedRelations, getAllowedRelations, getDescendants, getDescription, getDescription, getField, getFields, getFields, getGUIName, getGUIName, getGUIName, getInfo, getInfo, getList, getList, getList, getList, getName, getParent, getProperties, getProperty, getQueryFields, hasField, mayCreateNode
 
Methods inherited from class org.mmbase.bridge.implementation.BasicNode
cancel, compareTo, countRelatedNodes, countRelatedNodes, countRelations, countRelations, createAlias, createRelation, delete, deleteAlias, deleteRelations, deleteRelations, edit, equals, finalize, getAliases, getBooleanValue, getByteSize, getByteSize, getByteValue, getCloud, getContext, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunctionValue, getIntValue, getLongValue, getNode, getNodeManager, getNodeValue, getNumber, getObjectValue, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getRelations, getRelations, getStringValue, getValue, getXMLValue, getXMLValue, hashCode, hasRelations, invalidateNode, isNodeManager, isRelation, isRelationManager, mayChangeContext, mayDelete, mayWrite, setBooleanValue, setByteValue, setContext, setDoubleValue, setFloatValue, setIntValue, setLongValue, setNode, setNodeValue, setObjectValue, setStringValue, setValue, setValueWithoutChecks, setValueWithoutProcess, setXMLValue, toNodeManager, toRelation, toRelationManager, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mmbase.bridge.NodeManager
getCloud
 
Methods inherited from interface org.mmbase.bridge.Node
cancel, countRelatedNodes, countRelatedNodes, countRelations, countRelations, createAlias, createRelation, delete, deleteAlias, deleteRelations, deleteRelations, getAliases, getBooleanValue, getByteValue, getContext, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunctionValue, getIntValue, getLongValue, getNodeManager, getNodeValue, getNumber, getObjectValue, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getRelations, getRelations, getStringValue, getValue, getXMLValue, getXMLValue, hasRelations, isNodeManager, isRelation, isRelationManager, mayChangeContext, mayDelete, mayWrite, setBooleanValue, setByteValue, setContext, setDoubleValue, setFloatValue, setIntValue, setLongValue, setNodeValue, setObjectValue, setStringValue, setValue, setXMLValue, toNodeManager, toRelation, toRelationManager, toString
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

init

protected void init()
Initializes the node. Sets nodemanager to typedef, and creates a virtual node for this manager.

Overrides:
init in class BasicNode

initManager

protected void initManager()
Initializes the NodeManager

Overrides:
initManager in class BasicNodeManager

createNode

public Node createNode()
Gets a new (initialized) node. Throws an exception since this type is virtual, and creating nodes is not allowed.

Specified by:
createNode in interface NodeManager
Overrides:
createNode in class BasicNodeManager

getList

public NodeList getList(java.lang.String where,
                        java.lang.String sorted,
                        boolean direction)
Search nodes of this type. Throws an exception since this type is virtual, and searching is not allowed.



MMBase build 1.7.1.20041002