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, logout
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closeSession, createSession, getSyncDateTime, login, logout
public 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.Exception
public ProvenanceWS_DataConnectorTool() throws java.lang.Exception
java.lang.Exception
public 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
public 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_Interface
translateCDIMQuery
in interface ProvenanceWS_DataConnector_Interface
java.lang.Exception
public java.lang.String excecuteSQLQuery(java.lang.Object sqlResultsQuery, java.util.Date start) throws java.lang.Exception
excecuteSQLQuery
in interface ProvenanceWS_DataConnector_Interface
java.lang.Exception