# HG changeset patch # User Sascha L. Teichmann # Date 1299145982 0 # Node ID a76de72ad6d14cc8fc6ae249ff013713e0ab4c93 # Parent f797093c60bd68c79d3395bfa92e61cae7c08bb4 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 diff -r f797093c60bd -r a76de72ad6d1 ChangeLog --- 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 + + * 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 * artifact-database/doc/example-conf/conf.xml: Added a node that diff -r f797093c60bd -r a76de72ad6d1 artifact-database/doc/schema-h2.sql --- 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) ); diff -r f797093c60bd -r a76de72ad6d1 artifact-database/doc/schema-pg.sql --- 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) ); diff -r f797093c60bd -r a76de72ad6d1 artifact-database/src/main/java/de/intevation/artifactdatabase/Backend.java --- 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 :