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, logout
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closeSession, createSession, getSyncDateTime, login, logout
public 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.Exception
public java.lang.String createStudy(java.lang.String projectName, java.lang.Object clStudy, java.util.Date start) throws java.lang.Exception
ProvenanceWS_QueryTool_Interface
createStudy
in interface ProvenanceWS_QueryTool_Interface
projectName
- 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_Interface
createProtocol
in interface ProvenanceWS_QueryTool_Interface
protocol
- 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_Interface
createEC
in interface ProvenanceWS_QueryTool_Interface
eligCriteria
- 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_Interface
editStudyFromURI
in interface ProvenanceWS_QueryTool_Interface
uriStudy
- 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_Interface
editStudy
in interface ProvenanceWS_QueryTool_Interface
updatedStudy
- 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_Interface
editProtocolFromURI
in interface ProvenanceWS_QueryTool_Interface
uriProtocol
- 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_Interface
editProtocol
in interface ProvenanceWS_QueryTool_Interface
updatedprotocol
- 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_Interface
editECFromURI
in interface ProvenanceWS_QueryTool_Interface
uriEC
- 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_Interface
editEC
in interface ProvenanceWS_QueryTool_Interface
updatedEC
- 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_Interface
basicQueryEC
in interface ProvenanceWS_QueryTool_Interface
rowNumberResults
- 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_Interface
createNewQueryEC
in interface ProvenanceWS_QueryTool_Interface
java.lang.Exception
public 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_Interface
localqueryEC
in interface ProvenanceWS_QueryTool_Interface
queryExecutionURI
- 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_Interface
agregateLocalQueryECResults
in interface ProvenanceWS_QueryTool_Interface
queryExecutionURI
- 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_Interface
submitPatientCountQuery
in interface ProvenanceWS_QueryTool_Interface
uriEC
- 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_Interface
recoverPatientCountQuery
in interface ProvenanceWS_QueryTool_Interface
uriSubmittedQueryA
- 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_Interface
submitFlaggedPatientSet
in interface ProvenanceWS_QueryTool_Interface
uriEC
- 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_Interface
recoverFlaggedPatientSet
in interface ProvenanceWS_QueryTool_Interface
uriSubmittedQueryA
- 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_Interface
createDataExtraction
in interface ProvenanceWS_QueryTool_Interface
dataToExtract
- 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_Interface
editDataExtraction
in interface ProvenanceWS_QueryTool_Interface
updatedDE
- 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_Interface
editDataExtractionFromURI
in interface ProvenanceWS_QueryTool_Interface
dataExtractionURI
- 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_Interface
submitDataExtractionQuery
in interface ProvenanceWS_QueryTool_Interface
dataExtractionUri
- 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_Interface
recoverDataExtractionQuery
in interface ProvenanceWS_QueryTool_Interface
submittedQueryA
- 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
CommomInstantiationInterface
startPackageData
in interface CommomInstantiationInterface
startPackageData
in class CommonInstantiation
uriDataToPackage
- 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.Exception
public void endsPackageData(java.lang.Object signedDetails, java.lang.Object encryptedPackage) throws java.lang.Exception
CommomInstantiationInterface
endsPackageData
in interface CommomInstantiationInterface
endsPackageData
in class CommonInstantiation
signedDetails
- sign object created during encryptation.encryptedPackage
- the encrypted object.java.lang.Exception
public void sendData(java.lang.String receptorQueueName, java.lang.String encryptedDataA) throws java.lang.Exception
CommomInstantiationInterface
sendData
in interface CommomInstantiationInterface
sendData
in class CommonInstantiation
receptorQueueName
- 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.Exception
public java.lang.String receiveData(java.lang.String receptorQueueName, java.lang.Object encryptedReceivedData) throws java.lang.Exception
CommomInstantiationInterface
receiveData
in interface CommomInstantiationInterface
receiveData
in class CommonInstantiation
receptorQueueName
- 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.Exception
public java.lang.String unpackageData(java.lang.String encryptedReceivedDataA, java.lang.String provenanceA, java.lang.Object decryptedDataA, java.util.Date start) throws java.lang.Exception
CommomInstantiationInterface
unpackageData
in interface CommomInstantiationInterface
unpackageData
in class CommonInstantiation
encryptedReceivedDataA
- 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