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;
30 public static final String DG_ERROR_FIELD_NAME = "org.onap.appc.dg.error";
31 public static final String DG_OUTPUT_STATUS_MESSAGE = "output.status.message";
32 public static final String EVENT_MESSAGE = "event-message";
33 public static final String ATTRIBUTE_ERROR_MESSAGE = "error-message";
34 public static final String ATTRIBUTE_SUCCESS_MESSAGE = "success-message";
35 public static final String DG_ERROR_CODE = "output.status.dgerror.code";
36 public static final String API_VERSION_FIELD_NAME = "org.onap.appc.apiversion";
37 public static final String REQ_ID_FIELD_NAME = "org.onap.appc.reqid";
38 public static final String PAYLOAD = "payload";
39 public static final String OUTPUT_PAYLOAD = "output.payload";
41 //Added for VnfExecution Flow
42 public static final String FLOW_STRATEGY = "FlowStrategy";
43 public static final String DEPENDENCY_TYPE = "DependencyType";
44 public static final String VNF_TYPE = "vnfType";
45 public static final String VNF_VERION = "vnfVersion";
48 public static final String APPC_INSTANCE_ID = "appc-instance-id";
51 public static final String CVAAS_DIRECTORY_PATH = "cvaas-directory-path";
52 public static final String CVAAS_FILE_NAME = "cvaas-file-name";
53 public static final String CVAAS_FILE_CONTENT = "cvaas-file-content";
55 // DG Resolver Constants
56 public static final String IN_PARAM_VNF_TYPE = "vnfType";
57 public static final String IN_PARAM_VNFC_TYPE = "vnfcType";
58 public static final String IN_PARAM_ACTION = "action";
59 public static final String IN_PARAM_API_VERSION = "api-ver";
61 public static final String OUT_PARAM_DG_NAME = "dg_name";
62 public static final String OUT_PARAM_DG_VERSION = "dg_version";
63 public static final String OUT_PARAM_DG_MODULE = "dg_module";
65 public static final String TABLE_NAME = "VNFC_DG_MAPPING";
66 public static final String TABLE_COLUMN_VNF_TYPE = "VNF_TYPE";
67 public static final String TABLE_COLUMN_VNFC_TYPE = "VNFC_TYPE";
68 public static final String TABLE_COLUMN_ACTION = "ACTION";
69 public static final String TABLE_COLUMN_API_VERSION = "API_VERSION";
70 public static final String TABLE_COLUMN_DG_NAME = "DG_NAME";
71 public static final String TABLE_COLUMN_DG_VERSION = "DG_VERSION";
72 public static final String TABLE_COLUMN_DG_MODULE = "DG_MODULE";
74 enum LegacyAttributes {
75 ACTION("org.onap.appc.action"),
76 VMID("org.onap.appc.vmid"),
77 IDENTITY_URL("org.onap.appc.identity.url"),
78 TENANT_ID("org.onap.appc.tenant.id"),
79 SKIP_HYPERVISOR_CHECK("org.onap.appc.skiphypervisorcheck");
83 LegacyAttributes(String value) {
93 ACTION("input.action"),
94 PAYLOAD("input.payload"),
96 IDENTITY_URL("identity-url"),
97 TENANT_ID("tenant.id"),
98 SKIP_HYPERVISOR_CHECK("skip-hypervisor-check");
100 private String value;
102 LCMAttributes(String value) {