org.alfresco.repo.domain
Interface NodeAssoc

All Known Implementing Classes:
NodeAssocImpl

public interface NodeAssoc

Represents a generic association between two nodes. The association is named and bidirectional by default.


Method Summary
 void buildAssociation(Node sourceNode, Node targetNode)
          Wires up the necessary bits on the source and target nodes so that the association is immediately bidirectional.
 java.lang.Long getId()
           
 AssociationRef getNodeAssocRef()
           
 Node getSource()
           
 Node getTarget()
           
 QNameEntity getTypeQName()
           
 java.lang.Long getVersion()
           
 void setTypeQName(QNameEntity typeQName)
           
 

Method Detail

buildAssociation

void buildAssociation(Node sourceNode,
                      Node targetNode)
Wires up the necessary bits on the source and target nodes so that the association is immediately bidirectional.

The association attributes still have to be set.

Parameters:
sourceNode -
targetNode -
See Also:
#setName(String)

getNodeAssocRef

AssociationRef getNodeAssocRef()

getId

java.lang.Long getId()

getVersion

java.lang.Long getVersion()
Returns:
Returns the current version number

getSource

Node getSource()

getTarget

Node getTarget()

getTypeQName

QNameEntity getTypeQName()
Returns:
Returns the type of the association

setTypeQName

void setTypeQName(QNameEntity typeQName)
Parameters:
typeQName - the association's dictionary type


Copyright © 2005 - 2008 Alfresco Software, Inc. All Rights Reserved.