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;
}