comparison artifact-database/src/main/java/de/intevation/artifactdatabase/rest/CollectionResource.java @ 252:6de74b0b878e

Changed the method names to get and set the attributes of collection items. artifacts/trunk@1745 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 26 Apr 2011 06:56:01 +0000
parents 171b6200d26d
children a2df2b48d2aa
comparison
equal deleted inserted replaced
251:9e12f3fbcf78 252:6de74b0b878e
134 } 134 }
135 else if (action.equals(ACTION_SET_ATTRIBUTE)) { 135 else if (action.equals(ACTION_SET_ATTRIBUTE)) {
136 String art = getArtifactIdentifier(source); 136 String art = getArtifactIdentifier(source);
137 137
138 logger.info("Set attribute for artifact '" + art + "'"); 138 logger.info("Set attribute for artifact '" + art + "'");
139 out = db.setCollectionAttribute(identifier, art, source, meta); 139 out = db.setCollectionItemAttribute(identifier, art, source, meta);
140 } 140 }
141 else if (action.equals(ACTION_GET_ATTRIBUTE)) { 141 else if (action.equals(ACTION_GET_ATTRIBUTE)) {
142 String art = getArtifactIdentifier(source); 142 String art = getArtifactIdentifier(source);
143 143
144 logger.info("Retrieve attribute of artifact '" + art + "'"); 144 logger.info("Retrieve attribute of artifact '" + art + "'");
145 out = db.getCollectionAttribute(identifier, art, meta); 145 out = db.getCollectionItemAttribute(identifier, art, meta);
146 } 146 }
147 else { 147 else {
148 throw new ArtifactDatabaseException(NO_SUCH_ACTION_MSG); 148 throw new ArtifactDatabaseException(NO_SUCH_ACTION_MSG);
149 } 149 }
150 } 150 }

http://dive4elements.wald.intevation.org