Change nexus values to properties
[appc.git] / app-c / appc / 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 API_VERSION_FIELD_NAME = "org.openecomp.appc.apiversion";
31     public static final String REQ_ID_FIELD_NAME = "org.openecomp.appc.reqid";
32     public static final String PAYLOAD = "payload";
33
34     enum LegacyAttributes {
35         Action("org.openecomp.appc.action"),
36         VMID("org.openecomp.appc.vmid"),
37         IdentityURL("org.openecomp.appc.identity.url"),
38         TenantID("org.openecomp.appc.tenant.id");
39
40         private String value;
41         LegacyAttributes(String value) {this.value = value;}
42         String getValue() {return value;}
43     };
44
45     enum LCMAttributes {
46         Action("input.action"),
47         Payload("input.payload"),
48         VMID("vm-id"),
49         IdentityURL("identity-url"),
50         TenantID("tenant.id");
51
52         private String value;
53         LCMAttributes(String value) {this.value = value;}
54         String getValue() {return value;}
55     };
56
57 }