Backend support for operation milestone filters
[sdc.git] / common-be / src / main / java / org / openecomp / sdc / be / datatypes / enums / JsonPresentationFields.java
index 34382df..e96477d 100644 (file)
@@ -12,7 +12,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.openecomp.sdc.be.datatypes.enums;
 
 import com.fasterxml.jackson.annotation.JsonCreator;
@@ -25,7 +24,7 @@ import lombok.ToString;
 @Getter
 @ToString(onlyExplicitlyIncluded = true)
 public enum JsonPresentationFields {
-
+    // @formatter:off
     UNIQUE_ID("uniqueId", GraphPropertyEnum.UNIQUE_ID),
     HIGHEST_VERSION("highestVersion", GraphPropertyEnum.IS_HIGHEST_VERSION),
     LIFECYCLE_STATE("lifecycleState", GraphPropertyEnum.STATE),
@@ -62,6 +61,7 @@ public enum JsonPresentationFields {
     INVARIANT_UUID("invariantUuid", GraphPropertyEnum.INVARIANT_UUID),
     CSAR_UUID("csarUuid", GraphPropertyEnum.CSAR_UUID),
     CSAR_VERSION("csarVersion", null),
+    CSAR_VERSION_ID("csarVersionId", null),
     IMPORTED_TOSCA_CHECKSUM("importedToscaChecksum", null),
     CONTACT_ID("contactId", null),
     PROJECT_CODE("projectCode", null),
@@ -69,12 +69,13 @@ public enum JsonPresentationFields {
     DERIVED_FROM_GENERIC_TYPE("derivedFromGenericType", null),
     DERIVED_FROM_GENERIC_VERSION("derivedFromGenericVersion", null),
     SERVICE_FUNCTION("serviceFunction", null),
-
+    MODEL("model", null),
+    NORMATIVE("normative", null),
     DATA_TYPES("data_types", GraphPropertyEnum.DATA_TYPES),
+    TENANT("tenant", null),
 
     ////Inputs
     ANNOTATIONS("annotations", null),
-
     ////Artifact
     ARTIFACT_TYPE("artifactType", null),
     ARTIFACT_REF("artifactRef", null),
@@ -105,10 +106,8 @@ public enum JsonPresentationFields {
     HEAT_PARAMETERS("heatParameters", null),
     GENERATED_FROM_ID("generatedFromId", null),
 
-
     // end artifacts
 
-
     //property
     DEFINITION("definition", null),
     DEFAULT_VALUE("defaultValue", null),
@@ -119,6 +118,7 @@ public enum JsonPresentationFields {
     PROPERTIES("properties", null),
     PROPERTY("property", null),
     SCHEMA("schema", null),
+    ENTRY_SCHEMA("entry_schema", null),
     VALUE("value", null),
     PARENT_UNIQUE_ID("parentUniqueId", null),
 
@@ -169,7 +169,6 @@ public enum JsonPresentationFields {
     ORIGIN_UI("originUI", null),
 
     //Groups
-
     GROUP_INVARIANT_UUID("invariantUUID", null),
     GROUP_UUID("groupUUID", null),
     GROUP_MEMBER("members", null),
@@ -187,7 +186,6 @@ public enum JsonPresentationFields {
     GROUP_INSTANCE_PROPERTIES("groupInstancesProperties", null),
 
     //Component instance
-
     CI_COMPONENT_UID("componentUid", null),
     CI_POS_X("posX", null),
     CI_POS_Y("posY", null),
@@ -207,6 +205,9 @@ public enum JsonPresentationFields {
     CI_IS_PROXY("isProxy", null),
     CI_DIRECTIVES("directives", null),
     CI_ARTIFACTS("artifacts", null),
+    CI_MAX_OCCURRENCES("maxOccurrences", null),
+    CI_MIN_OCCURRENCES("minOccurrences", null),
+    CI_INSTANCE_COUNT("instanceCount", null),
 
     //path
     FORWARDING_PATH("forwardingPath", null),
@@ -226,29 +227,27 @@ public enum JsonPresentationFields {
     TARGETS("targets", null),
 
     //External Refs
-    EXTERNAL_REF("externalRef", null),
-    CREATED_FROM("createdFrom", null),
-
+    EXTERNAL_REF("externalRef", null), CREATED_FROM("createdFrom", null),
     //Archive
     IS_ARCHIVED("isArchived", GraphPropertyEnum.IS_ARCHIVED),
     ARCHIVE_TIME("archiveTime", GraphPropertyEnum.ARCHIVE_TIME),
     IS_VSP_ARCHIVED("isVspArchived", GraphPropertyEnum.IS_VSP_ARCHIVED),
     CI_IS_ORIGIN_ARCHIVED("isOriginArchived", null),
 
-       //Interface Operation
-       IO_OPERATION_TYPE("operationType",null),
-       IO_INPUT_PARAMETERS("inputParams",null),
-       IO_OUTPUT_PARAMETERS("outputParams",null),
+    //Interface Operation
+    IO_OPERATION_TYPE("operationType", null),
+    IO_INPUT_PARAMETERS("inputParams", null),
+    IO_OUTPUT_PARAMETERS("outputParams", null),
     IO_PARAM_NAME("paramName", null),
     IO_PARAM_ID("paramId", null),
     IO_NAME("name", null),
-       IO_MANDATORY("mandatory", null),
-       IO_TYPE("type", null),
-       IO_PROPERTY("property", null),
-       IO_WORKFLOW_NAME("workflowName", null),
-       IO_WORKFLOW_VERSION("workflowVersion", null),
-       IO_WORKFLOW_ID("workflowId", null),
-       IO_WORKFLOW_VERSION_ID("workflowVersionId", null),
+    IO_MANDATORY("mandatory", null),
+    IO_TYPE("type", null),
+    IO_PROPERTY("property", null),
+    IO_WORKFLOW_NAME("workflowName", null),
+    IO_WORKFLOW_VERSION("workflowVersion", null),
+    IO_WORKFLOW_ID("workflowId", null),
+    IO_WORKFLOW_VERSION_ID("workflowVersionId", null),
     IO_WORKFLOW_ASSOCIATION_TYPE("workflowAssociationType", null),
 
     //Interface
@@ -258,6 +257,10 @@ public enum JsonPresentationFields {
     OPERATION_IMPLEMENTATION("implementation", null),
     OPERATION_INPUTS("inputs", null),
     OPERATION_OUTPUTS("outputs", null),
+    OPERATION_MILESTONES("milestones", null),
+    OPERATION_FILTERS("filters", null),
+    OPERATION_ACTIVITIES("activities", null),
+    OPERATION_ACTIVITIES_WORKFLOW("workflow", null),
     INPUTS("inputs", null),
 
     GET_PROPERTY("get_property", null),
@@ -266,18 +269,15 @@ public enum JsonPresentationFields {
 
     ATTRIBUTES("attributes", null),
 
+    TEMPLATE_VERSION("template_version", null),
     TOSCA_DEFINITIONS_VERSION("tosca_definitions_version", null);
+    // @formatter:on
 
     @ToString.Include
     private final String presentation;
     @ToString.Exclude
     private final GraphPropertyEnum storedAs;
 
-    @JsonValue
-    public String getPresentation() {
-        return presentation;
-    }
-
     public static String getPresentationByGraphProperty(GraphPropertyEnum property) {
         for (JsonPresentationFields currPresentation : JsonPresentationFields.values()) {
             if (currPresentation.getStoredAs() == property) {
@@ -297,4 +297,8 @@ public enum JsonPresentationFields {
         return null;
     }
 
+    @JsonValue
+    public String getPresentation() {
+        return presentation;
+    }
 }