Package org.fao.geonet.domain.responses

Examples of org.fao.geonet.domain.responses.CswConfigurationResponse


            MediaType.APPLICATION_XML_VALUE, MediaType.APPLICATION_JSON_VALUE })
    public @ResponseBody
    CswConfigurationResponse exec() throws Exception {
        SettingManager sm = jeevesApplicationContext.getBean(SettingManager.class);

        CswConfigurationResponse response = new CswConfigurationResponse();

        String cswContactIdValue = sm.getValue("system/csw/contactId");
        if (cswContactIdValue == null) {
            cswContactIdValue = "-1";
        }

        java.util.List<CswCapabilitiesInfoField> capabilitiesInfoFields = infoFieldRepository.findAll(); //AsXml();

        response.setCswEnabled(sm.getValueAsBool("system/csw/enable"));
        response.setCswMetadataPublic(sm.getValueAsBool("system/csw/metadataPublic"));
        response.setCswContactId(Integer.parseInt(cswContactIdValue));
        response.setCapabilitiesInfoFields(capabilitiesInfoFields);

        return response;
    }
View Full Code Here

TOP

Related Classes of org.fao.geonet.domain.responses.CswConfigurationResponse

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.