Mercurial > dive4elements > river
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/server/CollectionAttributeServiceImpl.java Wed May 25 14:58:42 2011 +0000 @@ -0,0 +1,32 @@ +package de.intevation.flys.client.server; + +import de.intevation.flys.client.shared.exceptions.ServerException; +import de.intevation.flys.client.shared.model.Collection; + +import de.intevation.flys.client.client.services.CollectionAttributeService; + + +/** + * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> + */ +public class CollectionAttributeServiceImpl +extends DescribeCollectionServiceImpl +implements CollectionAttributeService +{ + public Collection update(Collection collection, String url, String locale) + throws ServerException + { + System.out.println("CollectionAttributeServiceImpl.update"); + + // TODO Implement the correct update process here! + try { + Thread.currentThread().sleep(5000); + } + catch (InterruptedException ie) { + // do nothing + } + + return describe(collection.identifier(), url, locale); + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :