diff options
Diffstat (limited to 'auth/auth-core/src/main')
3 files changed, 4 insertions, 4 deletions
diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/org/FileMailer.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/org/FileMailer.java index e5fc4387..1db11985 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/org/FileMailer.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/org/FileMailer.java @@ -67,7 +67,7 @@ public class FileMailer implements Mailer { } @Override - public boolean sendEmail(AuthzTrans trans, boolean testMode, List<String> toList, List<String> ccList, + public boolean sendEmail(AuthzTrans trans, String test, List<String> toList, List<String> ccList, String subject, String body, Boolean urgent) throws OrganizationException { boolean status = false; try { @@ -75,7 +75,7 @@ public class FileMailer implements Mailer { if(testName==null) { path = Files.createTempFile(dir, "email", ".hdr"); } else { - path = Paths.get(dir.toString(), "emailTEST.hdr"); + path = Paths.get(dir.toString(), "emailTEST"+test+".hdr"); } BufferedWriter bw = Files.newBufferedWriter(path); try { diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/org/Mailer.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/org/Mailer.java index f7c8b480..dd32c651 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/org/Mailer.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/org/Mailer.java @@ -27,7 +27,7 @@ import org.onap.aaf.auth.env.AuthzTrans; public interface Mailer { public boolean sendEmail( AuthzTrans trans, - boolean testMode, + String test, List<String> toList, List<String> ccList, String subject, diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/org/OrganizationFactory.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/org/OrganizationFactory.java index f4e6d14e..d704e1a8 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/org/OrganizationFactory.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/org/OrganizationFactory.java @@ -92,7 +92,7 @@ public class OrganizationFactory { String orgClass = env.getProperty(ORGANIZATION_DOT+orgNS); if (orgClass == null) { - env.warn().log("There is no Organization." + orgNS + " property"); + env.warn().printf("There is no Organization.%s property",orgNS); } else { try { Class<?> orgCls = Class.forName(orgClass); |