Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2014-08-04 21:08:13 +0000
committerRoberto E. Escobar2014-09-29 22:55:00 +0000
commita95eaa09dd8728186e45c635d8da8bc4e724a0bb (patch)
tree9bfaf5deec65c23808744a65aafa05f164367433
parent52669c2decc7bf87aac33295a1474f96cd9325f7 (diff)
downloadorg.eclipse.osee-a95eaa09dd8728186e45c635d8da8bc4e724a0bb.tar.gz
org.eclipse.osee-a95eaa09dd8728186e45c635d8da8bc4e724a0bb.tar.xz
org.eclipse.osee-a95eaa09dd8728186e45c635d8da8bc4e724a0bb.zip
feature[ats_ATS64164]: CPA: Remove IAtsNotification feature
-rw-r--r--plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/notify/AtsNotificationManager.java12
-rw-r--r--plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/notify/IAtsNotification.java30
-rw-r--r--plugins/org.eclipse.osee.ats/plugin.xml1
-rw-r--r--plugins/org.eclipse.osee.ats/schema/AtsNotification.exsd102
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsNavigateViewItems.java3
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/notify/AtsNotificationCheckTreeDialog.java169
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/notify/AtsNotificationNavigateItem.java110
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/notify/OseeEmailHtmlOperation.java60
8 files changed, 0 insertions, 487 deletions
diff --git a/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/notify/AtsNotificationManager.java b/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/notify/AtsNotificationManager.java
index 4ef49075078..93672e36828 100644
--- a/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/notify/AtsNotificationManager.java
+++ b/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/notify/AtsNotificationManager.java
@@ -27,7 +27,6 @@ import org.eclipse.osee.ats.core.client.util.AtsUtilClient;
import org.eclipse.osee.ats.core.client.workflow.AbstractWorkflowArtifact;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.plugin.core.util.ExtensionDefinedObjects;
import org.eclipse.osee.framework.skynet.core.email.EmailGroup;
import org.eclipse.osee.framework.skynet.core.utility.INotificationManager;
import org.eclipse.osee.framework.skynet.core.utility.OseeNotificationEvent;
@@ -37,8 +36,6 @@ import org.eclipse.osee.framework.skynet.core.utility.OseeNotificationEvent;
*/
public class AtsNotificationManager {
- private static ExtensionDefinedObjects<IAtsNotification> contributions;
-
private static boolean inTest = false;
private static ConfigurationProvider provider;
@@ -92,15 +89,6 @@ public class AtsNotificationManager {
}
}
- public static synchronized List<IAtsNotification> getAtsNotificationItems() {
- if (contributions == null) {
- contributions =
- new ExtensionDefinedObjects<IAtsNotification>("org.eclipse.osee.ats.AtsNotification", "AtsNotification",
- "classname", true);
- }
- return contributions.getObjects();
- }
-
protected static String getIdString(AbstractWorkflowArtifact sma) {
try {
String legacyPcrId = sma.getSoleAttributeValue(AtsAttributeTypes.LegacyPcrId, "");
diff --git a/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/notify/IAtsNotification.java b/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/notify/IAtsNotification.java
deleted file mode 100644
index 04631e7041a..00000000000
--- a/plugins/org.eclipse.osee.ats.core.client/src/org/eclipse/osee/ats/core/client/notify/IAtsNotification.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.core.client.notify;
-
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
-import org.eclipse.osee.framework.skynet.core.utility.OseeNotificationEvent;
-
-/**
- * @author Donald G. Dunne
- */
-public interface IAtsNotification {
-
- /**
- * Descriptive name that admin can identify the group/notification that will get sent
- */
- public String getNotificationName();
-
- public Collection<OseeNotificationEvent> getNotificationEvents(IProgressMonitor monitor) throws OseeCoreException;
-
-}
diff --git a/plugins/org.eclipse.osee.ats/plugin.xml b/plugins/org.eclipse.osee.ats/plugin.xml
index ab741782f26..689fcd9fbbc 100644
--- a/plugins/org.eclipse.osee.ats/plugin.xml
+++ b/plugins/org.eclipse.osee.ats/plugin.xml
@@ -4,7 +4,6 @@
<extension-point id="AtsNavigateItem" name="AtsNavigateItem" schema="schema/AtsNavigateItem.exsd"/>
<extension-point id="AtsStateItem" name="AtsStateItem" schema="schema/AtsStateItem.exsd"/>
<extension-point id="AtsWizardItem" name="AtsWizardItem" schema="schema/AtsWizardItem.exsd"/>
- <extension-point id="AtsNotification" name="AtsNotification" schema="schema/AtsNotification.exsd"/>
<extension-point id="AtsWorldEditorItem" name="AtsWorldEditorItem" schema="schema/AtsWorldEditorItem.exsd"/>
<extension-point id="AtsHealthCheck" name="AtsHealthCheck" schema="schema/AtsHealthCheck.exsd"/>
<extension-point id="AtsAdvancedOperationAction" name="AtsAdvancedOperationAction" schema="schema/AtsAdvancedOperationAction.exsd"/>
diff --git a/plugins/org.eclipse.osee.ats/schema/AtsNotification.exsd b/plugins/org.eclipse.osee.ats/schema/AtsNotification.exsd
deleted file mode 100644
index c2ca41a9bf0..00000000000
--- a/plugins/org.eclipse.osee.ats/schema/AtsNotification.exsd
+++ /dev/null
@@ -1,102 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.osee.ats" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.osee.ats" id="AtsNotifications" name="AtsNotifications"/>
- </appinfo>
- <documentation>
- This extension point should be used when a plugin wants to notify users of certain events on a periodic basis.
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element />
- </appinfo>
- </annotation>
- <complexType>
- <sequence minOccurs="1" maxOccurs="unbounded">
- <element ref="AtsNotification"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="AtsNotification">
- <complexType>
- <attribute name="classname" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.osee.ats.util.IAtsNotifications"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appinfo>
- <meta.section type="since"/>
- </appinfo>
- <documentation>
- [Enter the first release in which this extension point appears.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- [Enter extension point usage example here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="apiInfo"/>
- </appinfo>
- <documentation>
- [Enter API information here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="implementation"/>
- </appinfo>
- <documentation>
- [Enter information about supplied implementation of this extension point.]
- </documentation>
- </annotation>
-
-
-</schema>
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsNavigateViewItems.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsNavigateViewItems.java
index 163649b3723..b4a28a2271a 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsNavigateViewItems.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsNavigateViewItems.java
@@ -40,7 +40,6 @@ import org.eclipse.osee.ats.internal.ATSPerspective;
import org.eclipse.osee.ats.internal.Activator;
import org.eclipse.osee.ats.internal.AtsClientService;
import org.eclipse.osee.ats.navigate.EmailTeamsItem.MemberType;
-import org.eclipse.osee.ats.notify.AtsNotificationNavigateItem;
import org.eclipse.osee.ats.notify.EmailActionsBlam;
import org.eclipse.osee.ats.operation.ConvertWorkflowStatesBlam;
import org.eclipse.osee.ats.operation.MoveTeamWorkflowsBlam;
@@ -202,8 +201,6 @@ public final class AtsNavigateViewItems implements XNavigateViewItems, IXNavigat
new ImportWorkDefinitionsItem(dbConvertItems);
new XNavigateItemBlam(dbConvertItems, new ConvertWorkflowStatesBlam());
- new AtsNotificationNavigateItem(adminItems);
- new AtsNotificationNavigateItem(adminItems, true);
new DisplayCurrentOseeEventListeners(adminItems);
new AtsRemoteEventTestItem(adminItems);
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/notify/AtsNotificationCheckTreeDialog.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/notify/AtsNotificationCheckTreeDialog.java
deleted file mode 100644
index d029cd2b495..00000000000
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/notify/AtsNotificationCheckTreeDialog.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.notify;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.ILabelProviderListener;
-import org.eclipse.jface.viewers.ITreeContentProvider;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerSorter;
-import org.eclipse.osee.ats.core.client.notify.AtsNotificationManager;
-import org.eclipse.osee.ats.core.client.notify.IAtsNotification;
-import org.eclipse.osee.ats.internal.Activator;
-import org.eclipse.osee.framework.jdk.core.util.Collections;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.artifact.Artifact;
-import org.eclipse.osee.framework.ui.swt.Displays;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.ui.dialogs.CheckedTreeSelectionDialog;
-
-/**
- * @author Donald G. Dunne
- */
-public class AtsNotificationCheckTreeDialog extends CheckedTreeSelectionDialog {
- private Button sendNotificationsButton;
- private boolean sendNotifications;
-
- public AtsNotificationCheckTreeDialog() {
- super(Displays.getActiveShell(), labelProvider, treeContentProvider);
- setTitle("Select ATS Notifications");
- setMessage("Select Desired ATS Notifications");
- try {
- setInput(AtsNotificationManager.getAtsNotificationItems());
- } catch (Exception ex) {
- OseeLog.log(Activator.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
-
- public Collection<IAtsNotification> getSelectedAtsNotifications() {
- ArrayList<IAtsNotification> notifications = new ArrayList<IAtsNotification>();
- for (Object obj : getResult()) {
- notifications.add((IAtsNotification) obj);
- }
- return notifications;
- }
-
- @Override
- protected Control createDialogArea(Composite container) {
- Control c = super.createDialogArea(container);
- getTreeViewer().setSorter(new ViewerSorter() {
- @SuppressWarnings("unchecked")
- @Override
- public int compare(Viewer viewer, Object e1, Object e2) {
- return getComparator().compare(((IAtsNotification) e1).getNotificationName(),
- ((IAtsNotification) e2).getNotificationName());
- }
- });
-
- sendNotificationsButton = new Button(container, SWT.CHECK);
- sendNotificationsButton.setText("Send Notifications (Otherwise, only report will display)");
- sendNotificationsButton.addSelectionListener(new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent e) {
- sendNotifications = sendNotificationsButton.getSelection();
- }
- });
- return c;
- }
-
- public void setArtifacts(Collection<? extends Artifact> artifacts) {
- setInput(artifacts);
- }
-
- static ILabelProvider labelProvider = new ILabelProvider() {
-
- @Override
- public Image getImage(Object element) {
- return null;
- }
-
- @Override
- public String getText(Object element) {
- if (element instanceof IAtsNotification) {
- return ((IAtsNotification) element).getNotificationName();
- }
- return "Unknown";
- }
-
- @Override
- public void addListener(ILabelProviderListener listener) {
- // do nothing
- }
-
- @Override
- public void dispose() {
- // do nothing
- }
-
- @Override
- public boolean isLabelProperty(Object element, String property) {
- return false;
- }
-
- @Override
- public void removeListener(ILabelProviderListener listener) {
- // do nothing
- }
-
- };
- static ITreeContentProvider treeContentProvider = new ITreeContentProvider() {
- @Override
- @SuppressWarnings("rawtypes")
- public Object[] getElements(Object inputElement) {
- if (inputElement instanceof Collection) {
- return ((Collection) inputElement).toArray();
- }
- return Collections.EMPTY_ARRAY;
- };
-
- @Override
- @SuppressWarnings("rawtypes")
- public Object[] getChildren(Object parentElement) {
- if (parentElement instanceof Collection) {
- return ((Collection) parentElement).toArray();
- }
- return Collections.EMPTY_ARRAY;
- };
-
- @Override
- public boolean hasChildren(Object element) {
- return getChildren(element).length > 0;
- }
-
- @Override
- public Object getParent(Object element) {
- return null;
- }
-
- @Override
- public void dispose() {
- // do nothing
- }
-
- @Override
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
- // do nothing
- };
- };
-
- public boolean isSendNotifications() {
- return sendNotifications;
- }
-}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/notify/AtsNotificationNavigateItem.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/notify/AtsNotificationNavigateItem.java
deleted file mode 100644
index 80b781957a0..00000000000
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/notify/AtsNotificationNavigateItem.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.ats.notify;
-
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.ats.core.client.notify.IAtsNotification;
-import org.eclipse.osee.ats.core.util.AtsObjects;
-import org.eclipse.osee.ats.core.util.AtsUtilCore;
-import org.eclipse.osee.ats.internal.Activator;
-import org.eclipse.osee.framework.core.operation.AbstractOperation;
-import org.eclipse.osee.framework.core.operation.Operations;
-import org.eclipse.osee.framework.core.util.XResultData;
-import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
-import org.eclipse.osee.framework.jdk.core.util.AHTML;
-import org.eclipse.osee.framework.logging.OseeLevel;
-import org.eclipse.osee.framework.logging.OseeLog;
-import org.eclipse.osee.framework.skynet.core.utility.OseeNotificationEvent;
-import org.eclipse.osee.framework.ui.plugin.PluginUiImage;
-import org.eclipse.osee.framework.ui.plugin.util.AWorkbench;
-import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateComposite.TableLoadOption;
-import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateItem;
-import org.eclipse.osee.framework.ui.plugin.xnavigate.XNavigateItemAction;
-import org.eclipse.osee.framework.ui.skynet.notify.OseeNotificationManager;
-import org.eclipse.osee.framework.ui.skynet.notify.OseeNotifyUsersJob;
-import org.eclipse.osee.framework.ui.skynet.results.XResultDataUI;
-
-/**
- * @author Donald G. Dunne
- */
-public class AtsNotificationNavigateItem extends XNavigateItemAction {
-
- public AtsNotificationNavigateItem(XNavigateItem parent) {
- this(parent, false);
- }
-
- public AtsNotificationNavigateItem(XNavigateItem parent, boolean sync) {
- super(parent, (sync ? "Sync - " : "") + "Process ATS Notifications", PluginUiImage.ADMIN);
- }
-
- @Override
- public void run(TableLoadOption... tableLoadOptions) throws Exception {
-
- AtsNotificationCheckTreeDialog diag = new AtsNotificationCheckTreeDialog();
- if (diag.open() == 0) {
- if (diag.getSelectedAtsNotifications().isEmpty()) {
- AWorkbench.popup("Error", "No Notifications Selected");
- return;
- }
- Operations.executeAsJob(new NotificationJob(diag.isSendNotifications(), diag.getSelectedAtsNotifications()),
- true);
- }
- }
-
- private static class NotificationJob extends AbstractOperation {
-
- private final boolean sendNotifications;
- private final Collection<IAtsNotification> notifications;
-
- public NotificationJob(boolean sendNotifications, Collection<IAtsNotification> notifications) {
- super("Processing ATS Notifications", Activator.PLUGIN_ID);
- this.sendNotifications = sendNotifications;
- this.notifications = notifications;
- }
-
- @Override
- protected void doWork(IProgressMonitor monitor) throws Exception {
- try {
- XResultData rd = new XResultData();
- if (sendNotifications) {
- rd.addRaw(AHTML.bold("Notifications were sent"));
- } else {
- rd.addRaw("Report Only - Notifications were NOT sent");
- }
- rd.addRaw(AHTML.beginMultiColumnTable(100, 1));
- rd.addRaw(AHTML.addHeaderRowMultiColumnTable(new String[] {"Reason", "Description", "Id", "User(s)", "URL"}));
- int numEvents = 0;
- for (IAtsNotification notify : notifications) {
- for (OseeNotificationEvent event : notify.getNotificationEvents(monitor)) {
- numEvents++;
- rd.addRaw(AHTML.addRowMultiColumnTable(
- event.getType(),
- event.getDescription(),
- XResultDataUI.getHyperlink(event.getId(), event.getId(), AtsUtilCore.getAtsBranch().getUuid()),
- AtsObjects.toString("; ", event.getUsers()), OseeNotifyUsersJob.getHyperlink(event)));
- if (sendNotifications) {
- OseeNotificationManager.getInstance().addNotificationEvent(event);
- }
- }
- }
- rd.addRaw(AHTML.endMultiColumnTable());
- XResultDataUI.report(rd, getName() + " - (" + numEvents + " Events)");
- if (sendNotifications) {
- OseeNotificationManager.getInstance().sendNotifications();
- AWorkbench.popup("Complete", numEvents + " Notifications Sent");
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(Activator.class, OseeLevel.SEVERE_POPUP, ex);
- }
- }
- };
-}
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/notify/OseeEmailHtmlOperation.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/notify/OseeEmailHtmlOperation.java
deleted file mode 100644
index e2c3089939e..00000000000
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/notify/OseeEmailHtmlOperation.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-package org.eclipse.osee.framework.ui.skynet.notify;
-
-import java.util.Collection;
-import java.util.Collections;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.core.operation.AbstractOperation;
-import org.eclipse.osee.framework.core.util.XResultData;
-import org.eclipse.osee.framework.ui.skynet.internal.Activator;
-import org.eclipse.osee.framework.ui.skynet.notify.OseeEmail.BodyType;
-import org.eclipse.osee.framework.ui.skynet.results.XResultDataUI;
-
-/**
- * Generate an email from the html created from a resultData.
- *
- * @author Donald G. Dunne
- */
-public class OseeEmailHtmlOperation extends AbstractOperation {
-
- private final Collection<String> toAddresses;
- private final String fromAddress;
- private final String subject;
- private final String replyToAddress;
- private final XResultData resultData;
-
- /**
- * Constructor provided to email when job is completed. Providing toFromAddress will set the to, from and replyTo
- * addresses as the same.
- */
- public OseeEmailHtmlOperation(String toFromAddress, String subject, XResultData resultData) {
- this(Collections.singleton(toFromAddress), toFromAddress, toFromAddress, subject, resultData);
- }
-
- public OseeEmailHtmlOperation(Collection<String> toAddresses, String fromAddress, String replyToAddress, String subject, XResultData resultData) {
- super(subject, Activator.PLUGIN_ID);
- this.toAddresses = toAddresses;
- this.fromAddress = fromAddress;
- this.replyToAddress = replyToAddress;
- this.subject = subject;
- this.resultData = resultData;
- }
-
- @Override
- protected void doWork(IProgressMonitor monitor) throws Exception {
- String htmlBody = XResultDataUI.getReport(resultData, subject).getManipulatedHtml();
- OseeEmail emailMessage =
- new OseeEmail(toAddresses, fromAddress, replyToAddress, subject, htmlBody, BodyType.Html);
- emailMessage.send();
- }
-
-}

Back to the top