public class RelationshipMapping.ProxyMapping extends Object
| Constructor and Description |
|---|
ProxyMapping(String igcAssetType,
String igcRelationshipProperty,
String omrsRelationshipProperty,
String igcRidPrefix) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAlternativeIgcRelationshipProperty(String igcRelationshipProperty)
Add an alternative IGC relationship property to this side of the relationship, that can be additionally
used to traverse to the other side of the relationship.
|
void |
addExcludedIgcAssetType(String igcAssetType)
When the asset this applies to is a 'main_object', use this method to add any objects that should NOT be
included under that umbrella.
|
String |
getIgcAssetType()
Retrieve the type of IGC asset that is expected by this side of the relationship mapping.
|
List<String> |
getIgcRelationshipProperties()
Retrieve the list of IGC relationship properties that can be used from this side of the relationship
mapping to traverse to the other side of the relationship.
|
String |
getIgcRidPrefix()
Retrieve the prefix that should be added to the IGC Repository ID (RID) in order to make this side of the
relationship point to a generated IGC entity instance (ie.
|
String |
getOmrsRelationshipProperty()
Retrieve the name of the OMRS relationship property that represents this side of the relationship.
|
boolean |
isSelfReferencing()
Indicates whether this side of the relationship is self-referencing (true) or not (false).
|
boolean |
matchesAssetType(String igcAssetType)
Indicates whether this side of the relationship matches the provided IGC asset type: that is, this side of
the relationship can be used to relate to the provided IGC asset type.
|
String |
toString() |
public String getIgcAssetType()
public List<String> getIgcRelationshipProperties()
List<String>public void addAlternativeIgcRelationshipProperty(String igcRelationshipProperty)
igcRelationshipProperty - the name of the additional IGC relationship propertypublic String getOmrsRelationshipProperty()
public String getIgcRidPrefix()
public boolean isSelfReferencing()
public void addExcludedIgcAssetType(String igcAssetType)
igcAssetType - the IGC asset type to exclude from 'main_object' considerationpublic boolean matchesAssetType(String igcAssetType)
igcAssetType - the IGC asset type to check this side of the relationship againstCopyright © 2018–2019 ODPi. All rights reserved.