Package org.fao.geonet.repository

Examples of org.fao.geonet.repository.CswCapabilitiesInfoFieldRepository


        List<Language> languages = serviceContext.getBean(LanguageRepository.class).findAll();

        List<CswCapabilitiesInfoField> toSave = new ArrayList<CswCapabilitiesInfoField>();

        final CswCapabilitiesInfoFieldRepository capabilitiesInfoFieldRepository = serviceContext.getBean(CswCapabilitiesInfoFieldRepository.class);
        for (Language language : languages) {
            CswCapabilitiesInfo cswCapInfo = capabilitiesInfoFieldRepository.findCswCapabilitiesInfo(language.getId());

            final String langId = language.getId();
            cswCapInfo.setTitle(getValue(params, "csw.title_" + langId));
            cswCapInfo.setAbstract(getValue(params, "csw.abstract_" + langId));
            cswCapInfo.setFees(getValue(params, "csw.fees_" + langId));
            cswCapInfo.setAccessConstraints(getValue(params, "csw.accessConstraints_" + langId));

            toSave.addAll(cswCapInfo.getFields());
        }

        capabilitiesInfoFieldRepository.save(toSave);
    }
View Full Code Here


                setInspireLanguages(capabilities, langCodes, currentLanguage, defaultLanguage.getId());
            } else {
                currentLanguage = context.getLanguage();
            }

            final CswCapabilitiesInfoFieldRepository infoRepository = context.getBean(CswCapabilitiesInfoFieldRepository.class);
            CswCapabilitiesInfo cswCapabilitiesInfo = infoRepository.findCswCapabilitiesInfo(currentLanguage);

            // Retrieve contact data from users table
            String contactId = gc.getBean(SettingManager.class).getValue("system/csw/contactId");
            if ((contactId == null) || (contactId.equals(""))) {
                contactId = "-1";
View Full Code Here

TOP

Related Classes of org.fao.geonet.repository.CswCapabilitiesInfoFieldRepository

Copyright © 2018 www.massapicom. 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.