diff options
author | Dominic Guss | 2018-04-10 16:26:00 +0000 |
---|---|---|
committer | Dominic Guss | 2018-04-10 16:36:42 +0000 |
commit | 23bc01ec435b45f7c89204814cd2f6eb35afabb4 (patch) | |
tree | a9ec0ec2e44bf20a8ba482a99556525ddbe9d800 | |
parent | de7c7318ce19ec9154349988abd17caa871db7b7 (diff) | |
download | org.eclipse.osee-23bc01ec435b45f7c89204814cd2f6eb35afabb4.tar.gz org.eclipse.osee-23bc01ec435b45f7c89204814cd2f6eb35afabb4.tar.xz org.eclipse.osee-23bc01ec435b45f7c89204814cd2f6eb35afabb4.zip |
bug[ats_TW8285]: OSEE Web listing names of non-software requirementsOTE_06_21_20180.25.3.v201804101651-REL
Change-Id: I56f9171ae5102f3d0cc66882a7b8f28ec36cc550
Signed-off-by: Dominic Guss <Dominic.Guss@boeing.com>
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 00000000000..3f1ceaed4b2 --- /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 5c6efd29e59..c51a7dc3d61 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("%", |