|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.bridge.util.AbstractNode
org.mmbase.bridge.implementation.BasicNode
org.mmbase.bridge.implementation.BasicNodeManager
org.mmbase.bridge.implementation.BasicRelationManager
| Nested Class Summary |
| Nested classes inherited from class org.mmbase.bridge.implementation.BasicNodeManager |
BasicNodeManager.NodeAndId |
| Field Summary | |
MMObjectNode |
relDefNode
|
| Fields inherited from class org.mmbase.bridge.implementation.BasicNodeManager |
builder, fieldTypes |
| Fields inherited from class org.mmbase.bridge.implementation.BasicNode |
cloud, nodeManager, noderef |
| Fields inherited from class org.mmbase.bridge.util.AbstractNode |
ACTION_COMMIT, ACTION_CREATE, ACTION_DELETE, ACTION_EDIT |
| Fields inherited from interface org.mmbase.bridge.RelationManager |
BIDIRECTIONAL, UNIDIRECTIONAL |
| Fields inherited from interface org.mmbase.bridge.NodeManager |
GUI_PLURAL, GUI_SINGULAR, ORDER_CREATE, ORDER_EDIT, ORDER_LIST, ORDER_NONE, ORDER_SEARCH |
| Method Summary | |
protected BasicNode |
createBasicNode()
BasicNodeManager is garantueed to return BasicNode's. |
protected BasicRelation |
createBasicRelation()
BasicRelationManager is garantueed to create BasicRelations. |
Relation |
createRelation(Node sourceNode,
Node destinationNode)
Adds a relation from this type. |
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). |
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 |
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 |
RelationList |
getRelations(Node node)
Retrieves all the relations of this type from a given node. |
NodeManager |
getSourceManager()
Retrieves the NodeManager of node that can act as the source of a relation of this type. |
protected void |
initManager()
Initializes the NodeManager: determines the MMObjectBuilder from the passed node (reldef or typerel), and fills temporary variables to maintain status. |
boolean |
isRelationManager()
Determine whether this Node is a RelationManager. |
boolean |
mayCreateRelation(Node sourceNode,
Node destinationNode)
Check if the current user may create a new relation of this type between the specified nodes. |
protected void |
setNodeManager(MMObjectNode node)
|
RelationManager |
toRelationManager()
Returns this as a RelationManager. |
| Methods inherited from class org.mmbase.bridge.implementation.BasicNodeManager |
commit, createFieldList, createMMObjectNode, createNode, createNodeList, createQuery, createRelationList, delete, getAllowedRelations, getAllowedRelations, getAllowedRelations, getDescendants, getDescription, getDescription, getField, getFields, getFields, getFieldTypes, getFunctions, getGUIName, getGUIName, getGUIName, getInfo, getInfo, getList, getList, getList, getList, getName, getNodeFunction, getParent, getProperties, getProperty, hasField, isNodeManager, mayCreateNode, sync, toNodeManager |
| Methods inherited from class org.mmbase.bridge.implementation.BasicNode |
cancel, countRelatedNodes, countRelatedNodes, createAlias, createFunctionValue, createParameters, deleteAlias, deleteRelations, edit, finalize, getAliases, getBooleanValue, getByteSize, getByteSize, getByteValue, getChanged, getCloud, getContext, getDateValue, getDoubleValue, getFloatValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNode, getNodeManager, getNodeValue, getNumber, getPossibleContexts, getRelatedNodes, getRelations, getRelations, getSize, getStringValue, getValueWithoutProcess, getXMLValue, hashCode, hasRelations, init, invalidateNode, isChanged, isChanged, isNew, isNull, mayChangeContext, mayDelete, mayWrite, setContext, setNode, setSize, setValueWithoutChecks, toNodeNumber, toString |
| Methods inherited from class org.mmbase.bridge.util.AbstractNode |
compareTo, countRelations, countRelations, createRelation, delete, deleteRelations, equals, getFieldValue, getFieldValue, getFunction, getFunctionValue, getObjectValue, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getValue, getXMLValue, isRelation, processCommit, setBooleanValue, setByteValue, setDateValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeValue, setObjectValue, setStringValue, setValue, setValueWithoutProcess, setXMLValue, toRelation, validate |
| Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mmbase.bridge.RelationManager |
createRelation |
| Methods inherited from interface org.mmbase.bridge.NodeManager |
createFieldList, createNode, createNodeList, createQuery, createRelationList, getAllowedRelations, getAllowedRelations, getAllowedRelations, getCloud, getDescendants, getDescription, getDescription, getField, getFields, getFields, getGUIName, getGUIName, getGUIName, getInfo, getInfo, getList, getList, getList, getList, getName, getParent, getProperties, getProperty, hasField, mayCreateNode |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Field Detail |
public MMObjectNode relDefNode
| Method Detail |
public final boolean isRelationManager()
Node
isRelationManager in interface NodeisRelationManager in class AbstractNodepublic final RelationManager toRelationManager()
Node
toRelationManager in interface NodetoRelationManager in class AbstractNodeprotected void initManager()
initManager in class BasicNodeManagerprotected void setNodeManager(MMObjectNode node)
setNodeManager in class BasicNodeManagerpublic String getForwardRole()
RelationManager
getForwardRole in interface RelationManagerStringpublic String getReciprocalRole()
RelationManager
getReciprocalRole in interface RelationManagerStringpublic String getForwardGUIName()
RelationManager
getForwardGUIName in interface RelationManagerStringpublic String getReciprocalGUIName()
RelationManager
getReciprocalGUIName in interface RelationManagerStringpublic int getDirectionality()
RelationManager
getDirectionality in interface RelationManagerpublic NodeManager getSourceManager()
RelationManager
getSourceManager in interface RelationManagerpublic NodeManager getDestinationManager()
RelationManager
getDestinationManager in interface RelationManagerprotected final BasicNode createBasicNode()
BasicNodeManagerBasicNodeManager.createNode()
createBasicNode in class BasicNodeManagerprotected BasicRelation createBasicRelation()
createBasicNode().
public Relation createRelation(Node sourceNode,
Node destinationNode)
RelationManager
createRelation in interface RelationManagersourceNode - the node from which you want to relatedestinationNode - the node to which you want to relate
public RelationList getRelations(Node node)
RelationManager
getRelations in interface RelationManagernode - the node from which to give the relations
public boolean mayCreateRelation(Node sourceNode,
Node destinationNode)
RelationManager
mayCreateRelation in interface RelationManagersourceNode - source node of the relationdestinationNode - destination node of the relation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||