public class ProjectMapper extends EntityDetailMapper<Project>
| Modifier and Type | Field and Description |
|---|---|
static String |
GLOSSARY_PROJECT |
static String |
PROJECT |
omrsapiHelper, repositoryHelper| Constructor and Description |
|---|
ProjectMapper(OMRSAPIHelper omrsapiHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Classification> |
getInlinedClassifications(Project node)
A Classification either exists in the classifications associated with a node or as an inlined attribute (these are properties / attributes of a node that correspond to OMRS Classifications).
|
String |
getTypeName()
Get the type name
|
Project |
map(EntityDetail entityDetail)
Map EntityDetail to Project or a sub type of Project
|
EntityDetail |
map(Project node)
Map from a Subject Area OMAS Node to an OMRS EntityDetail
|
protected void |
mapNodeToInstanceProperties(Project project,
InstanceProperties instanceProperties)
Map the supplied Node to omrs InstanceProperties.
|
protected boolean |
mapPrimitiveToNode(Project project,
String propertyName,
Object value)
Map a primitive omrs property to the Project object.
|
protected boolean |
updateNodeWithClassification(Project project,
Classification omasClassification)
Update Node with classification
This method should be overridden by types of node if they want to use the Classification as an in lined property
|
getTypeDefGuid, mapEntityDetailToNode, mapEnumToNode, populateAdditionalProperties, toEntityDetailpublic static final String PROJECT
public static final String GLOSSARY_PROJECT
public ProjectMapper(OMRSAPIHelper omrsapiHelper)
public Project map(EntityDetail entityDetail)
entityDetail - the supplied EntityDetailpublic EntityDetail map(Project node)
INodeMappernode - a Subject Area OMAS Nodeprotected List<Classification> getInlinedClassifications(Project node)
EntityDetailMappernode - supplied nodeprotected boolean mapPrimitiveToNode(Project project, String propertyName, Object value)
mapPrimitiveToNode in class EntityDetailMapper<Project>project - the Project to be updatedpropertyName - the omrs property namevalue - the omrs primitive property valueprotected void mapNodeToInstanceProperties(Project project, InstanceProperties instanceProperties)
mapNodeToInstanceProperties in class EntityDetailMapper<Project>project - supplied nodeinstanceProperties - equivalent instance properties to the Nodeprotected boolean updateNodeWithClassification(Project project, Classification omasClassification)
EntityDetailMapperproject - node to updateomasClassification - classificationpublic String getTypeName()
MappergetTypeName in interface Mapper<EntityDetail,Project>getTypeName in class EntityDetailMapper<Project>Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.