ingo@598: package de.intevation.flys.client.server; ingo@598: ingo@598: import org.w3c.dom.Document; ingo@598: ingo@598: import de.intevation.artifacts.common.utils.ClientProtocolUtils; ingo@598: ingo@598: import de.intevation.flys.client.shared.exceptions.ServerException; ingo@598: import de.intevation.flys.client.shared.model.Collection; ingo@598: import de.intevation.flys.client.client.services.SetCollectionNameService; ingo@598: ingo@598: ingo@598: /** ingo@598: * @author Ingo Weinzierl ingo@598: */ ingo@598: public class SetCollectionNameServiceImpl ingo@599: extends DoCollectionAction ingo@598: implements SetCollectionNameService ingo@598: { ingo@598: public void setName(Collection c, String url) ingo@598: throws ServerException ingo@598: { ingo@599: System.out.println("Set name of collection: " + c.identifier()); ingo@599: ingo@599: String name = c.getName(); ingo@599: Document set = ClientProtocolUtils.newSetCollectionNameDocument(name); ingo@599: ingo@599: doAction(c, set, url); ingo@598: } ingo@598: } ingo@598: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :