eu.transformproject.provenance.ws
public class ProvenanceWS_DataConnectorTool extends CommonInstantiation implements ProvenanceWS_DataConnector_Interface
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DATA_CONNECTOR_GRAPH_PROJECT |
static java.lang.String |
MIDDLEWARE_GRAPH_PROJECT_NAME_IN_DCT |
MIDDLEWARE_GRAPH_PROJECT_NAME, server| Constructor and Description |
|---|
ProvenanceWS_DataConnectorTool() |
ProvenanceWS_DataConnectorTool(java.lang.String localZoneName,
java.lang.String fxmlConfig,
boolean isResource) |
| Modifier and Type | Method and Description |
|---|---|
void |
endsPackageData(java.lang.Object signedDetails,
java.lang.Object encryptedPackage)
Ends of the packaging process.
|
java.lang.String |
excecuteSQLQuery(java.lang.Object sqlResultsQuery,
java.util.Date start) |
java.lang.String |
receiveData(java.lang.String receptorQueueName,
java.lang.Object encryptedReceivedData)
Reception of an encrypted data.
|
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 |
translateCDIMQuery(java.lang.String dataSourceName,
java.lang.String receivedQueryA,
java.lang.String sqlQuery,
java.util.Date start)
translateCDIMQuery, annotates the translation from CDIM query to SQL query process at the moment it ends.
|
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 MIDDLEWARE_GRAPH_PROJECT_NAME_IN_DCT
public static java.lang.String DATA_CONNECTOR_GRAPH_PROJECT
public ProvenanceWS_DataConnectorTool(java.lang.String localZoneName,
java.lang.String fxmlConfig,
boolean isResource)
throws java.lang.Exception
java.lang.Exceptionpublic ProvenanceWS_DataConnectorTool()
throws java.lang.Exception
java.lang.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.Exceptionpublic java.lang.String translateCDIMQuery(java.lang.String dataSourceName,
java.lang.String receivedQueryA,
java.lang.String sqlQuery,
java.util.Date start)
throws java.lang.Exception
ProvenanceWS_DataConnector_InterfacetranslateCDIMQuery in interface ProvenanceWS_DataConnector_Interfacejava.lang.Exceptionpublic java.lang.String excecuteSQLQuery(java.lang.Object sqlResultsQuery,
java.util.Date start)
throws java.lang.Exception
excecuteSQLQuery in interface ProvenanceWS_DataConnector_Interfacejava.lang.Exception