Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan E. Cook2016-09-12 20:05:53 -0400
committerAngel Avila2016-10-04 21:34:51 -0400
commit02dbcb67ca6825f8cb81161ef51fc0a303123522 (patch)
tree0ab1ae8b13e7730be3c408ff3f01163a31b58548
parentddb27df8b6912d74a9a38f5a44bbe626681c5c7f (diff)
downloadorg.eclipse.osee-02dbcb67ca6825f8cb81161ef51fc0a303123522.tar.gz
org.eclipse.osee-02dbcb67ca6825f8cb81161ef51fc0a303123522.tar.xz
org.eclipse.osee-02dbcb67ca6825f8cb81161ef51fc0a303123522.zip
refactor: Update createDemoApplicability to add PL Folder
Change-Id: Ifd21627705dd2aff962819461d1d0fb350960696 Signed-off-by: Morgan E. Cook <Morgan.e.cook@boeing.com>
-rw-r--r--plugins/org.eclipse.osee.orcs.rest/src/org/eclipse/osee/orcs/rest/internal/ApplicabilityEndpointImpl.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.orcs.rest/src/org/eclipse/osee/orcs/rest/internal/ApplicabilityEndpointImpl.java b/plugins/org.eclipse.osee.orcs.rest/src/org/eclipse/osee/orcs/rest/internal/ApplicabilityEndpointImpl.java
index 57ef0fd5a47..13220f9f107 100644
--- a/plugins/org.eclipse.osee.orcs.rest/src/org/eclipse/osee/orcs/rest/internal/ApplicabilityEndpointImpl.java
+++ b/plugins/org.eclipse.osee.orcs.rest/src/org/eclipse/osee/orcs/rest/internal/ApplicabilityEndpointImpl.java
@@ -18,6 +18,7 @@ import org.eclipse.osee.framework.core.data.ApplicabilityId;
import org.eclipse.osee.framework.core.data.ApplicabilityToken;
import org.eclipse.osee.framework.core.data.ArtifactId;
import org.eclipse.osee.framework.core.data.BranchId;
+import org.eclipse.osee.framework.core.enums.CoreArtifactTokens;
import org.eclipse.osee.framework.core.enums.CoreArtifactTypes;
import org.eclipse.osee.framework.core.enums.CoreTupleTypes;
import org.eclipse.osee.framework.core.enums.SystemUser;
@@ -50,9 +51,13 @@ public class ApplicabilityEndpointImpl implements ApplicabilityEndpoint {
ArtifactId config1 = tx.createArtifact(CoreArtifactTypes.BranchView, "PL Config 1");
ArtifactId config2 = tx.createArtifact(CoreArtifactTypes.BranchView, "PL Config 2");
+ ArtifactId folder = tx.createArtifact(CoreArtifactTypes.Folder, "Product Line");
orcsApi.getKeyValueOps().putByKey(BASE.getId(), BASE.getName());
+ tx.addChildren(CoreArtifactTokens.DefaultHierarchyRoot, folder);
+ tx.addChildren(folder, config1, config2);
+
tx.addTuple2(CoreTupleTypes.ViewApplicability, config1, "Base");
tx.addTuple2(CoreTupleTypes.ViewApplicability, config2, "Base");

Back to the top