eu.transformproject.provenance.ws
public class ProvenanceWS_QueryTool extends CommonInstantiation implements ProvenanceWS_QueryTool_Interface
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MIDDLEWARE_GRAPH_PROJECT_NAME_IN_QT |
static java.lang.String |
NO_QDT_QUERY |
static java.lang.String |
TEMPLATE_ID_PLACEHOLDER |
static java.lang.String |
TEMPLATE_INST_INDEX_PLACEHOLDER |
static java.lang.String |
TEMPLATE_INST_URI_PLACEHOLDER |
static java.lang.String |
TEMPLATE_INSTGROUP_INDEX_PLACEHOLDER |
static java.lang.String |
TEMPLATE_INSTGROUP_URI_PLACEHOLDER |
MIDDLEWARE_GRAPH_PROJECT_NAME, server| Constructor and Description |
|---|
ProvenanceWS_QueryTool() |
| Modifier and Type | Method and Description |
|---|---|
void |
agregateLocalQueryECResults(java.lang.String queryExecutionURI,
int rowNumberResults,
java.util.List firstRowResult,
java.util.Date start)
agregateLocalQueryECResults.
|
void |
basicQueryEC(int rowNumberResults,
java.util.List firstRowResult,
java.util.Date start)
queryEC.
|
java.lang.String |
createDataExtraction(java.lang.Object dataToExtract,
java.util.Date start)
createDataExtraction.
|
java.lang.String |
createEC(java.lang.Object eligCriteria,
java.util.Date start)
createEC.
|
java.lang.String |
createNewQueryEC()
createNewQueryEC.
|
java.lang.String |
createProtocol(java.lang.Object protocol,
java.util.Date start)
createProtocol.
|
java.lang.String |
createStudy(java.lang.String projectName,
java.lang.Object clStudy,
java.util.Date start)
createStudy.
|
java.lang.String |
editDataExtraction(java.lang.Object updatedDE,
java.util.Date start)
editDataExtraction.
|
java.lang.String |
editDataExtractionFromURI(java.lang.String dataExtractionURI,
java.lang.Object updatedDE,
java.util.Date start)
editDataExtractionFromURI.
|
java.lang.String |
editEC(java.lang.Object updatedEC,
java.util.Date start)
Edits a EC.
|
java.lang.String |
editECFromURI(java.lang.String uriEC,
java.lang.Object updatedEC,
java.util.Date start)
Annotates the eligibility criteria edition process at the end of the process, using as previous version the object at URI.
|
java.lang.String |
editProtocol(java.lang.Object updatedprotocol,
java.util.Date start)
Edits the protocol.
|
java.lang.String |
editProtocolFromURI(java.lang.String uriProtocol,
java.lang.Object updatedprotocol,
java.util.Date start)
editProtocolFromURI.
|
java.lang.String |
editStudy(java.lang.Object updatedStudy,
java.util.Date start)
Edits a clinical study.
|
java.lang.String |
editStudyFromURI(java.lang.String uriStudy,
java.lang.Object updatedStudy,
java.util.Date start)
editStudyFromURI.
|
void |
endsPackageData(java.lang.Object signedDetails,
java.lang.Object encryptedPackage)
Ends of the packaging process.
|
java.lang.String |
localqueryEC(java.lang.String queryExecutionURI,
java.lang.String localDBURL,
java.lang.String query,
int rowNumberResults,
java.util.List firstRowResult,
java.util.Date start)
localqueryEC.
|
java.lang.String |
receiveData(java.lang.String receptorQueueName,
java.lang.Object encryptedReceivedData)
Reception of an encrypted data.
|
java.lang.String |
recoverDataExtractionQuery(java.lang.String submittedQueryA,
java.lang.Object linkToExtractedData,
java.util.Date start)
recoverDataExtractionQuery.
|
java.lang.String |
recoverFlaggedPatientSet(java.lang.String uriSubmittedQueryA,
java.lang.Object flaggedPatientSetId,
java.util.Date start)
recoverFlaggedPatientSet.
|
void |
recoverPatientCountQuery(java.lang.String uriSubmittedQueryA,
long patientCount,
java.util.Date start)
recoverPatientCountQuery.
|
void |
sendData(java.lang.String receptorQueueName,
java.lang.String encryptedDataA)
Send an encrypted data.
|
java.lang.String |
startPackageData(java.lang.String uriDataToPackage,
java.util.Date start)
Starts of the packaging processing.
|
java.lang.String |
submitDataExtractionQuery(java.lang.String dataExtractionUri,
java.lang.String uriFlaggedPatientSet,
java.lang.String DQT_uriQuery,
java.lang.Object CDIMquery,
java.util.Date start)
submitDataExtractionQuery.
|
java.lang.String |
submitFlaggedPatientSet(java.lang.String uriEC,
java.lang.Object query,
java.util.Date start)
submitFlaggedPatientSet.
|
java.lang.String |
submitPatientCountQuery(java.lang.String uriEC,
java.lang.Object CDIMquery,
java.util.Date start)
submitPatientCountQuery.
|
java.lang.String |
unpackageData(java.lang.String encryptedReceivedDataA,
java.lang.String provenanceA,
java.lang.Object decryptedDataA,
java.util.Date start)
Decryptation of an encrypted data.
|
closeSession, createSession, finalize, getSyncDateTime, login, logoutequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSession, createSession, getSyncDateTime, login, logoutpublic static java.lang.String TEMPLATE_ID_PLACEHOLDER
public static java.lang.String TEMPLATE_INST_INDEX_PLACEHOLDER
public static java.lang.String TEMPLATE_INSTGROUP_INDEX_PLACEHOLDER
public static java.lang.String TEMPLATE_INST_URI_PLACEHOLDER
public static java.lang.String TEMPLATE_INSTGROUP_URI_PLACEHOLDER
public static java.lang.String NO_QDT_QUERY
public static java.lang.String MIDDLEWARE_GRAPH_PROJECT_NAME_IN_QT
public ProvenanceWS_QueryTool()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String createStudy(java.lang.String projectName,
java.lang.Object clStudy,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfacecreateStudy in interface ProvenanceWS_QueryTool_InterfaceprojectName - the project name. It is assumed that the projectName is unique for all the annotated studies.clStudy - the clinical study object. The value returned by toString() method of this object will be maintaIn the provenance db.start - the start time of the clinical study creation process.java.lang.Exception - the exceptionpublic java.lang.String createProtocol(java.lang.Object protocol,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfacecreateProtocol in interface ProvenanceWS_QueryTool_Interfaceprotocol - protocol associated to a clinical study. It is assumed that an study has been previously created/edited.start - the start time of the create protocol process.java.lang.Exception - the exceptionpublic java.lang.String createEC(java.lang.Object eligCriteria,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfacecreateEC in interface ProvenanceWS_QueryTool_InterfaceeligCriteria - the created eligibility criteria object. The value returned by toString() method of this object will be maintaIn the provenance db.start - the start time of the create protocol process.java.lang.Exception - the exceptionpublic java.lang.String editStudyFromURI(java.lang.String uriStudy,
java.lang.Object updatedStudy,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfaceeditStudyFromURI in interface ProvenanceWS_QueryTool_InterfaceuriStudy - the uri of a previously annotated clinical study.updatedStudy - the new version of the clinical study.start - the start time of the create protocol process.java.lang.Exception - the exceptionpublic java.lang.String editStudy(java.lang.Object updatedStudy,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfaceeditStudy in interface ProvenanceWS_QueryTool_InterfaceupdatedStudy - the new version of the previously created/edited clinical study.start - the start time of the create protocol process.java.lang.Exception - the exceptionpublic java.lang.String editProtocolFromURI(java.lang.String uriProtocol,
java.lang.Object updatedprotocol,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfaceeditProtocolFromURI in interface ProvenanceWS_QueryTool_InterfaceuriProtocol - the uri protocolupdatedprotocol - the updatedprotocolstart - the start time of the create protocol process.java.lang.Exception - the exceptionpublic java.lang.String editProtocol(java.lang.Object updatedprotocol,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfaceeditProtocol in interface ProvenanceWS_QueryTool_Interfaceupdatedprotocol - the new version of the previously created/edited protocolstart - the start time of the create protocol process.java.lang.Exception - the exceptionpublic java.lang.String editECFromURI(java.lang.String uriEC,
java.lang.Object updatedEC,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfaceeditECFromURI in interface ProvenanceWS_QueryTool_InterfaceuriEC - the URI of an eligibility criteria.updatedEC - the updated eligibility criteria.start - the start time of the create protocol process.java.lang.Exception - the exceptionpublic java.lang.String editEC(java.lang.Object updatedEC,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfaceeditEC in interface ProvenanceWS_QueryTool_InterfaceupdatedEC - the new version of the previously created/edited eligibility criteria.start - the start time of the create protocol process.java.lang.Exception - the exceptionpublic void basicQueryEC(int rowNumberResults,
java.util.List firstRowResult,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfacebasicQueryEC in interface ProvenanceWS_QueryTool_InterfacerowNumberResults - the number of row of the result.firstRowResult - the first row result.start - the start time of the query process.java.lang.Exception - the exceptionpublic java.lang.String createNewQueryEC()
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfacecreateNewQueryEC in interface ProvenanceWS_QueryTool_Interfacejava.lang.Exceptionpublic java.lang.String localqueryEC(java.lang.String queryExecutionURI,
java.lang.String localDBURL,
java.lang.String query,
int rowNumberResults,
java.util.List firstRowResult,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfacelocalqueryEC in interface ProvenanceWS_QueryTool_InterfacequeryExecutionURI - the URI returned by createNewGroupQueryEC() method.localDBURL - the URL of the accessed DB.query - the executed query.firstRowResult - the first row result.start - the start time of the local query process.java.lang.Exception - the exceptionpublic void agregateLocalQueryECResults(java.lang.String queryExecutionURI,
int rowNumberResults,
java.util.List firstRowResult,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfaceagregateLocalQueryECResults in interface ProvenanceWS_QueryTool_InterfacequeryExecutionURI - the URI returned by createNewGroupQueryEC() method.firstRowResult - the first row result.start - the start time of the local query process.java.lang.Exception - the exceptionpublic java.lang.String submitPatientCountQuery(java.lang.String uriEC,
java.lang.Object CDIMquery,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfacesubmitPatientCountQuery in interface ProvenanceWS_QueryTool_InterfaceuriEC - the URI of the EC for which the count is processed.CDIMquery - the CDIM query that express this request.start - the start time of the process.java.lang.Exception - the exceptionpublic void recoverPatientCountQuery(java.lang.String uriSubmittedQueryA,
long patientCount,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfacerecoverPatientCountQuery in interface ProvenanceWS_QueryTool_InterfaceuriSubmittedQueryA - the URI of the patient count process, as returned by submitPatientCountQuery() method.patientCount - the total number of patients for the selected EC.start - the start time of the process.java.lang.Exception - the exceptionpublic java.lang.String submitFlaggedPatientSet(java.lang.String uriEC,
java.lang.Object query,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfacesubmitFlaggedPatientSet in interface ProvenanceWS_QueryTool_InterfaceuriEC - the URI of the EC for which the count is processed.query - the query that express this data request.start - the start time of the process.java.lang.Exception - the exceptionpublic java.lang.String recoverFlaggedPatientSet(java.lang.String uriSubmittedQueryA,
java.lang.Object flaggedPatientSetId,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfacerecoverFlaggedPatientSet in interface ProvenanceWS_QueryTool_InterfaceuriSubmittedQueryA - the URI of the flagging process, as returned by submitFlaggedPatientSet() method.flaggedPatientSetId - the identifier of the flagged Patient set ID. The value returned by toString() method of this object will be maintaIn the provenance db.start - the start time of the process.java.lang.Exception - the exceptionpublic java.lang.String createDataExtraction(java.lang.Object dataToExtract,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfacecreateDataExtraction in interface ProvenanceWS_QueryTool_InterfacedataToExtract - the description of the data to extract. The value returned by toString() method of this object will be maintaIn the provenance db.start - the start time of the process.java.lang.Exception - the exceptionpublic java.lang.String editDataExtraction(java.lang.Object updatedDE,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfaceeditDataExtraction in interface ProvenanceWS_QueryTool_InterfaceupdatedDE - the new version of the previously created/edited data extraction object.start - the start time of the process.java.lang.Exception - the exceptionpublic java.lang.String editDataExtractionFromURI(java.lang.String dataExtractionURI,
java.lang.Object updatedDE,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfaceeditDataExtractionFromURI in interface ProvenanceWS_QueryTool_InterfacedataExtractionURI - the URI of a data extraction provenance entity.updatedDE - the updated data extraction object.start - the start time of the process.java.lang.Exception - the exceptionpublic java.lang.String submitDataExtractionQuery(java.lang.String dataExtractionUri,
java.lang.String uriFlaggedPatientSet,
java.lang.String DQT_uriQuery,
java.lang.Object CDIMquery,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfacesubmitDataExtractionQuery in interface ProvenanceWS_QueryTool_InterfacedataExtractionUri - the URI of a data extraction provenance entity.uriFlaggedPatientSet - the URI of the provenance flagged Patient Set entity,as returned by recoverFlaggedPatientSet() method.DQT_uriQuery - the URI of the data quality query provenance entity, as the first element in the list returned by createAndAnswerQuery method in Data Quality Web service.CDIMquery - the CDIM query that express this request.start - the start time of the process.java.lang.Exception - the exceptionpublic java.lang.String recoverDataExtractionQuery(java.lang.String submittedQueryA,
java.lang.Object linkToExtractedData,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_QueryTool_InterfacerecoverDataExtractionQuery in interface ProvenanceWS_QueryTool_InterfacesubmittedQueryA - the URI of a data extraction process provenance entity.linkToExtractedData - the link to the extracted data. The value returned by toString() method of this object will be maintaIn the provenance db.start - the start time of the process.java.lang.Exception - the exceptionpublic java.lang.String startPackageData(java.lang.String uriDataToPackage,
java.util.Date start)
throws java.lang.Exception
CommomInstantiationInterfacestartPackageData in interface CommomInstantiationInterfacestartPackageData in class CommonInstantiationuriDataToPackage - the uri of the artifact associated to the object to be transmitted. This value needs to be obtained
through any of the provenance server method.start - the time in which the packaging process started.java.lang.Exceptionpublic void endsPackageData(java.lang.Object signedDetails,
java.lang.Object encryptedPackage)
throws java.lang.Exception
CommomInstantiationInterfaceendsPackageData in interface CommomInstantiationInterfaceendsPackageData in class CommonInstantiationsignedDetails - sign object created during encryptation.encryptedPackage - the encrypted object.java.lang.Exceptionpublic void sendData(java.lang.String receptorQueueName,
java.lang.String encryptedDataA)
throws java.lang.Exception
CommomInstantiationInterfacesendData in interface CommomInstantiationInterfacesendData in class CommonInstantiationreceptorQueueName - an string that identifies the queue that controls the sent data messages (e.g. "QW2MW", "MW2DC", etc.).encryptedDataA - identifier of the encryptedData artifact, as returned by the packageData method.java.lang.Exceptionpublic java.lang.String receiveData(java.lang.String receptorQueueName,
java.lang.Object encryptedReceivedData)
throws java.lang.Exception
CommomInstantiationInterfacereceiveData in interface CommomInstantiationInterfacereceiveData in class CommonInstantiationreceptorQueueName - an string that identifies the queue that controls the reception of data messages (e.g. "QW2MW", "MW2DC", etc.).encryptedReceivedData - an object describing the data recovered from the queue.java.lang.Exceptionpublic java.lang.String unpackageData(java.lang.String encryptedReceivedDataA,
java.lang.String provenanceA,
java.lang.Object decryptedDataA,
java.util.Date start)
throws java.lang.Exception
CommomInstantiationInterfaceunpackageData in interface CommomInstantiationInterfaceunpackageData in class CommonInstantiationencryptedReceivedDataA - identifier of the generated encrypted received data artifact, as returned by receiveData or packageData methodsprovenanceA - identifier of the provenance artifact from which the encrypted received data comes from. This data needs to be extracted
from the transmitted package, and should contain the artifact identifier of the transmitted data.decryptedDataA - an object describing the data decrypted data.start - the time when the unpackage process starts.java.lang.Exception