public class ReferenceableMapper extends EntityMapping
igcEntity, igcEntityAlternative, igcomrsMetadataCollection, igcomrsRepositoryConnector, omrsClassifications, omrsDetail, omrsRelationships, omrsSummary, userId| Constructor and Description |
|---|
ReferenceableMapper(IGCOMRSRepositoryConnector igcomrsRepositoryConnector,
String userId) |
ReferenceableMapper(IGCOMRSRepositoryConnector igcomrsRepositoryConnector,
String igcAssetTypeName,
String igcAssetTypeDisplayName,
String omrsEntityTypeName,
String userId) |
ReferenceableMapper(IGCOMRSRepositoryConnector igcomrsRepositoryConnector,
String igcAssetTypeName,
String igcAssetTypeDisplayName,
String omrsEntityTypeName,
String userId,
String igcRidPrefix) |
ReferenceableMapper(IGCOMRSRepositoryConnector igcomrsRepositoryConnector,
String igcAssetTypeName,
String igcAssetTypeDisplayName,
String omrsEntityTypeName,
String userId,
String igcRidPrefix,
boolean includeDefaultRelationships) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
complexPropertyMappings(InstanceProperties instanceProperties)
This method needs to be implemented to define any complex property mapping logic, if any.
|
protected ReferenceableMapper |
getNewInstance()
Retrieves a new instance of this same class, which is needed to ensure there are distinct protected members
to populate for each instance of an object that needs to be mapped.
|
EntityDetail |
getOMRSEntityDetail()
Map the IGC entity to an OMRS EntityDetail object.
|
EntitySummary |
getOMRSEntitySummary()
Map the IGC entity to an OMRS EntitySummary object.
|
List<Relationship> |
getOMRSRelationships(String relationshipTypeGUID,
int fromRelationshipElement,
SequencingOrder sequencingOrder,
int pageSize)
Map the IGC entity's relationships to OMRS Relationship objects.
|
ReferenceableMapper |
initialize(Reference baseObject,
Reference receivedObject)
Initialize the mapper with an IGC object to be mapped.
|
addClassificationMapper, addComplexIgcProperty, addComplexOmrsProperty, addOtherIGCAssetType, addRelationshipMapper, addSimplePropertyMapping, addSupportedStatus, getBaseIgcAssetFromAlternative, getClassificationMappers, getIgcAssetType, getIgcAssetTypeDisplayName, getIgcPOJO, getIgcRidPrefix, getOmrsTypeDefName, getOtherIGCAssetTypes, getOtherIGCPOJOs, getPropertyMappings, getRelationshipMappers, getSupportedStatuses, igcRidNeedsPrefix, mapIGCToOMRSEntityDetail, mapIGCToOMRSEntitySummary, matchesAssetTypepublic ReferenceableMapper(IGCOMRSRepositoryConnector igcomrsRepositoryConnector, String userId)
public ReferenceableMapper(IGCOMRSRepositoryConnector igcomrsRepositoryConnector, String igcAssetTypeName, String igcAssetTypeDisplayName, String omrsEntityTypeName, String userId)
public ReferenceableMapper(IGCOMRSRepositoryConnector igcomrsRepositoryConnector, String igcAssetTypeName, String igcAssetTypeDisplayName, String omrsEntityTypeName, String userId, String igcRidPrefix)
protected ReferenceableMapper getNewInstance()
public ReferenceableMapper initialize(Reference baseObject, Reference receivedObject)
baseObject - the IGC object to be mapped into an OMRS entityreceivedObject - the IGC object actually looked up (if different from baseObject, null otherwise)protected void complexPropertyMappings(InstanceProperties instanceProperties)
EntityMappingcomplexPropertyMappings in class EntityMappinginstanceProperties - the instance properties to which to add the complex-mapped propertiespublic EntitySummary getOMRSEntitySummary()
public EntityDetail getOMRSEntityDetail()
public List<Relationship> getOMRSRelationships(String relationshipTypeGUID, int fromRelationshipElement, SequencingOrder sequencingOrder, int pageSize)
relationshipTypeGUID - String GUID of the the type of relationship required (null for all).fromRelationshipElement - the starting element number of the relationships to return.
This is used when retrieving elements
beyond the first page of results. Zero means start from the first element.sequencingOrder - Enum defining how the results should be ordered.pageSize - the maximum number of result classifications that can be returned on this request. Zero means
unrestricted return results size.List<Relationship>Copyright © 2018–2019 ODPi. All rights reserved.