DataMigration, other Batch
[aaf/authz.git] / auth / auth-batch / src / main / java / org / onap / aaf / auth / batch / reports / bodies / TwoWeeksNotifyCredBody.java
index 97f09ac..818556c 100644 (file)
@@ -22,10 +22,16 @@ package org.onap.aaf.auth.batch.reports.bodies;
 
 import java.io.IOException;
 
+import org.onap.aaf.auth.batch.helpers.ExpireRange;
 import org.onap.aaf.cadi.Access;
 
 public class TwoWeeksNotifyCredBody extends NotifyCredBody {
        public TwoWeeksNotifyCredBody(Access access) throws IOException {
-               super(access, "CredTwoWeek");
+               super(access, ExpireRange.TWO_WEEK);
+       }
+
+       @Override
+       public String subject() {
+               return String.format("AAF Two Week Credential Notification (ENV: %s)",env);
        }
 }