Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominic Guss2018-04-10 12:26:00 -0400
committerDominic Guss2018-04-10 12:36:42 -0400
commit23bc01ec435b45f7c89204814cd2f6eb35afabb4 (patch)
treea9ec0ec2e44bf20a8ba482a99556525ddbe9d800
parentde7c7318ce19ec9154349988abd17caa871db7b7 (diff)
downloadorg.eclipse.osee-0.25.3.tar.gz
org.eclipse.osee-0.25.3.tar.xz
org.eclipse.osee-0.25.3.zip
bug[ats_TW8285]: OSEE Web listing names of non-software requirementsOTE_06_21_20180.25.3.v201804101651-REL0.25.3
Change-Id: I56f9171ae5102f3d0cc66882a7b8f28ec36cc550 Signed-off-by: Dominic Guss <Dominic.Guss@boeing.com>
-rw-r--r--plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/util/ExportChangeReportUtil.java25
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ExportChangeReportOperation.java9
2 files changed, 28 insertions, 6 deletions
diff --git a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/util/ExportChangeReportUtil.java b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/util/ExportChangeReportUtil.java
new file mode 100644
index 0000000000..3f1ceaed4b
--- /dev/null
+++ b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/util/ExportChangeReportUtil.java
@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * Copyright (c) 2018 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.api.util;
+
+import org.eclipse.osee.framework.core.data.IArtifactType;
+import org.eclipse.osee.framework.core.enums.CoreArtifactTypes;
+
+/**
+ * @author Dominic Guss
+ */
+public class ExportChangeReportUtil {
+
+ public static final IArtifactType[] ARTIFACT_ALLOW_TYPES = {
+ CoreArtifactTypes.AbstractSoftwareRequirement,
+ CoreArtifactTypes.InterfaceRequirement,
+ CoreArtifactTypes.HeadingMSWord};
+}
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ExportChangeReportOperation.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ExportChangeReportOperation.java
index 5c6efd29e5..c51a7dc3d6 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ExportChangeReportOperation.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/ExportChangeReportOperation.java
@@ -26,6 +26,7 @@ import java.util.Set;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.osee.ats.api.data.AtsAttributeTypes;
+import org.eclipse.osee.ats.api.util.ExportChangeReportUtil;
import org.eclipse.osee.ats.core.client.team.TeamWorkFlowArtifact;
import org.eclipse.osee.ats.internal.Activator;
import org.eclipse.osee.ats.internal.AtsClientService;
@@ -64,11 +65,6 @@ public final class ExportChangeReportOperation extends AbstractOperation {
private final IArtifactType[] DISALLOW_TYPES = {CoreArtifactTypes.ImplementationDetails};
private final String overrideDataRightsClassification;
- public static final IArtifactType[] ALLOW_TYPES = {
- CoreArtifactTypes.AbstractSoftwareRequirement,
- CoreArtifactTypes.InterfaceRequirement,
- CoreArtifactTypes.HeadingMSWord};
-
public ExportChangeReportOperation(List<TeamWorkFlowArtifact> workflows, boolean reverse, boolean writeChangeReports, String overrideDataRightsClassification, Appendable resultFolder, OperationLogger logger) {
super("Exporting Change Report(s)", Activator.PLUGIN_ID, logger);
this.workflows = workflows;
@@ -118,7 +114,8 @@ public final class ExportChangeReportOperation extends AbstractOperation {
ArtifactDelta next = it.next();
Artifact endArtifact = next.getEndArtifact();
ArtifactType artifactType = endArtifact.getArtifactType();
- if (artifactType.inheritsFrom(DISALLOW_TYPES) || !artifactType.inheritsFrom(ALLOW_TYPES)) {
+ if (artifactType.inheritsFrom(
+ DISALLOW_TYPES) || !artifactType.inheritsFrom(ExportChangeReportUtil.ARTIFACT_ALLOW_TYPES)) {
it.remove();
artIds.remove(endArtifact.getArtId());
logf("skipping: [" + endArtifact.getName().replaceAll("%",

Back to the top