Package org.fao.geonet.repository

Examples of org.fao.geonet.repository.GroupRepository.update()


            groupRepository.save(group);

            elRes.addContent(new Element(Jeeves.Elem.OPERATION).setText(Jeeves.Text.ADDED));
        } else {
            final String finalWebsite = website;
            groupRepository.update(Integer.valueOf(id), new Updater<Group>() {
                @Override
                public void apply(final Group entity) {
                    entity.setEmail(email)
                            .setName(name)
                            .setDescription(description)
View Full Code Here


            String id = Util.getAttrib(groupEl, Params.ID);
            final Element label = Util.getChild(groupEl, "label");


            groupRepository.update(Integer.valueOf(id), new Updater<Group>() {
                @Override
                public void apply(@Nonnull Group group) {
                    for (Object t : label.getChildren()) {
                        Element translationEl = (Element) t;
                        group.getLabelTranslations().put(translationEl.getName(), translationEl.getText());
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.