* 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;
@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),
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),
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),
HEAT_PARAMETERS("heatParameters", null),
GENERATED_FROM_ID("generatedFromId", null),
-
// end artifacts
-
//property
DEFINITION("definition", null),
DEFAULT_VALUE("defaultValue", null),
PROPERTIES("properties", null),
PROPERTY("property", null),
SCHEMA("schema", null),
+ ENTRY_SCHEMA("entry_schema", null),
VALUE("value", null),
PARENT_UNIQUE_ID("parentUniqueId", null),
ORIGIN_UI("originUI", null),
//Groups
-
GROUP_INVARIANT_UUID("invariantUUID", null),
GROUP_UUID("groupUUID", null),
GROUP_MEMBER("members", null),
GROUP_INSTANCE_PROPERTIES("groupInstancesProperties", null),
//Component instance
-
CI_COMPONENT_UID("componentUid", null),
CI_POS_X("posX", null),
CI_POS_Y("posY", null),
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),
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
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),
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) {
return null;
}
+ @JsonValue
+ public String getPresentation() {
+ return presentation;
+ }
}