Merge of new rebased code
[appc.git] / appc-dg / appc-dg-shared / appc-dg-common / src / main / java / org / openecomp / appc / dg / common / impl / Constants.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * openECOMP : APP-C
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights
6  *                                              reserved.
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
11  * 
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  * 
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  */
21
22 package org.openecomp.appc.dg.common.impl;
23
24
25
26 class Constants {
27
28     public static final String DG_ERROR_FIELD_NAME = "org.openecomp.appc.dg.error";
29     public static final String DG_OUTPUT_STATUS_MESSAGE = "output.status.message";
30     public static final String EVENT_MESSAGE = "event-message";
31     public static final String ATTRIBUTE_ERROR_MESSAGE = "error-message";
32     public static final String ATTRIBUTE_SUCCESS_MESSAGE = "success-message";
33     public static final String DG_ERROR_CODE = "output.status.dgerror.code";
34     public static final String API_VERSION_FIELD_NAME = "org.openecomp.appc.apiversion";
35     public static final String REQ_ID_FIELD_NAME = "org.openecomp.appc.reqid";
36     public static final String PAYLOAD = "payload";
37     public static final String OUTPUT_PAYLOAD = "output.payload";
38
39     //Added for VnfExecution Flow
40     public static final String FLOW_STRATEGY = "FlowStrategy" ;
41     public static final String DEPENDENCY_TYPE = "DependencyType";
42     public static final String VNF_TYPE = "vnfType";
43     public static final String VNF_VERION = "vnfVersion";
44
45
46     public static final String APPC_INSTANCE_ID= "appc-instance-id";
47
48     //Added for Cvaas
49     public static final String CVAAS_DIRECTORY_PATH = "cvaas-directory-path";
50     public static final String CVAAS_FILE_NAME = "cvaas-file-name";
51     public static final String CVAAS_FILE_CONTENT = "cvaas-file-content";
52
53     enum LegacyAttributes {
54         Action("org.openecomp.appc.action"),
55         VMID("org.openecomp.appc.vmid"),
56         IdentityURL("org.openecomp.appc.identity.url"),
57         TenantID("org.openecomp.appc.tenant.id"),
58         SkipHypervisorCheck("org.openecomp.appc.skiphypervisorcheck");
59
60         private String value;
61         LegacyAttributes(String value) {this.value = value;}
62         String getValue() {return value;}
63     };
64
65     enum LCMAttributes {
66         Action("input.action"),
67         Payload("input.payload"),
68         VMID("vm-id"),
69         IdentityURL("identity-url"),
70         TenantID("tenant.id"),
71         SkipHypervisorCheck("skip-hypervisor-check");
72
73         private String value;
74         LCMAttributes(String value) {this.value = value;}
75         String getValue() {return value;}
76     };
77
78     // DG Resolver Constants
79     public static final String IN_PARAM_VNF_TYPE = "vnfType";
80     public static final String IN_PARAM_VNFC_TYPE = "vnfcType";
81     public static final String IN_PARAM_ACTION = "action";
82     public static final String IN_PARAM_API_VERSION = "api-ver";
83
84     public static final String OUT_PARAM_DG_NAME = "dg_name";
85     public static final String OUT_PARAM_DG_VERSION= "dg_version";
86     public static final String OUT_PARAM_DG_MODULE = "dg_module";
87
88     public static final String TABLE_NAME = "VNFC_DG_MAPPING";
89     public static final String TABLE_COLUMN_VNF_TYPE = "VNF_TYPE";
90     public static final String TABLE_COLUMN_VNFC_TYPE = "VNFC_TYPE";
91     public static final String TABLE_COLUMN_ACTION = "ACTION";
92     public static final String TABLE_COLUMN_API_VERSION = "API_VERSION";
93     public static final String TABLE_COLUMN_DG_NAME = "DG_NAME";
94     public static final String TABLE_COLUMN_DG_VERSION= "DG_VERSION";
95     public static final String TABLE_COLUMN_DG_MODULE = "DG_MODULE";
96 }