ingo@598: package de.intevation.flys.client.server; ingo@598: ingo@598: import org.w3c.dom.Document; ingo@598: ingo@1367: import org.apache.log4j.Logger; ingo@1367: 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@1367: private static final Logger logger = ingo@1367: Logger.getLogger(SetCollectionNameServiceImpl.class); ingo@1367: ingo@1367: ingo@598: public void setName(Collection c, String url) ingo@598: throws ServerException ingo@598: { ingo@1367: logger.info("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 :