Class RelationshipImpl
- java.lang.Object
-
- org.alfresco.module.org_alfresco_module_rm.relationship.RelationshipImpl
-
- All Implemented Interfaces:
Serializable
,Relationship
public class RelationshipImpl extends Object implements Relationship, Serializable
Relationship implementation- Since:
- 2.3
- Author:
- Tuna Aksoy
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RelationshipImpl(String uniqueName, org.alfresco.service.cmr.repository.NodeRef source, org.alfresco.service.cmr.repository.NodeRef target)
Constructor for creating a relationship
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
org.alfresco.service.cmr.repository.NodeRef
getSource()
Gets the source of the relationshiporg.alfresco.service.cmr.repository.NodeRef
getTarget()
Gets the target of the relationshipString
getUniqueName()
Gets the unique name of the relationshipint
hashCode()
-
-
-
Constructor Detail
-
RelationshipImpl
public RelationshipImpl(String uniqueName, org.alfresco.service.cmr.repository.NodeRef source, org.alfresco.service.cmr.repository.NodeRef target)
Constructor for creating a relationship- Parameters:
uniqueName
- The unique name of the relationshipsource
- The source of the relationshiptarget
- The target of the relationship
-
-
Method Detail
-
getUniqueName
public String getUniqueName()
Description copied from interface:Relationship
Gets the unique name of the relationship- Specified by:
getUniqueName
in interfaceRelationship
- Returns:
- The unique name of the relationship
- See Also:
Relationship.getUniqueName()
-
getSource
public org.alfresco.service.cmr.repository.NodeRef getSource()
Description copied from interface:Relationship
Gets the source of the relationship- Specified by:
getSource
in interfaceRelationship
- Returns:
- The source of the relationship
- See Also:
Relationship.getSource()
-
getTarget
public org.alfresco.service.cmr.repository.NodeRef getTarget()
Description copied from interface:Relationship
Gets the target of the relationship- Specified by:
getTarget
in interfaceRelationship
- Returns:
- The target of the relationship
- See Also:
Relationship.getTarget()
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classObject
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
-