Project GS Workspace

This commit is contained in:
Fabio Sinibaldi 2022-02-17 11:10:56 +01:00
parent 5731c855ac
commit 08c334b624
1 changed files with 5 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public class SDIMaterializerPlugin implements MaterializationPlugin {
log.info("Materializer {} : Performing {} ",this.getDescriptor().getId(),request);
ProfiledDocument profiledDocument=request.getDocument();
Profile profile = request.getProfile();
Document requestArguments=request.getParameters();
Document requestArguments=request.getCallParameters();
Document profileConfiguration =null;
for (HandlerDeclaration h : profile.getHandlers()) {
if (h.getId().equals("SDI-Default-Materializer")) {
@ -131,6 +131,10 @@ public class SDIMaterializerPlugin implements MaterializationPlugin {
requestArguments.putIfAbsent("layerTitle",fs.getString(requestArguments.getString("titleField")));
else requestArguments.putIfAbsent("layerTitle",fs.getUUID());
//Add FS uuid at ws_baseName
requestArguments.put("workspace",request.getMandatory("workspace")+"_"+ profiledDocument.get_id());
// Actually materializing
RegisteredFileSet obtained = getSDIManager().materializeLayer(fs,requestArguments);
log.debug("Obtained {} ",obtained);
documentNavigator.setElement("$..[?(@.uuid == '"+fs.getUUID()+"')]",obtained);