From 42fbebacc80981b145464287f1bbbd8441713652 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Wed, 17 Sep 2014 11:57:01 +0200 Subject: update configuration tool --- .../moa/id/configuration/data/GeneralMOAIDConfig.java | 9 ++------- .../struts/action/EditGeneralConfigAction.java | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 9 deletions(-) (limited to 'id/ConfigWebTool/src/main/java/at/gv/egovernment') diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/GeneralMOAIDConfig.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/GeneralMOAIDConfig.java index f29780f05..def880da8 100644 --- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/GeneralMOAIDConfig.java +++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/GeneralMOAIDConfig.java @@ -102,7 +102,7 @@ public class GeneralMOAIDConfig { private List fileUpload = null; private List fileUploadContentType; - private List fileUploadFileName; + private List fileUploadFileName = new ArrayList(); private Map secLayerTransformation = null; private String ssoTarget = null; @@ -271,8 +271,6 @@ public class GeneralMOAIDConfig { SecurityLayer seclayer = auth.getSecurityLayer(); if (seclayer != null) { List list = seclayer.getTransformsInfo(); - - fileUploadFileName = new ArrayList(); for (TransformsInfoType el : list) { fileUploadFileName.add(el.getFilename()); @@ -335,10 +333,7 @@ public class GeneralMOAIDConfig { SLRequestTemplateOnline = slreq.getOnlineBKU(); } - } else { - fileUploadFileName = new ArrayList(); - - } + } } /** diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/struts/action/EditGeneralConfigAction.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/struts/action/EditGeneralConfigAction.java index 32ffd2ba3..7f609d95e 100644 --- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/struts/action/EditGeneralConfigAction.java +++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/struts/action/EditGeneralConfigAction.java @@ -594,8 +594,18 @@ public class EditGeneralConfigAction extends BasicAction { dbmoasp.setVerifyAuthBlock(moaauth); } moaauth.setTrustProfileID(moaconfig.getMoaspssAuthTrustProfile()); - - moaauth.getVerifyTransformsInfoProfileID().set(0, moaconfig.getAuthTransformList().get(0)); + + if (moaauth.getVerifyTransformsInfoProfileID() != null && + moaauth.getVerifyTransformsInfoProfileID().size() > 0) + moaauth.getVerifyTransformsInfoProfileID().set(0, moaconfig.getAuthTransformList().get(0)); + + else { + if (moaauth.getVerifyTransformsInfoProfileID() == null) { + moaauth.setVerifyTransformsInfoProfileID(new ArrayList()); + + } + moaauth.getVerifyTransformsInfoProfileID().add(moaconfig.getAuthTransformList().get(0)); + } SecurityLayer seclayertrans = dbauth.getSecurityLayer(); if (seclayertrans == null) { -- cgit v1.2.3