Class RelationshipTypeMapper
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.subjectarea.server.mappers.graph.RelationshipTypeMapper
-
public class RelationshipTypeMapper extends Object
Static mapping methods to map between the omas relationship Type and omrs relationship type.
-
-
Constructor Summary
Constructors Constructor Description RelationshipTypeMapper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringmapOMASRelationshipTypeToOMRSRelationshipTypeGuid(String operation, RelationshipType omasRelationshipType)Map omas RelationshipType to omrs relationship type guid.
-
-
-
Method Detail
-
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
-
-