Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/data/AtsAttributeTypes.java3
-rw-r--r--plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/util/AtsUtilCore.java12
-rw-r--r--plugins/org.eclipse.osee.ats/support/OseeTypes_ATS.osee30
3 files changed, 45 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/data/AtsAttributeTypes.java b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/data/AtsAttributeTypes.java
index 293c53b1428..4f0970c4ecb 100644
--- a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/data/AtsAttributeTypes.java
+++ b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/data/AtsAttributeTypes.java
@@ -133,6 +133,9 @@ public final class AtsAttributeTypes {
public static final IAttributeType ActivityName = createType(0x1000000000000383L, "Activity Name");
public static final IAttributeType WorkPackageGuid = createType(0x1000000000000384L, "Work Package Guid", "Work Package for this Team Workflow, Review, Task or Goal");
+ public static final IAttributeType ClosureActive = createType(0x10000056457000BBL, "Closure Active status of Program");
+ public static final IAttributeType ClosureState = createType(0x10000000000001DCL, "Closure Status of Build");
+
// Applicability Feature
public static final IAttributeType ApplicabilityWorkflow = createType(0x10000078957000AAL, "Applicability Workflow");
public static final IAttributeType ApplicableToProgram = createType(0x10000067857000AAL, "Applicable To Program");
diff --git a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/util/AtsUtilCore.java b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/util/AtsUtilCore.java
index d8503a10950..128cdc5cb16 100644
--- a/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/util/AtsUtilCore.java
+++ b/plugins/org.eclipse.osee.ats.core/src/org/eclipse/osee/ats/core/util/AtsUtilCore.java
@@ -10,7 +10,11 @@
*******************************************************************************/
package org.eclipse.osee.ats.core.util;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
import java.util.logging.Level;
+import org.eclipse.osee.ats.api.IAtsObject;
import org.eclipse.osee.ats.api.IAtsWorkItem;
import org.eclipse.osee.ats.api.workflow.IAttribute;
import org.eclipse.osee.framework.core.data.IOseeBranch;
@@ -81,6 +85,14 @@ public class AtsUtilCore {
}
}
+ public static List<String> toGuids(Collection<? extends IAtsObject> atsObjects) {
+ List<String> guids = new ArrayList<String>(atsObjects.size());
+ for (IAtsObject atsObj : atsObjects) {
+ guids.add(atsObj.getGuid());
+ }
+ return guids;
+ }
+
public static void storeAtsBranch(IOseeBranch branch, String name) {
AtsPreferencesService.get().put(ATS_BRANCH_UUID, String.valueOf(branch.getUuid()));
AtsPreferencesService.get().put(ATS_BRANCH_NAME, name);
diff --git a/plugins/org.eclipse.osee.ats/support/OseeTypes_ATS.osee b/plugins/org.eclipse.osee.ats/support/OseeTypes_ATS.osee
index d5aecc00fdd..2522b650566 100644
--- a/plugins/org.eclipse.osee.ats/support/OseeTypes_ATS.osee
+++ b/plugins/org.eclipse.osee.ats/support/OseeTypes_ATS.osee
@@ -83,6 +83,7 @@ artifactType "Team Definition" extends "ats.Ats Team Definition or AI" , "Abstra
attribute "ats.Id Prefix"
attribute "ats.Id Sequence Name"
attribute "ats.Team Workflow Artifact Type"
+ attribute "ats.closure.Active"
}
artifactType "Actionable Item" extends "ats.Ats Team Definition or AI" , "Abstract Access Controlled" {
@@ -102,6 +103,7 @@ artifactType "Version" extends "ats.Ats Artifact" {
attribute "ats.Released"
attribute "ats.Version Locked"
attribute "ats.TestRunToSourceLocator"
+ attribute "ats.closure.Closure State"
}
abstract artifactType "ats.State Machine" extends "ats.Ats Artifact" {
@@ -1435,3 +1437,31 @@ attributeType "ats.TestRunToSourceLocator" extends StringAttribute {
max 1
mediaType "text/plain"
}
+
+attributeType "ats.closure.Active" extends BooleanAttribute {
+ uuid 0x10000056457000BB
+ dataProvider DefaultAttributeDataProvider
+ min 0
+ max 1
+ taggerId DefaultAttributeTaggerProvider
+ mediaType "text/plain"
+}
+
+oseeEnumType "ats.closure.states" {
+ uuid 0x300000000000019C
+ entry "Closed"
+ entryGuid "CArJmR2JDn5DXT9FGRQB"
+ entry "Closing"
+ entryGuid "CArJmR3xrEmbw7zbyzhA"
+ entry "Open"
+ entryGuid "CArJmR5WzHmGBBBOKhQA"
+}
+
+attributeType "ats.closure.Closure State" extends EnumeratedAttribute {
+ uuid 0x10000000000001DC
+ dataProvider DefaultAttributeDataProvider
+ min 0
+ max 1
+ enumType "ats.closure.states"
+ mediaType "text/plain"
+}

Back to the top