Revision 46102
Added by Alessia Bardi over 7 years ago
modules/dnet-openaireplus-workflows/trunk/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/contexts/BuildH2020FETTaxonomy.java | ||
---|---|---|
113 | 113 |
} |
114 | 114 |
|
115 | 115 |
private void createHeader(final Element profile) { |
116 |
UUID uuid = UUID.randomUUID(); |
|
117 |
log.info("Generating profile with id "+uuid); |
|
118 | 116 |
Element header = profile.addElement("HEADER"); |
119 | 117 |
Element rs = header.addElement("RESOURCE_IDENTIFIER"); |
120 |
rs.addAttribute("value", uuid + "_Q29udGV4dERTUmVzb3VyY2VzL0NvbnRleHREU1Jlc291cmNlVHlwZQ==");
|
|
118 |
rs.addAttribute("value", "");
|
|
121 | 119 |
Element rt = header.addElement("RESOURCE_TYPE"); |
122 | 120 |
rt.addAttribute("value", "ContextDSResourceType"); |
123 | 121 |
Element rk = header.addElement("RESOURCE_KIND"); |
modules/dnet-openaireplus-workflows/trunk/src/main/java/eu/dnetlib/msro/openaireplus/workflows/nodes/contexts/GenerateFETH2020ContextJobNode.java | ||
---|---|---|
63 | 63 |
private void registerProfile(String profile) throws ISRegistryException { |
64 | 64 |
log.info("registering fet-h2020 profile"); |
65 | 65 |
ISRegistryService is = serviceLocator.getService(ISRegistryService.class); |
66 |
is.registerProfile(profile); |
|
66 |
String id = is.registerProfile(profile); |
|
67 |
log.info("Generating profile with id "+id); |
|
67 | 68 |
} |
68 | 69 |
|
69 | 70 |
private void deleteProfile(String profId) throws ISRegistryException { |
Also available in: Unified diff
IS registry override uuid anyway