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