aboutsummaryrefslogtreecommitdiff
path: root/DocumentService/src/eu/stork/documentservice/data/DatabaseConnector.java
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2016-02-17 07:00:09 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2016-02-17 07:00:09 +0100
commit07c6114a266a67abd404bac8703c1a17e035d69d (patch)
tree893d8a4873566b2bf3d4dc8d35d02e636a9d38cd /DocumentService/src/eu/stork/documentservice/data/DatabaseConnector.java
parent274a85e53fa8c06a869f2bb3a7bd24300ee9b3fd (diff)
downloadmoa-id-spss-07c6114a266a67abd404bac8703c1a17e035d69d.tar.gz
moa-id-spss-07c6114a266a67abd404bac8703c1a17e035d69d.tar.bz2
moa-id-spss-07c6114a266a67abd404bac8703c1a17e035d69d.zip
remove STORK code --> MOA-ID >= 3.2 only supports eIDAS protocol
Diffstat (limited to 'DocumentService/src/eu/stork/documentservice/data/DatabaseConnector.java')
-rw-r--r--DocumentService/src/eu/stork/documentservice/data/DatabaseConnector.java117
1 files changed, 0 insertions, 117 deletions
diff --git a/DocumentService/src/eu/stork/documentservice/data/DatabaseConnector.java b/DocumentService/src/eu/stork/documentservice/data/DatabaseConnector.java
deleted file mode 100644
index 26bd0c405..000000000
--- a/DocumentService/src/eu/stork/documentservice/data/DatabaseConnector.java
+++ /dev/null
@@ -1,117 +0,0 @@
-package eu.stork.documentservice.data;
-
-import eu.stork.documentservice.exceptions.DatabaseException;
-import eu.stork.documentservice.model.DocumentModel;
-import eu.stork.documentservice.model.RequestModel;
-import eu.stork.documentservice.model.TempDocumentModel;
-
-public interface DatabaseConnector {
-
- /**
- * Add document to database
- * @param document The document model to add
- * @return True if successful
- * @throws DatabaseException
- */
- public abstract boolean addDocument(DocumentModel document)
- throws DatabaseException;
-
- /**
- * Update document in database
- * @param document The document model to update
- * @return True if successful
- * @throws DatabaseException
- */
- public abstract boolean updateDocument(DocumentModel document)
- throws DatabaseException;
-
- /**
- * Get Document from database
- * @param docId Document ID
- * @return The document found
- * @throws DatabaseException
- */
- public abstract DocumentModel getDocument(String docId)
- throws DatabaseException;
-
- /**
- * Delete Document from database
- * @param docId Document ID
- * @return true if successful
- * @throws DatabaseException
- */
- public abstract boolean deleteDocument(String docId)
- throws DatabaseException;
-
- /**
- * Add request to database
- * @param request The request to add
- * @return True if successful
- * @throws DatabaseException
- */
- public abstract boolean addRequest(RequestModel request)
- throws DatabaseException;
-
- /**
- * Get request from database
- * @param requestId The request id
- * @return The request found
- * @throws DatabaseException
- */
- public abstract RequestModel getRequest(String requestId)
- throws DatabaseException;
-
- /**
- * Get request from database
- * @param docId The document id
- * @return The request found
- * @throws DatabaseException
- */
- public abstract RequestModel getRequestByDocId(String docId)
- throws DatabaseException;
-
- /**
- * Update request in database
- * @param request The request to update
- * @return True if successful
- * @throws DatabaseException
- */
- public abstract boolean updateRequest(RequestModel request)
- throws DatabaseException;
-
- /**
- * Add temp document to database
- * @param document The document model to add
- * @return True if successful
- * @throws DatabaseException
- */
- public abstract boolean addTempDocument(TempDocumentModel document)
- throws DatabaseException;
-
- /**
- * Get temp document from database
- * @param docId Document ID
- * @return The document found
- * @throws DatabaseException
- */
- public abstract TempDocumentModel getTempDocument(String docId)
- throws DatabaseException;
-
- /**
- * Update temp document in database
- * @param document The document model to update
- * @return True if successful
- * @throws DatabaseException
- */
- public abstract boolean updateTempDocument(TempDocumentModel document)
- throws DatabaseException;
-
- /**
- * Delete temp document from database
- * @param docId Document ID
- * @return true if successful
- * @throws DatabaseException
- */
- public abstract boolean deleteTempDocument(String docId)
- throws DatabaseException;
-} \ No newline at end of file