|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.bridge.implementation.BasicNode
org.mmbase.bridge.implementation.BasicNodeManager
org.mmbase.bridge.implementation.BasicRelationManager
| Field Summary | |
MMObjectNode |
relDefNode
|
| 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.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 | |
Node |
createNode()
Creates a new node. |
Relation |
createRelation(Node sourceNode,
Node destinationNode)
Adds a relation from this type. |
Relation |
createRelation(Node sourceNode,
RelationManager relationManager)
This method from Node is redeclared here to prevent an ambiguous invocation of method. |
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). |
java.lang.String |
getForwardGUIName()
Retrieves the gui name (prompt) of the role from source to destination |
java.lang.String |
getForwardRole()
Retrieves the role of the source to the destination |
java.lang.String |
getReciprocalGUIName()
Retrieves the gui name (prompt) of the role from destination to source |
java.lang.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 fillls temporary variables to maintain status. |
boolean |
mayCreateRelation(Node sourceNode,
Node destinationNode)
Check if the current user may create a new relation of this type between the specified nodes. |
| 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 java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mmbase.bridge.NodeManager |
createQuery, 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 |
protected void initManager()
initManager in class BasicNodeManagerpublic Node createNode()
NodeManager
createNode in interface NodeManagercreateNode in class BasicNodeManagerpublic java.lang.String getForwardRole()
RelationManager
getForwardRole in interface RelationManagerStringpublic java.lang.String getReciprocalRole()
RelationManager
getReciprocalRole in interface RelationManagerStringpublic java.lang.String getForwardGUIName()
RelationManager
getForwardGUIName in interface RelationManagerStringpublic java.lang.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 RelationManager
public Relation createRelation(Node sourceNode,
RelationManager relationManager)
RelationManager
createRelation in interface RelationManagercreateRelation in class BasicNode
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 RelationManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||