Revision 58999
Added by Alessia Bardi about 2 years ago
modules/dnet-openaireplus-workflows/trunk/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/contexts/SaveContextProfileJobNode.java | ||
---|---|---|
59 | 59 |
} |
60 | 60 |
ctxElem.add(cat.asDomElement("category")); |
61 | 61 |
} |
62 |
log.info("registering profile context " + desc.getId()); |
|
63 |
return serviceLocator.getService(ISRegistryService.class).updateProfile(profId, doc.asXML(), "ContextDSResourceType"); |
|
62 |
log.info("updating profile context " + desc.getId()); |
|
63 |
String xml = doc.asXML(); |
|
64 |
log.debug(xml); |
|
65 |
return serviceLocator.getService(ISRegistryService.class).updateProfile(profId, xml, "ContextDSResourceType"); |
|
64 | 66 |
} |
65 | 67 |
|
66 | 68 |
private void updateContextParams(final Element ctxElement, ContextDesc desc) { |
... | ... | |
80 | 82 |
final Document doc = reader.read(getClass().getResourceAsStream( |
81 | 83 |
"/eu/dnetlib/msro/openaireplus/workflows/repo-hi/entityreg-contexts/xml/contextProfile.xml")); |
82 | 84 |
((Element) doc.selectSingleNode("//CONFIGURATION")).add(desc.asDomElement()); |
83 |
log.info("updating profile context " + desc.getId()); |
|
84 |
return serviceLocator.getService(ISRegistryService.class).registerProfile(doc.asXML()); |
|
85 |
log.info("registering profile context " + desc.getId()); |
|
86 |
String xml = doc.asXML(); |
|
87 |
log.debug(xml); |
|
88 |
return serviceLocator.getService(ISRegistryService.class).registerProfile(xml); |
|
85 | 89 |
} |
86 | 90 |
|
87 | 91 |
public String getContextObj() { |
Also available in: Unified diff
logs