|
||||||||||
| 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
public class BasicRelationManager
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.mmbase.bridge.implementation.BasicNodeManager |
|---|
BasicNodeManager.NodeAndId |
| Field Summary | |
|---|---|
(package private) 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, originalNoderef, 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 |
| Fields inherited from interface org.mmbase.bridge.Node |
|---|
CLOUD_COMMITNODE_KEY |
| Constructor Summary | |
|---|---|
BasicRelationManager(MMObjectNode node,
BasicCloud cloud)
Creates a new instance of Relation manager. |
|
BasicRelationManager(MMObjectNode node,
BasicCloud cloud,
int nodeId)
Creates a new Relation manager (for insert). |
|
| 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. |
(package private) int |
getBuilder()
|
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)
Set nodemanager for node |
RelationManager |
toRelationManager()
Returns this as a RelationManager. |
String |
toString()
Converts the node to a string |
| Methods inherited from class org.mmbase.bridge.implementation.BasicNodeManager |
|---|
commit, createFieldList, createMMObjectNode, createNode, createNodeList, createQuery, createRelationList, delete, finalize, getAllowedRelations, getAllowedRelations, getAllowedRelations, getDescendants, getDescription, getDescription, getField, getFields, getFields, getFieldTypes, getFunctions, getGUIName, getGUIName, getGUIName, getInfo, getInfo, getList, getList, getList, getList, getMMObjectBuilder, getName, getNodeFunction, getParent, getProperties, getProperty, hasField, isNodeManager, mayCreateNode, setDefaultsWithCloud, sync, toNodeManager |
| Methods inherited from class org.mmbase.bridge.implementation.BasicNode |
|---|
cancel, checkAccount, checkCommit, checkCreate, checkDelete, checkWrite, countRelatedNodes, countRelatedNodes, createAlias, createFunctionValue, createParameters, deleteAlias, deleteRelations, getAliases, getBooleanValue, getByteSize, getByteSize, getByteValue, getChanged, getCloud, getContext, getDateValue, getDoubleValue, getFloatValue, getInputStreamValue, getIntValue, getListValue, getLongValue, getNode, getNodeManager, getNodeValue, getNumber, getPossibleContexts, getRelatedNodes, getRelatedNodes, getRelations, getRelations, getSize, getStringValue, getValueWithoutProcess, getXMLValue, hasRelations, init, invalidateNode, isChanged, isChanged, isNew, isNull, mayChangeContext, mayDelete, mayWrite, setContext, setNode, setNodeManager, setSize, setValueWithoutChecks, toNodeNumber |
| 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 |
|---|
MMObjectNode relDefNode
| Constructor Detail |
|---|
BasicRelationManager(MMObjectNode node,
BasicCloud cloud,
int nodeId)
node - the node on which to base the relation managercloud - the cloud for which to create the managerid - the id of the node in the temporary cloud
BasicRelationManager(MMObjectNode node,
BasicCloud cloud)
node - the node on which to base the relation managercloud - the cloud for which to create the manager| Method Detail |
|---|
public final boolean isRelationManager()
Node
isRelationManager in interface NodeisRelationManager in class AbstractNodetrue if this Node is a RelationManager.public final RelationManager toRelationManager()
Node
toRelationManager in interface NodetoRelationManager in class AbstractNodeNodeManager objectprotected void initManager()
initManager in class BasicNodeManagerprotected void setNodeManager(MMObjectNode node)
BasicNode
setNodeManager in class BasicNodeManagernode - node to derive nodemanager from.public 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 RelationManagerint getBuilder()
public 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)
RelationManagerNode.getRelations(String, NodeManager, String).
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
public String toString()
Node
toString in interface NodetoString in class BasicNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||