changeset 156:a76de72ad6d1

Added stubs for the collection handling in db backend. Added missing attribute column to the collection item table. artifacts/trunk@1381 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 03 Mar 2011 09:53:02 +0000
parents f797093c60bd
children 6e6965873a48
files ChangeLog artifact-database/doc/schema-h2.sql artifact-database/doc/schema-pg.sql artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java
diffstat 4 files changed, 64 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Mar 03 09:51:09 2011 +0000
+++ b/ChangeLog	Thu Mar 03 09:53:02 2011 +0000
@@ -1,3 +1,11 @@
+2011-03-03	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
+
+	* artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java:
+	  Added stubs for the collection handling.
+
+	* artifact-database/doc/schema-pg.sql, artifact-database/doc/schema-h2.sql:
+	  Added missing attribute column to the collection item table.
+
 2011-03-03  Ingo Weinzierl <ingo@intevation.de>
 
 	* artifact-database/doc/example-conf/conf.xml: Added a node that
--- a/artifact-database/doc/schema-h2.sql	Thu Mar 03 09:51:09 2011 +0000
+++ b/artifact-database/doc/schema-h2.sql	Thu Mar 03 09:53:02 2011 +0000
@@ -45,6 +45,7 @@
     id            INT PRIMARY KEY NOT NULL,
     collection_id INT             NOT NULL REFERENCES collections(id),
     artifact_id   INT             NOT NULL REFERENCES artifacts(id),
+    attribute     BINARY,
     UNIQUE (collection_id, artifact_id)
 );
 
--- a/artifact-database/doc/schema-pg.sql	Thu Mar 03 09:51:09 2011 +0000
+++ b/artifact-database/doc/schema-pg.sql	Thu Mar 03 09:53:02 2011 +0000
@@ -45,6 +45,7 @@
     id            int PRIMARY KEY NOT NULL,
     collection_id int             NOT NULL REFERENCES collections(id),
     artifact_id   int             NOT NULL REFERENCES artifacts(id),
+    attribute     BINARY,
     UNIQUE (collection_id, artifact_id)
 );
 
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java	Thu Mar 03 09:51:09 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java	Thu Mar 03 09:53:02 2011 +0000
@@ -1080,5 +1080,59 @@
 
         return null;
     }
+
+    public Collection [] listCollections(String userId) {
+        // TODO: Implement me!
+        return null;
+    }
+
+    public Collection createCollection(String ownerId, Document data) {
+        // TODO: Implement me!
+        return null;
+    }
+
+    public boolean deleteCollection(String collectionId) {
+        // TODO: Implement me!
+        return false;
+    }
+
+    public Document getCollectionAttribute(
+        String collectionId,
+        String artifactId
+    ) {
+        // TODO: Implement me!
+        return null;
+    }
+
+    public boolean setCollectionAttribute(
+        String collectionId, 
+        String artifactId,
+        Document attribute
+    ) {
+        // TODO: Implement me!
+        return false;
+    }
+
+    public boolean addCollectionArtifact(
+        String collectionId,
+        String artifactId
+    ) {
+        // TODO: Implement me!
+        return false;
+    }
+
+    public boolean removeCollectionArtifact(
+        String collectionId,
+        String artifactId
+    ) {
+        // TODO: Implement me!
+        return false;
+    }
+
+    public Collection [] listCollectionArtifacts(String collectionId) {
+        // TODO: Implement me!
+        return null;
+    }
+
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org