2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * Copyright (C) 2017 Amdocs
7 * ================================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END=========================================================
20 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 package org.openecomp.appc.dg.common.impl;
29 public static final String DG_ERROR_FIELD_NAME = "org.openecomp.appc.dg.error";
30 public static final String DG_OUTPUT_STATUS_MESSAGE = "output.status.message";
31 public static final String EVENT_MESSAGE = "event-message";
32 public static final String ATTRIBUTE_ERROR_MESSAGE = "error-message";
33 public static final String ATTRIBUTE_SUCCESS_MESSAGE = "success-message";
34 public static final String DG_ERROR_CODE = "output.status.dgerror.code";
35 public static final String API_VERSION_FIELD_NAME = "org.openecomp.appc.apiversion";
36 public static final String REQ_ID_FIELD_NAME = "org.openecomp.appc.reqid";
37 public static final String PAYLOAD = "payload";
38 public static final String OUTPUT_PAYLOAD = "output.payload";
40 //Added for VnfExecution Flow
41 public static final String FLOW_STRATEGY = "FlowStrategy" ;
42 public static final String DEPENDENCY_TYPE = "DependencyType";
43 public static final String VNF_TYPE = "vnfType";
44 public static final String VNF_VERION = "vnfVersion";
47 public static final String APPC_INSTANCE_ID= "appc-instance-id";
50 public static final String CVAAS_DIRECTORY_PATH = "cvaas-directory-path";
51 public static final String CVAAS_FILE_NAME = "cvaas-file-name";
52 public static final String CVAAS_FILE_CONTENT = "cvaas-file-content";
54 enum LegacyAttributes {
55 Action("org.openecomp.appc.action"),
56 VMID("org.openecomp.appc.vmid"),
57 IdentityURL("org.openecomp.appc.identity.url"),
58 TenantID("org.openecomp.appc.tenant.id"),
59 SkipHypervisorCheck("org.openecomp.appc.skiphypervisorcheck");
62 LegacyAttributes(String value) {this.value = value;}
63 String getValue() {return value;}
67 Action("input.action"),
68 Payload("input.payload"),
70 IdentityURL("identity-url"),
71 TenantID("tenant.id"),
72 SkipHypervisorCheck("skip-hypervisor-check");
75 LCMAttributes(String value) {this.value = value;}
76 String getValue() {return value;}
79 // DG Resolver Constants
80 public static final String IN_PARAM_VNF_TYPE = "vnfType";
81 public static final String IN_PARAM_VNFC_TYPE = "vnfcType";
82 public static final String IN_PARAM_ACTION = "action";
83 public static final String IN_PARAM_API_VERSION = "api-ver";
85 public static final String OUT_PARAM_DG_NAME = "dg_name";
86 public static final String OUT_PARAM_DG_VERSION= "dg_version";
87 public static final String OUT_PARAM_DG_MODULE = "dg_module";
89 public static final String TABLE_NAME = "VNFC_DG_MAPPING";
90 public static final String TABLE_COLUMN_VNF_TYPE = "VNF_TYPE";
91 public static final String TABLE_COLUMN_VNFC_TYPE = "VNFC_TYPE";
92 public static final String TABLE_COLUMN_ACTION = "ACTION";
93 public static final String TABLE_COLUMN_API_VERSION = "API_VERSION";
94 public static final String TABLE_COLUMN_DG_NAME = "DG_NAME";
95 public static final String TABLE_COLUMN_DG_VERSION= "DG_VERSION";
96 public static final String TABLE_COLUMN_DG_MODULE = "DG_MODULE";