|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
This interface represents a relation constraint (or contex, if you like). More specifically, it represents a relation manager (itself a node manager) as it applies between bnode belonging to two other node managers. Some of the information here is retrieved from the NodeManager used to build the catual relation node (the data as described in the xml builder config file). This NodeManager is also referred to as the parent. Other data is retrieved from a special (hidden) object that decsribes what relations apply between two nodes. (formerly known as the TypeRel builder). This includes direction and cardinality, and the NodeManagers of nodes itself. These fields cannot be changed except through the use of an administration module. This interface is therefor not a real mmbase 'object' in itself - it exists of two objects joined together.
| Field Summary | |
static int |
BIDIRECTIONAL
Directionality constant : bi-directional |
static int |
UNIDIRECTIONAL
Directionality constant : uni-directional |
| Fields inherited from interface org.mmbase.bridge.NodeManager |
ORDER_CREATE, ORDER_EDIT, ORDER_LIST, ORDER_NONE, ORDER_SEARCH |
| Method Summary | |
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. |
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 interface org.mmbase.bridge.NodeManager |
createNode, getAllowedRelations, getAllowedRelations, getAllowedRelations, getCloud, getDescription, getField, getFields, getFields, getGUIName, getGUIName, getInfo, getInfo, getList, getList, getList, getName, getParent, hasField, mayCreateNode |
| Field Detail |
public static final int UNIDIRECTIONAL
public static final int BIDIRECTIONAL
| Method Detail |
public java.lang.String getForwardRole()
Stringpublic java.lang.String getReciprocalRole()
Stringpublic java.lang.String getForwardGUIName()
Stringpublic java.lang.String getReciprocalGUIName()
Stringpublic int getDirectionality()
public NodeManager getSourceManager()
public NodeManager getDestinationManager()
public Relation createRelation(Node sourceNode,
Node destinationNode)
sourceNode - the node from which you want to relatedestinationNode - the node to which you want to relate
public Relation createRelation(Node sourceNode,
RelationManager relationManager)
createRelation in interface Nodeorg.mmbase.bridge.NodedestinationNode - the node to which you want to relate this noderelationManager - the relation manager you want to useBridgeException - if the relation manager is not the right one
for this type of relationpublic RelationList getRelations(Node node)
node - the node from which to give the relations
public boolean mayCreateRelation(Node sourceNode,
Node destinationNode)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||