Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/CoreArtifactTypes.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/CoreAttributeTypes.java3
-rw-r--r--plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/token/DataClassificationAttributeType.java45
3 files changed, 50 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/CoreArtifactTypes.java b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/CoreArtifactTypes.java
index 41ca3698680..0a1cc73e5c2 100644
--- a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/CoreArtifactTypes.java
+++ b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/CoreArtifactTypes.java
@@ -26,6 +26,8 @@ public interface CoreArtifactTypes {
ArtifactTypeToken Artifact = osee.add(osee.artifactType(1L, "Artifact", false)
.any(Annotation)
.zeroOrOne(ContentUrl)
+ .any(DataClassification)
+ .zeroOrOne(DataClassificationRationale)
.zeroOrOne(Description)
.exactlyOne(Name, "unnamed")
.zeroOrOne(RelationOrder)
diff --git a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/CoreAttributeTypes.java b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/CoreAttributeTypes.java
index c9472ffea2d..7de4f163647 100644
--- a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/CoreAttributeTypes.java
+++ b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/CoreAttributeTypes.java
@@ -27,6 +27,7 @@ import org.eclipse.osee.framework.core.data.DisplayHint;
import org.eclipse.osee.framework.core.data.computed.ComputedSoftwareCriticalityIndex;
import org.eclipse.osee.framework.core.enums.token.ComponentAttributeType;
import org.eclipse.osee.framework.core.enums.token.CsciAttributeType;
+import org.eclipse.osee.framework.core.enums.token.DataClassificationAttributeType;
import org.eclipse.osee.framework.core.enums.token.DataRightsClassificationAttributeType;
import org.eclipse.osee.framework.core.enums.token.FACEOSSProfileAttributeType;
import org.eclipse.osee.framework.core.enums.token.FACESegmentAttributeType;
@@ -84,6 +85,8 @@ public interface CoreAttributeTypes {
ComponentAttributeType Component = osee.createEnum(new ComponentAttributeType());
AttributeTypeString ContentUrl = osee.createString(1152921504606847100L, "Content URL", MediaType.TEXT_PLAIN, "");
AttributeTypeString Country = osee.createString(1152921504606847072L, "Country", MediaType.TEXT_PLAIN, "");
+ DataClassificationAttributeType DataClassification = osee.createEnum(new DataClassificationAttributeType());
+ AttributeTypeString DataClassificationRationale = osee.createString(6697327397016528458L, "Data Classification Rationale", MediaType.TEXT_PLAIN, "", DisplayHint.MultiLine);
AttributeTypeString DataRightsBasis = osee.createString(72057594037928276L, "Data Rights Basis", MediaType.TEXT_PLAIN, "The basis or rationale for the Data Rights Classification selected such as developed under program X");
DataRightsClassificationAttributeType DataRightsClassification = osee.createEnum(new DataRightsClassificationAttributeType());
AttributeTypeBoolean DefaultGroup = osee.createBoolean(1152921504606847086L, "Default Group", MediaType.TEXT_PLAIN, "Specifies whether to automatically add new users into this group");
diff --git a/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/token/DataClassificationAttributeType.java b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/token/DataClassificationAttributeType.java
new file mode 100644
index 00000000000..c4219b84a18
--- /dev/null
+++ b/plugins/org.eclipse.osee.framework.core/src/org/eclipse/osee/framework/core/enums/token/DataClassificationAttributeType.java
@@ -0,0 +1,45 @@
+/*********************************************************************
+ * Copyright (c) 2022 Boeing
+ *
+ * This program and the accompanying materials are made
+ * available under the terms of the Eclipse Public License 2.0
+ * which is available at https://www.eclipse.org/legal/epl-2.0/
+ *
+ * SPDX-License-Identifier: EPL-2.0
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ **********************************************************************/
+package org.eclipse.osee.framework.core.enums.token;
+
+import javax.ws.rs.core.MediaType;
+import org.eclipse.osee.framework.core.data.AttributeTypeEnum;
+import org.eclipse.osee.framework.core.data.NamespaceToken;
+import org.eclipse.osee.framework.core.data.TaggerTypeToken;
+import org.eclipse.osee.framework.core.enums.EnumToken;
+import org.eclipse.osee.framework.core.enums.token.DataClassificationAttributeType.DataClassificationEnum;
+
+/**
+ * @author Murshed Alam
+ */
+public class DataClassificationAttributeType extends AttributeTypeEnum<DataClassificationEnum> {
+
+ public final DataClassificationEnum CUI = new DataClassificationEnum(0, "CUI");
+ public final DataClassificationEnum Unspecified = new DataClassificationEnum(1, "Unspecified");
+
+ public DataClassificationAttributeType(NamespaceToken namespace, int enumCount) {
+ super(4024614255972662076L, namespace, "Data Classification", MediaType.TEXT_PLAIN, "",
+ TaggerTypeToken.PlainTextTagger, enumCount);
+ }
+
+ public DataClassificationAttributeType() {
+ this(NamespaceToken.OSEE, 2);
+ }
+
+ public class DataClassificationEnum extends EnumToken {
+ public DataClassificationEnum(int ordinal, String name) {
+ super(ordinal, name);
+ addEnum(this);
+ }
+ }
+}

Back to the top