Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2008-06-24 05:31:58 +0000
committerddunne2008-06-24 05:31:58 +0000
commitaaf5d8c7971d40da3f142e15edbf0228da57d241 (patch)
treedaa8288d8556ffe3f46482732fd6a95d67a1713f
parentc35a7915c692d77ed1ffad4b39c59d42934c2130 (diff)
downloadorg.eclipse.osee-aaf5d8c7971d40da3f142e15edbf0228da57d241.tar.gz
org.eclipse.osee-aaf5d8c7971d40da3f142e15edbf0228da57d241.tar.xz
org.eclipse.osee-aaf5d8c7971d40da3f142e15edbf0228da57d241.zip
"Team Workflow" - RLVTL - "OSEE Notification change"
-rw-r--r--MS_0.2.0_20080619/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/notify/OseeNotifyUsersJob.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/MS_0.2.0_20080619/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/notify/OseeNotifyUsersJob.java b/MS_0.2.0_20080619/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/notify/OseeNotifyUsersJob.java
index cb12a320eeb..b38b44c7280 100644
--- a/MS_0.2.0_20080619/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/notify/OseeNotifyUsersJob.java
+++ b/MS_0.2.0_20080619/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/notify/OseeNotifyUsersJob.java
@@ -23,6 +23,7 @@ import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.osee.framework.jdk.core.util.AHTML;
+import org.eclipse.osee.framework.jdk.core.util.Strings;
import org.eclipse.osee.framework.skynet.core.SkynetAuthentication;
import org.eclipse.osee.framework.skynet.core.User;
import org.eclipse.osee.framework.skynet.core.exception.OseeCoreException;
@@ -98,10 +99,18 @@ public class OseeNotifyUsersJob extends Job {
} else {
AEmail emailMessage =
new AEmail(null, SkynetAuthentication.getUser().getEmail(), SkynetAuthentication.getUser().getEmail(),
- "OSEE Notification");
+ getNotificationEmailSubject(notificationEvents));
emailMessage.setRecipients(Message.RecipientType.TO, new String[] {user.getEmail()});
emailMessage.addHTMLBody(html);
emailMessage.send();
}
}
+
+ private String getNotificationEmailSubject(List<OseeNotificationEvent> notificationEvents) {
+ if (notificationEvents.size() == 1) {
+ OseeNotificationEvent event = notificationEvents.iterator().next();
+ return Strings.truncate("OSEE Notification" + " - " + event.getType() + " - " + event.getDescription(), 128);
+ }
+ return "OSEE Notification";
+ }
}

Back to the top