Package org.fao.geonet.repository

Examples of org.fao.geonet.repository.MapServerRepository.save()


                    .setWfsurl(Util.getParam(params, "wfsurl", ""))
                    .setWcsurl(Util.getParam(params, "wcsurl", ""))
                    .setStylerurl(Util.getParam(params, "stylerurl", ""))
                    .setNamespace(Util.getParam(params, "namespace", ""))
                    .setNamespacePrefix(Util.getParam(params, "namespaceprefix", ""));
                repo.save(m);
            }
            return new Element(action.toString()).setText("ok");
        } else if (action.equals(ACTION.UPDATE_NODE_ACCOUNT)) {
            MapServer m = repo.findOneById(Util.getParam(params, "id"));
            if (m != null) {
View Full Code Here


        } else if (action.equals(ACTION.UPDATE_NODE_ACCOUNT)) {
            MapServer m = repo.findOneById(Util.getParam(params, "id"));
            if (m != null) {
                m.setUsername(Util.getParam(params, "username", ""))
                    .setPassword(Util.getParam(params, "password", ""));
                repo.save(m);
            }
            return new Element(action.toString()).setText("ok");
        } else if (action.equals(ACTION.CREATE) || action.equals(ACTION.UPDATE)
          || action.equals(ACTION.DELETE) || action.equals(ACTION.GET)) {
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.