org.mmbase.bridge.implementation
Class VirtualNodeManager

java.lang.Object
  |
  +--org.mmbase.bridge.implementation.BasicNode
        |
        +--org.mmbase.bridge.implementation.BasicNodeManager
              |
              +--org.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.12.2.1 2002/11/18 12:28:30 pierre Exp $
Author:
Rob Vermeulen, Pierre van Rooden

Fields inherited from class org.mmbase.bridge.implementation.BasicNodeManager
builder, fieldTypes
 
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
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, delete, getAllowedRelations, getAllowedRelations, getAllowedRelations, getDescription, getField, getFields, getFields, getGUIName, getGUIName, getInfo, getInfo, getList, getList, getList, getName, getParent, hasField, mayCreateNode
 
Methods inherited from class org.mmbase.bridge.implementation.BasicNode
_setValue, cancel, compareTo, 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, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getRelations, getStringValue, getValue, getXMLValue, getXMLValue, hashCode, hasRelations, invalidateNode, isNodeManager, isRelation, isRelationManager, mayChangeContext, mayDelete, mayLink, mayWrite, setBooleanValue, setByteValue, setContext, setDoubleValue, setFloatValue, setIntValue, setLongValue, setNode, setNodeValue, setStringValue, setValue, 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, countRelations, countRelations, createAlias, createRelation, delete, deleteAlias, deleteRelations, deleteRelations, getAliases, getBooleanValue, getByteValue, getContext, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunctionValue, getIntValue, getLongValue, getNodeManager, getNodeValue, getNumber, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getRelations, getStringValue, getValue, getXMLValue, getXMLValue, hasRelations, isNodeManager, isRelation, isRelationManager, mayChangeContext, mayDelete, mayLink, mayWrite, setBooleanValue, setByteValue, setContext, setDoubleValue, setFloatValue, setIntValue, setLongValue, setNodeValue, 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.
Overrides:
createNode in class BasicNodeManager
Following copied from interface: org.mmbase.bridge.NodeManager
Returns:
the new Node

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.6.5.20030923