comparison gwt-client/src/main/java/org/dive4elements/river/client/server/CollectionAttributeServiceImpl.java @ 8203:238fc722f87a

sed 's/logger/log/g' src/**/*.java
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Sep 2014 13:19:22 +0200
parents ea9eef426962
children 0a5239a1e46e
comparison
equal deleted inserted replaced
8202:e4606eae8ea5 8203:238fc722f87a
30 */ 30 */
31 public class CollectionAttributeServiceImpl 31 public class CollectionAttributeServiceImpl
32 extends DescribeCollectionServiceImpl 32 extends DescribeCollectionServiceImpl
33 implements CollectionAttributeService 33 implements CollectionAttributeService
34 { 34 {
35 private static final Logger logger = 35 private static final Logger log =
36 Logger.getLogger(CollectionAttributeServiceImpl.class); 36 Logger.getLogger(CollectionAttributeServiceImpl.class);
37 37
38 38
39 public static final String ERROR_UPDATING_COLLECTION_ATTRIBUTE = 39 public static final String ERROR_UPDATING_COLLECTION_ATTRIBUTE =
40 "error_update_collection_attribute"; 40 "error_update_collection_attribute";
41 41
42 42
43 public Collection update(Collection collection, String locale) 43 public Collection update(Collection collection, String locale)
44 throws ServerException 44 throws ServerException
45 { 45 {
46 logger.info("CollectionAttributeServiceImpl.update"); 46 log.info("CollectionAttributeServiceImpl.update");
47 47
48 String url = getServletContext().getInitParameter("server-url"); 48 String url = getServletContext().getInitParameter("server-url");
49 49
50 Document attribute = CollectionHelper.createAttribute(collection); 50 Document attribute = CollectionHelper.createAttribute(collection);
51 Document action = ClientProtocolUtils.newSetAttributeDocument( 51 Document action = ClientProtocolUtils.newSetAttributeDocument(
57 Document res = (Document) http.doCollectionAction( 57 Document res = (Document) http.doCollectionAction(
58 action, 58 action,
59 collection.identifier(), 59 collection.identifier(),
60 new DocumentResponseHandler()); 60 new DocumentResponseHandler());
61 61
62 logger.debug("Collection attribute successfully set."); 62 log.debug("Collection attribute successfully set.");
63 63
64 return describe(collection.identifier(), locale); 64 return describe(collection.identifier(), locale);
65 } 65 }
66 catch (ConnectionException ce) { 66 catch (ConnectionException ce) {
67 logger.error(ce, ce); 67 log.error(ce, ce);
68 } 68 }
69 69
70 throw new ServerException(ERROR_UPDATING_COLLECTION_ATTRIBUTE); 70 throw new ServerException(ERROR_UPDATING_COLLECTION_ATTRIBUTE);
71 } 71 }
72 } 72 }

http://dive4elements.wald.intevation.org