Add OpenConnection

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/document-store-lib-couchdb@142229 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Alessandro Pieve 2017-02-06 08:42:43 +00:00
parent 9e86d6b341
commit 7b19820b88
2 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@
</parent>
<groupId>org.gcube.data.publishing</groupId>
<artifactId>document-store-lib-couchdb</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>1.1.1-SNAPSHOT</version>
<name>Document Store CouchDB Connector</name>
<description>Document Store Connector for CouchDB</description>

View File

@ -51,7 +51,8 @@ public class PersistenceCouchDB extends PersistenceBackend {
httpCouchClient = new HttpCouchClient(url, dbName, username, password);
}
@Override
public void openConnection() throws Exception {}
protected void createItem(JsonNode node, String id) throws Exception {
httpCouchClient.put(node.toString(), id);
}