9009f3c62d364ac41358a1940a1391bd6a0e5088
[appc.git] / appc-dg / appc-dg-shared / appc-dg-common / src / main / java / org / onap / appc / dg / common / impl / Constants.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
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
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
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.
20  * 
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25 package org.onap.appc.dg.common.impl;
26
27
28 class Constants {
29
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";
40
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";
46
47
48     public static final String APPC_INSTANCE_ID = "appc-instance-id";
49
50     //Added for Cvaas
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";
54
55     enum LegacyAttributes {
56         Action("org.onap.appc.action"),
57         VMID("org.onap.appc.vmid"),
58         IdentityURL("org.onap.appc.identity.url"),
59         TenantID("org.onap.appc.tenant.id"),
60         SkipHypervisorCheck("org.onap.appc.skiphypervisorcheck");
61
62         private String value;
63
64         LegacyAttributes(String value) {
65             this.value = value;
66         }
67
68         String getValue() {
69             return value;
70         }
71     }
72
73     ;
74
75     enum LCMAttributes {
76         Action("input.action"),
77         Payload("input.payload"),
78         VMID("vm-id"),
79         IdentityURL("identity-url"),
80         TenantID("tenant.id"),
81         SkipHypervisorCheck("skip-hypervisor-check");
82
83         private String value;
84
85         LCMAttributes(String value) {
86             this.value = value;
87         }
88
89         String getValue() {
90             return value;
91         }
92     }
93
94     ;
95
96     // DG Resolver Constants
97     public static final String IN_PARAM_VNF_TYPE = "vnfType";
98     public static final String IN_PARAM_VNFC_TYPE = "vnfcType";
99     public static final String IN_PARAM_ACTION = "action";
100     public static final String IN_PARAM_API_VERSION = "api-ver";
101
102     public static final String OUT_PARAM_DG_NAME = "dg_name";
103     public static final String OUT_PARAM_DG_VERSION = "dg_version";
104     public static final String OUT_PARAM_DG_MODULE = "dg_module";
105
106     public static final String TABLE_NAME = "VNFC_DG_MAPPING";
107     public static final String TABLE_COLUMN_VNF_TYPE = "VNF_TYPE";
108     public static final String TABLE_COLUMN_VNFC_TYPE = "VNFC_TYPE";
109     public static final String TABLE_COLUMN_ACTION = "ACTION";
110     public static final String TABLE_COLUMN_API_VERSION = "API_VERSION";
111     public static final String TABLE_COLUMN_DG_NAME = "DG_NAME";
112     public static final String TABLE_COLUMN_DG_VERSION = "DG_VERSION";
113     public static final String TABLE_COLUMN_DG_MODULE = "DG_MODULE";
114 }