public class OMRSAPIHelper extends Object
| Constructor and Description |
|---|
OMRSAPIHelper() |
public OMRSMetadataCollection getOMRSMetadataCollection() throws MetadataServerUncontactableException
public OMRSRepositoryHelper getOMRSRepositoryHelper()
public void setOMRSRepositoryConnector(OMRSRepositoryConnector connector) throws MetadataServerUncontactableException
connector - connector cannot be nullMetadataServerUncontactableException - Metadata server not contactablepublic TypeDefGallery callGetAllTypes(String userId) throws UserNotAuthorizedException, MetadataServerUncontactableException
public TypeDef callGetTypeDefByName(String userId, String typeName) throws UserNotAuthorizedException, InvalidParameterException, MetadataServerUncontactableException
public EntityDetail callOMRSAddEntity(String userId, EntityDetail entityDetail) throws UserNotAuthorizedException, InvalidParameterException, ClassificationException, StatusNotSupportedException, MetadataServerUncontactableException
public EntityDetail callOMRSGetEntityByGuid(String userId, String entityGUID) throws UserNotAuthorizedException, InvalidParameterException, UnrecognizedGUIDException, MetadataServerUncontactableException
public List<EntityDetail> callFindEntitiesByPropertyValue(String userId, String entityTypeGUID, String searchCriteria, int fromEntityElement, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws UserNotAuthorizedException, FunctionNotSupportedException, InvalidParameterException, MetadataServerUncontactableException
public EntityDetail callOMRSUpdateEntity(String userId, EntityDetail entityDetail) throws UserNotAuthorizedException, InvalidParameterException, UnrecognizedGUIDException, MetadataServerUncontactableException
public EntityDetail callOMRSDeleteEntity(String userId, String typeDefName, String typeDefGuid, String obsoleteGuid) throws UserNotAuthorizedException, FunctionNotSupportedException, InvalidParameterException, UnrecognizedGUIDException, MetadataServerUncontactableException
public void callOMRSPurgeEntity(String userId, String typeDefName, String typeDefGuid, String obsoleteGuid) throws UserNotAuthorizedException, MetadataServerUncontactableException, EntityNotDeletedException, InvalidParameterException, UnrecognizedGUIDException, GUIDNotPurgedException
public EntityDetail callOMRSRestoreEntity(String userId, String guid) throws UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnrecognizedGUIDException, MetadataServerUncontactableException, GUIDNotDeletedException
public EntityDetail callOMRSClassifyEntity(String userId, String entityGUID, String classificationName, InstanceProperties instanceProperties) throws UserNotAuthorizedException, InvalidParameterException, ClassificationException, UnrecognizedGUIDException, MetadataServerUncontactableException
public EntityDetail callOMRSDeClassifyEntity(String userId, String entityGUID, String classificationName) throws UserNotAuthorizedException, InvalidParameterException, ClassificationException, UnrecognizedGUIDException, MetadataServerUncontactableException
public Relationship callOMRSAddRelationship(String userId, Relationship relationship) throws UserNotAuthorizedException, InvalidParameterException, UnrecognizedGUIDException, MetadataServerUncontactableException, StatusNotSupportedException
public Relationship callOMRSGetRelationshipByGuid(String userId, String relationshipGUID) throws UserNotAuthorizedException, InvalidParameterException, UnrecognizedGUIDException, MetadataServerUncontactableException
public Relationship callOMRSUpdateRelationship(String userId, Relationship relationship) throws UserNotAuthorizedException, MetadataServerUncontactableException, InvalidParameterException, StatusNotSupportedException, UnrecognizedGUIDException
public Relationship callOMRSDeleteRelationship(String userId, String typeGuid, String typeName, String guid) throws UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnrecognizedGUIDException, MetadataServerUncontactableException
public Relationship callOMRSRestoreRelationship(String userId, String guid) throws UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnrecognizedGUIDException, MetadataServerUncontactableException, GUIDNotDeletedException
public void callOMRSPurgeRelationship(String userId, String typeGuid, String typeName, String guid) throws UserNotAuthorizedException, InvalidParameterException, GUIDNotPurgedException, UnrecognizedGUIDException, MetadataServerUncontactableException
public List<Relationship> callGetRelationshipsForEntity(String userId, String entityGUID, String relationshipTypeGuid, int fromRelationshipElement, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnrecognizedGUIDException, MetadataServerUncontactableException
public List<Relationship> callGetRelationshipsForEntity(String userId, String entityGUID, String relationshipTypeGUID, int fromRelationshipElement, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize) throws UserNotAuthorizedException, InvalidParameterException, FunctionNotSupportedException, UnrecognizedGUIDException, MetadataServerUncontactableException
public String callGetTypeGuid(String userId, String typeName) throws UserNotAuthorizedException, InvalidParameterException, MetadataServerUncontactableException
public InstanceGraph callGetEntityNeighbourhood(String userId, String entityGUID, List<String> entityTypeGUIDs, List<String> relationshipTypeGUIDs, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, int level) throws UserNotAuthorizedException, MetadataServerUncontactableException, InvalidParameterException, UnrecognizedGUIDException, FunctionNotSupportedException
public static List<EntityDetail> findEntitiesByType(OMRSAPIHelper oMRSAPIHelper, String serverName, String userId, String type, String searchCriteria, Date asOfTime, Integer offset, Integer pageSize, SequencingOrder sequencingOrder, String sequencingProperty, String methodName) throws MetadataServerUncontactableException, InvalidParameterException, UserNotAuthorizedException, FunctionNotSupportedException
Copyright © 2018–2019 ODPi. All rights reserved.