Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/CollectionAttributeServiceImpl.java @ 526:96e60e0a4345
Added a service stub to update/modify the attribute of a collection (used in the theme control panel).
flys-client/trunk@2005 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 25 May 2011 14:58:42 +0000 |
parents | |
children | 26e38b79658d |
comparison
equal
deleted
inserted
replaced
525:fc994da131f9 | 526:96e60e0a4345 |
---|---|
1 package de.intevation.flys.client.server; | |
2 | |
3 import de.intevation.flys.client.shared.exceptions.ServerException; | |
4 import de.intevation.flys.client.shared.model.Collection; | |
5 | |
6 import de.intevation.flys.client.client.services.CollectionAttributeService; | |
7 | |
8 | |
9 /** | |
10 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
11 */ | |
12 public class CollectionAttributeServiceImpl | |
13 extends DescribeCollectionServiceImpl | |
14 implements CollectionAttributeService | |
15 { | |
16 public Collection update(Collection collection, String url, String locale) | |
17 throws ServerException | |
18 { | |
19 System.out.println("CollectionAttributeServiceImpl.update"); | |
20 | |
21 // TODO Implement the correct update process here! | |
22 try { | |
23 Thread.currentThread().sleep(5000); | |
24 } | |
25 catch (InterruptedException ie) { | |
26 // do nothing | |
27 } | |
28 | |
29 return describe(collection.identifier(), url, locale); | |
30 } | |
31 } | |
32 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |