Package org.fao.geonet.repository

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


            // insert
            if (!notificationTarget.isPreExisting() && StringUtils.isNotBlank(notificationTarget.getName())
                    && StringUtils.isNotBlank(notificationTarget.getUrl())) {

                notifierRepository.save(metadataNotifier);
            } else if(notificationTarget.isPreExisting()) {
                // pre-existing
                String id = notificationTarget.getId();
                // delete
                if(notificationTarget.getName() == null) {
View Full Code Here


                    int iid = Integer.parseInt(id);
                    notificationRepository.deleteAllWithNotifierId(iid);
                    notifierRepository.delete(iid);
                } else {
                    // update
                    notifierRepository.save(metadataNotifier);
                }
            }
        }

    return new Element("ok");
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.