Package org.fao.geonet.repository

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


           
            GroupRepository groupRepo = this.applicationContext.getBean(GroupRepository.class);
            Group group = groupRepo.findByName(groupName);
           
            if (group == null) {
                group = groupRepo.save(new Group().setName(groupName));
            } else {
                // Update something ?
                // Group description is only defined in catalog, not in LDAP for the time
                // being
            }
View Full Code Here


        if (groupProvided) {
            GroupRepository groupRepo = context.getBean(GroupRepository.class);
            Group group = groupRepo.findByName(groupName);

            if (group == null) {
                group = groupRepo.save(new Group().setName(groupName));
            }
            groupId = group.getId();
        }
        // --- update user information into the database
        if (username.length() > 256) // only accept the first 256 chars
View Full Code Here

            java.util.List<Language> allLanguages = langRepository.findAll();
            for (Language l : allLanguages) {
                group.getLabelTranslations().put(l.getId(), name);
            }

            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>() {
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.