Project GS Workspace
This commit is contained in:
parent
5731c855ac
commit
08c334b624
|
@ -92,7 +92,7 @@ public class SDIMaterializerPlugin implements MaterializationPlugin {
|
||||||
log.info("Materializer {} : Performing {} ",this.getDescriptor().getId(),request);
|
log.info("Materializer {} : Performing {} ",this.getDescriptor().getId(),request);
|
||||||
ProfiledDocument profiledDocument=request.getDocument();
|
ProfiledDocument profiledDocument=request.getDocument();
|
||||||
Profile profile = request.getProfile();
|
Profile profile = request.getProfile();
|
||||||
Document requestArguments=request.getParameters();
|
Document requestArguments=request.getCallParameters();
|
||||||
Document profileConfiguration =null;
|
Document profileConfiguration =null;
|
||||||
for (HandlerDeclaration h : profile.getHandlers()) {
|
for (HandlerDeclaration h : profile.getHandlers()) {
|
||||||
if (h.getId().equals("SDI-Default-Materializer")) {
|
if (h.getId().equals("SDI-Default-Materializer")) {
|
||||||
|
@ -131,6 +131,10 @@ public class SDIMaterializerPlugin implements MaterializationPlugin {
|
||||||
requestArguments.putIfAbsent("layerTitle",fs.getString(requestArguments.getString("titleField")));
|
requestArguments.putIfAbsent("layerTitle",fs.getString(requestArguments.getString("titleField")));
|
||||||
else requestArguments.putIfAbsent("layerTitle",fs.getUUID());
|
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);
|
RegisteredFileSet obtained = getSDIManager().materializeLayer(fs,requestArguments);
|
||||||
log.debug("Obtained {} ",obtained);
|
log.debug("Obtained {} ",obtained);
|
||||||
documentNavigator.setElement("$..[?(@.uuid == '"+fs.getUUID()+"')]",obtained);
|
documentNavigator.setElement("$..[?(@.uuid == '"+fs.getUUID()+"')]",obtained);
|
||||||
|
|
Loading…
Reference in New Issue