public class ProjectScopeMapper extends LineMapper<ProjectScope>
| Modifier and Type | Field and Description |
|---|---|
static String |
PROJECT_SCOPE |
omrsapiHelper, repositoryHelper| Constructor and Description |
|---|
ProjectScopeMapper(OMRSAPIHelper omrsapiHelper) |
| Modifier and Type | Method and Description |
|---|---|
ProjectScope |
getLineInstance() |
String |
getProxy1Guid(ProjectScope projectScope)
Get proxy1 guid.
|
String |
getProxy2Guid(ProjectScope projectScope)
Get proxy2 guid
The proxy has an omrs type that is a subtype of Referenceable
|
String |
getTypeName()
get type name
|
void |
mapLineToInstanceProperties(ProjectScope projectScope,
InstanceProperties instanceProperties)
Map the supplied Line to omrs InstanceProperties.
|
protected boolean |
mapPrimitiveToLine(ProjectScope projectScope,
String propertyName,
Object value)
Map a primitive omrs property to the antonym object.
|
void |
setEnd1GuidInLine(ProjectScope line,
String guid)
Pass the guid of the EntityProxy for end 1 to the Line ,so it can store it appropriately
|
void |
setEnd2GuidInLine(ProjectScope line,
String guid)
Pass the guid of the EntityProxy for end 2 to the Line ,so it can store it appropriately
|
getTypeDefGuid, map, map, mapEnumToLine, mapInstancePropertiesToLine, mapMapToLinepublic static final String PROJECT_SCOPE
public ProjectScopeMapper(OMRSAPIHelper omrsapiHelper)
public String getProxy1Guid(ProjectScope projectScope)
getProxy1Guid in class LineMapper<ProjectScope>projectScope - linepublic String getProxy2Guid(ProjectScope projectScope)
getProxy2Guid in class LineMapper<ProjectScope>projectScope - for this Linepublic String getTypeName()
LineMappergetTypeName in interface Mapper<Relationship,ProjectScope>getTypeName in class LineMapper<ProjectScope>public ProjectScope getLineInstance()
public void setEnd1GuidInLine(ProjectScope line, String guid)
LineMappersetEnd1GuidInLine in class LineMapper<ProjectScope>line - line to updateguid - guid to add into the Linepublic void setEnd2GuidInLine(ProjectScope line, String guid)
LineMappersetEnd2GuidInLine in class LineMapper<ProjectScope>line - line to updateguid - guid to add into the Linepublic void mapLineToInstanceProperties(ProjectScope projectScope, InstanceProperties instanceProperties)
mapLineToInstanceProperties in class LineMapper<ProjectScope>projectScope - supplied lineinstanceProperties - equivalent instance properties to the Lineprotected boolean mapPrimitiveToLine(ProjectScope projectScope, String propertyName, Object value)
mapPrimitiveToLine in class LineMapper<ProjectScope>projectScope - the ProjectScope to be updatedpropertyName - the omrs property namevalue - the omrs primitive property valueCopyright © 2018–2020 ODPi. All rights reserved.