public interface RelationManager extends NodeManager
| Modifier and Type | Field and Description |
|---|---|
static int |
BIDIRECTIONAL
Directionality constant : bi-directional
|
static int |
UNIDIRECTIONAL
Directionality constant : uni-directional
|
GUI_PLURAL, GUI_SINGULAR, ORDER_CREATE, ORDER_EDIT, ORDER_LIST, ORDER_NONE, ORDER_SEARCHCLOUD_COMMITNODE_KEY| Modifier and Type | Method and Description |
|---|---|
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).
|
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.
|
boolean |
mayCreateRelation(Node sourceNode,
Node destinationNode)
Check if the current user may create a new relation of this type between
the specified nodes.
|
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, mayCreateNodecancel, commit, countRelatedNodes, countRelatedNodes, countRelations, countRelations, createAlias, createParameters, delete, delete, deleteAlias, deleteRelations, deleteRelations, getAliases, getBooleanValue, getByteValue, getChanged, getContext, getDateValue, getDecimalValue, getDoubleValue, getFieldValue, getFieldValue, getFloatValue, getFunction, getFunctions, getFunctionValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNodeManager, getNodeValue, getNumber, getObjectValue, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getRelations, getRelations, getRelations, getSize, getStringValue, getValue, getValueWithoutProcess, getXMLValue, getXMLValue, hasRelations, isChanged, isChanged, isNew, isNodeManager, isNull, isRelation, isRelationManager, mayChangeContext, mayDelete, mayWrite, setBooleanValue, setByteValue, setContext, setDateValue, setDecimalValue, setDoubleValue, setFloatValue, setInputStreamValue, setIntValue, setListValue, setLongValue, setNodeManager, setNodeValue, setObjectValue, setStringValue, setValue, setValueWithoutProcess, setXMLValue, toNodeManager, toRelation, toRelationManager, toString, validatecompareTostatic final int UNIDIRECTIONAL
static final int BIDIRECTIONAL
String getForwardRole()
StringString getReciprocalRole()
StringString getForwardGUIName()
StringString getReciprocalGUIName()
Stringint getDirectionality()
NodeManager getSourceManager()
NodeManager getDestinationManager()
Relation createRelation(Node sourceNode, Node destinationNode)
sourceNode - the node from which you want to relatedestinationNode - the node to which you want to relateRelation createRelation(Node sourceNode, RelationManager relationManager)
createRelation in interface NodesourceNode - source node of the relationrelationManager - relation manager of the relationRelationList getRelations(Node node)
Node.getRelations(String, NodeManager, String).node - the node from which to give the relationsboolean mayCreateRelation(Node sourceNode, Node destinationNode)
sourceNode - source node of the relationdestinationNode - destination node of the relationMMBase 1.9-SNAPSHOT - ${javadoctimestamp}