public class OMRSAPIHelper extends Object
| Constructor and Description |
|---|
OMRSAPIHelper(String serviceName,
String serverName,
OMRSRepositoryHelper repositoryHelper,
OMRSMetadataCollection omrsMetadataCollection) |
| Modifier and Type | Method and Description |
|---|---|
SubjectAreaOMASAPIResponse |
callFindEntitiesByPropertyValue(String restAPIName,
String userId,
String entityTypeGUID,
String searchCriteria,
int fromEntityElement,
List<InstanceStatus> limitResultsByStatus,
List<String> limitResultsByClassification,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize) |
SubjectAreaOMASAPIResponse |
callGetEntitiesByType(String restAPIName,
String userId,
String entityTypeGUID,
Date asOfTime,
int fromEntityElement,
int pageSize,
String sequencingProperty,
SequencingOrder sequencingOrder) |
SubjectAreaOMASAPIResponse |
callGetEntityNeighbourhood(String restAPIName,
String userId,
String entityGUID,
List<String> entityTypeGUIDs,
List<String> relationshipTypeGUIDs,
List<InstanceStatus> limitResultsByStatus,
List<String> limitResultsByClassification,
Date asOfTime,
int level) |
SubjectAreaOMASAPIResponse |
callGetRelationshipsForEntity(String restAPIName,
String userId,
String entityGUID,
String relationshipTypeGuid,
int fromRelationshipElement,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize) |
SubjectAreaOMASAPIResponse |
callGetRelationshipsForEntity(String restAPIName,
String userId,
String entityGUID,
String relationshipTypeGUID,
int fromRelationshipElement,
List<InstanceStatus> limitResultsByStatus,
Date asOfTime,
String sequencingProperty,
SequencingOrder sequencingOrder,
int pageSize) |
SubjectAreaOMASAPIResponse |
callOMRSAddEntity(String restAPIName,
String userId,
EntityDetail entityDetail) |
SubjectAreaOMASAPIResponse |
callOMRSAddRelationship(String restAPIName,
String userId,
Relationship relationship) |
SubjectAreaOMASAPIResponse |
callOMRSClassifyEntity(String restAPIName,
String userId,
String entityGUID,
String classificationName,
InstanceProperties instanceProperties) |
SubjectAreaOMASAPIResponse |
callOMRSDeClassifyEntity(String restAPIName,
String userId,
String entityGUID,
String classificationName) |
SubjectAreaOMASAPIResponse |
callOMRSDeleteEntity(String restAPIName,
String userId,
String typeDefName,
String typeDefGuid,
String obsoleteGuid) |
SubjectAreaOMASAPIResponse |
callOMRSDeleteRelationship(String restAPIName,
String userId,
String typeGuid,
String typeName,
String guid) |
SubjectAreaOMASAPIResponse |
callOMRSGetEntityByGuid(String restAPIName,
String userId,
String entityGUID) |
SubjectAreaOMASAPIResponse |
callOMRSGetRelationshipByGuid(String restAPIName,
String userId,
String relationshipGUID) |
SubjectAreaOMASAPIResponse |
callOMRSPurgeEntity(String restAPIName,
String userId,
String typeDefName,
String typeDefGuid,
String obsoleteGuid) |
SubjectAreaOMASAPIResponse |
callOMRSPurgeRelationship(String restAPIName,
String userId,
String typeGuid,
String typeName,
String guid) |
SubjectAreaOMASAPIResponse |
callOMRSRestoreEntity(String restAPIName,
String userId,
String guid) |
SubjectAreaOMASAPIResponse |
callOMRSRestoreRelationship(String restAPIName,
String userId,
String guid) |
SubjectAreaOMASAPIResponse |
callOMRSUpdateEntityProperties(String restAPIName,
String userId,
EntityDetail entityDetail) |
SubjectAreaOMASAPIResponse |
callOMRSUpdateRelationship(String restAPIName,
String userId,
Relationship relationship) |
SubjectAreaOMASAPIResponse |
convertOMRSRelationshipsToOMASLines(List<Relationship> omrsRelationships)
Convert the OMRS Lines to their equivalent OMAS objects and return them in a Response of type lines.
|
SubjectAreaOMASAPIResponse |
findEntitiesByPropertyValue(String restAPIName,
String userId,
String typeName,
String searchCriteria,
Date asOfTime,
int offset,
int pageSize,
SequencingOrder sequencingOrder,
String sequencingProperty) |
SubjectAreaOMASAPIResponse |
getEntitiesByType(String restAPIName,
String userId,
String typeName,
Date asOfTime,
int offset,
int pageSize,
String sequencingProperty,
SequencingOrder sequencingOrder) |
SubjectAreaOMASAPIResponse |
getGlossarySummary(String restAPIName,
String userId,
Line line)
Get glossary summary
|
SubjectAreaOMASAPIResponse |
getIconSummarySet(String userId,
String guid)
Set icon summaries from related media relationships by issuing a call to omrs using the related media guid - which is at one end of the relationship.
|
OMRSMetadataCollection |
getOMRSMetadataCollection(String restAPIName) |
OMRSRepositoryHelper |
getOMRSRepositoryHelper() |
CategorySummary |
getParentCategorySummary(String restAPIName,
String userId,
Set<Line> lines)
Get a summary of the parent category.
|
String |
getServiceName()
Get the service name - ths is used for logging
|
void |
setOMRSRepositoryConnector(OMRSRepositoryConnector connector,
String restAPIName)
Set the OMRS repository connector
|
public OMRSAPIHelper(String serviceName, String serverName, OMRSRepositoryHelper repositoryHelper, OMRSMetadataCollection omrsMetadataCollection)
serviceName - name of the consuming serviceserverName - name of this server instancerepositoryHelper - helper used by the convertersomrsMetadataCollection - metadata collection for the repositorypublic String getServiceName()
public OMRSMetadataCollection getOMRSMetadataCollection(String restAPIName) throws MetadataServerUncontactableException
public OMRSRepositoryHelper getOMRSRepositoryHelper()
public void setOMRSRepositoryConnector(OMRSRepositoryConnector connector, String restAPIName) throws MetadataServerUncontactableException
connector - connector cannot be nullrestAPIName - rest API nameMetadataServerUncontactableException - Metadata server not contactablepublic SubjectAreaOMASAPIResponse callOMRSAddEntity(String restAPIName, String userId, EntityDetail entityDetail)
public SubjectAreaOMASAPIResponse callOMRSGetEntityByGuid(String restAPIName, String userId, String entityGUID)
public SubjectAreaOMASAPIResponse callFindEntitiesByPropertyValue(String restAPIName, String userId, String entityTypeGUID, String searchCriteria, int fromEntityElement, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize)
public SubjectAreaOMASAPIResponse callGetEntitiesByType(String restAPIName, String userId, String entityTypeGUID, Date asOfTime, int fromEntityElement, int pageSize, String sequencingProperty, SequencingOrder sequencingOrder)
public SubjectAreaOMASAPIResponse callOMRSUpdateEntityProperties(String restAPIName, String userId, EntityDetail entityDetail)
public SubjectAreaOMASAPIResponse callOMRSDeleteEntity(String restAPIName, String userId, String typeDefName, String typeDefGuid, String obsoleteGuid)
public SubjectAreaOMASAPIResponse callOMRSPurgeEntity(String restAPIName, String userId, String typeDefName, String typeDefGuid, String obsoleteGuid)
public SubjectAreaOMASAPIResponse callOMRSRestoreEntity(String restAPIName, String userId, String guid)
public SubjectAreaOMASAPIResponse callOMRSClassifyEntity(String restAPIName, String userId, String entityGUID, String classificationName, InstanceProperties instanceProperties)
public SubjectAreaOMASAPIResponse callOMRSDeClassifyEntity(String restAPIName, String userId, String entityGUID, String classificationName)
public SubjectAreaOMASAPIResponse callOMRSAddRelationship(String restAPIName, String userId, Relationship relationship)
public SubjectAreaOMASAPIResponse callOMRSGetRelationshipByGuid(String restAPIName, String userId, String relationshipGUID)
public SubjectAreaOMASAPIResponse callOMRSUpdateRelationship(String restAPIName, String userId, Relationship relationship)
public SubjectAreaOMASAPIResponse callOMRSDeleteRelationship(String restAPIName, String userId, String typeGuid, String typeName, String guid)
public SubjectAreaOMASAPIResponse callOMRSRestoreRelationship(String restAPIName, String userId, String guid)
public SubjectAreaOMASAPIResponse callOMRSPurgeRelationship(String restAPIName, String userId, String typeGuid, String typeName, String guid)
public SubjectAreaOMASAPIResponse callGetRelationshipsForEntity(String restAPIName, String userId, String entityGUID, String relationshipTypeGuid, int fromRelationshipElement, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize)
public SubjectAreaOMASAPIResponse callGetRelationshipsForEntity(String restAPIName, String userId, String entityGUID, String relationshipTypeGUID, int fromRelationshipElement, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize)
public SubjectAreaOMASAPIResponse callGetEntityNeighbourhood(String restAPIName, String userId, String entityGUID, List<String> entityTypeGUIDs, List<String> relationshipTypeGUIDs, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, int level)
public SubjectAreaOMASAPIResponse findEntitiesByPropertyValue(String restAPIName, String userId, String typeName, String searchCriteria, Date asOfTime, int offset, int pageSize, SequencingOrder sequencingOrder, String sequencingProperty)
public SubjectAreaOMASAPIResponse getEntitiesByType(String restAPIName, String userId, String typeName, Date asOfTime, int offset, int pageSize, String sequencingProperty, SequencingOrder sequencingOrder)
public SubjectAreaOMASAPIResponse getIconSummarySet(String userId, String guid)
userId - userid under which to issue to the get of the related mediaguid - to get associated icons frompublic SubjectAreaOMASAPIResponse getGlossarySummary(String restAPIName, String userId, Line line)
restAPIName - rest API NameuserId - userid under which to issue to the get of the related medialine - glossary relationship TermAnchor or CategoryAnchorpublic CategorySummary getParentCategorySummary(String restAPIName, String userId, Set<Line> lines) throws InvalidParameterException
restAPIName - rest API NameuserId - userid that the requests are issued underlines - set of Lines that are of the right type.InvalidParameterException - one of the parameters is null or invalid.public SubjectAreaOMASAPIResponse convertOMRSRelationshipsToOMASLines(List<Relationship> omrsRelationships)
omrsRelationships - - these are OMRS relationshipsCopyright © 2018–2020 ODPi. All rights reserved.