Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/CreateCollectionServiceImpl.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 |
---|---|
37 */ | 37 */ |
38 public class CreateCollectionServiceImpl | 38 public class CreateCollectionServiceImpl |
39 extends RemoteServiceServlet | 39 extends RemoteServiceServlet |
40 implements CreateCollectionService | 40 implements CreateCollectionService |
41 { | 41 { |
42 /** Private logger. */ | 42 /** Private log. */ |
43 private static final Logger logger = | 43 private static final Logger log = |
44 Logger.getLogger(CreateCollectionServiceImpl.class); | 44 Logger.getLogger(CreateCollectionServiceImpl.class); |
45 | 45 |
46 /** XPath to figure out the uuid of the created collection.*/ | 46 /** XPath to figure out the uuid of the created collection.*/ |
47 public static final String XPATH_COLLECTION_UUID = | 47 public static final String XPATH_COLLECTION_UUID = |
48 "/art:result/art:artifact-collection/@art:uuid"; | 48 "/art:result/art:artifact-collection/@art:uuid"; |
59 | 59 |
60 /** Attempt creation of Collection. */ | 60 /** Attempt creation of Collection. */ |
61 public Collection create(String locale, String ownerId) | 61 public Collection create(String locale, String ownerId) |
62 throws ServerException | 62 throws ServerException |
63 { | 63 { |
64 logger.info("Start creating a new collection."); | 64 log.info("Start creating a new collection."); |
65 | 65 |
66 String url = getServletContext().getInitParameter("server-url"); | 66 String url = getServletContext().getInitParameter("server-url"); |
67 | 67 |
68 Document create = | 68 Document create = |
69 ClientProtocolUtils.newCreateCollectionDocument(null); | 69 ClientProtocolUtils.newCreateCollectionDocument(null); |
84 } | 84 } |
85 | 85 |
86 return new DefaultCollection(uuid, Long.valueOf(ttlStr), uuid); | 86 return new DefaultCollection(uuid, Long.valueOf(ttlStr), uuid); |
87 } | 87 } |
88 catch (ConnectionException ce) { | 88 catch (ConnectionException ce) { |
89 logger.error(ce, ce); | 89 log.error(ce, ce); |
90 } | 90 } |
91 | 91 |
92 throw new ServerException(ERROR_CREATE_COLLECTION); | 92 throw new ServerException(ERROR_CREATE_COLLECTION); |
93 } | 93 } |
94 } | 94 } |