Class RelationshipTypeMapper
java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.server.mappers.graph.RelationshipTypeMapper
Static mapping methods to map between the omas relationship Type and omrs relationship type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
mapOMASRelationshipTypeToOMRSRelationshipTypeGuid
(String operation, RelationshipType omasRelationshipType) Map omas RelationshipType to omrs relationship type guid.
-
Constructor Details
-
RelationshipTypeMapper
public RelationshipTypeMapper()
-
-
Method Details
-
mapOMASRelationshipTypeToOMRSRelationshipTypeGuid
public static String mapOMASRelationshipTypeToOMRSRelationshipTypeGuid(String operation, RelationshipType omasRelationshipType) throws InvalidParameterException Map omas RelationshipType to omrs relationship type guid. The omasRelationshipType is the type of node that is exposed in the omasRelationshipType API. The subject Area OMAS needs to convert the OMAS RelationshipType into a guid of an relationship type so it can be used to call omrs.- Parameters:
operation
- operation being attemptedomasRelationshipType
- omasRelationshipType this is the type of relationship that is exposed in the RelationshipType as part of the OMAS API.- Returns:
- relationship Type guid.
- Throws:
InvalidParameterException
- Invalid parameter error found
-