Changes to get properties from southbound propfile
[appc.git] / appc-config / appc-flow-controller / provider / src / main / java / org / onap / appc / flow / controller / utils / FlowControllerConstants.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
6  * =============================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.appc.flow.controller.utils;
22
23 public class FlowControllerConstants {
24
25     public static final String STRING_ENCODING = "utf-8";
26     public static final String Y = "Y";
27     public static final String N = "N";
28     public static final String DATA_TYPE_TEXT = "TEXT";
29     public static final String DATA_TYPE_JSON = "JSON";
30     public static final String DATA_TYPE_XML = "XML";
31     public static final String DATA_TYPE_SQL = "SQL";
32
33     public static final String INPUT_PARAM_RESPONSE_PREFIX = "responsePrefix";
34
35     public static final String OUTPUT_PARAM_STATUS = "status";
36     public static final String OUTPUT_PARAM_ERROR_MESSAGE = "error-message";
37     public static final String OUTPUT_STATUS_SUCCESS = "success";
38     public static final String OUTPUT_STATUS_FAILURE = "failure";
39
40     public static final String DESINGTIME = "DesignTime";
41     public static final String RUNTIME = "RunTime";
42     public static final String APPC_FLOW_CONTROLLER = "/appc-flow-controller.properties";
43     public static final String APPC_SOUTHBOUND = "/appc_southbound.properties";
44     public static final String VNF_TYPE = "vnf-type";
45     public static final String ACTION = "action";
46     public static final String VNFC_TYPE = "vnfc-type";
47     public static final String VM_INSTANCE = "vm-instance";
48     public static final String VM = "vm";
49     public static final String VNFC = "vnfc";
50     public static final String REFERENCE = "reference";
51     public static final String VNFC_INSTANCE = "vnfc-instance";
52     public static final String DEVICE_PROTOCOL = "device-protocol";
53     public static final String DG_RPC = "dg-rpc";
54     public static final String MODULE = "module";
55     public static final String USER_NAME = "user-name";
56     public static final String PORT_NUMBER = "port-number";
57     public static final String DOWNLOAD_DG_REFERENCE = "download-dg-reference";
58     public static final String REQUEST_ACTION = "request-action";
59     public static final String VNF = "vnf";
60     public static final String EXTERNAL = "External";
61     public static final String ACTION_LEVEL = "action-level";
62     public static final String ARTIFACT_NAME = "artifact-name";
63
64     public enum EndPointType { DG, REST, NODE }
65
66     public enum FlowStatus { PENDING, IN_PROCESS, COMPLETED }
67
68     public static final String GENERATION_NODE = "GENERATION-NODE";
69     public static final String SEQUENCE_TYPE = "SEQUENCE-TYPE";
70     public static final String CATEGORY = "CATEGORY";
71     public static final String EXECUTION_NODE = "EXECUTION-NODE";
72
73     public static final String REQUEST_ID = "reqeust-id";
74     public static final String ARTIFACT_CONTENT = "artifact-content";
75     public static final String ARTIFACT_CONTENT_ESCAPED = "artifact-content-escaped";
76     public static final String FLOW_SEQUENCE = "flow-sequence";
77     public static final String EXECUTTION_MODULE = "execution-module";
78     public static final String EXECUTION_RPC = "execution-rpc";
79     public static final String EXECUTION_TYPE = "execution-type";
80     public static final String GRAPH = "graph";
81     public static final String NODE = "node";
82     public static final String REST = "rest";
83
84     public static final String DB_SDC_ARTIFACTS = "ASDC_ARTIFACTS";
85     public static final String DB_SDC_REFERENCE = "ASDC_REFERENCE";
86     public static final String DB_REQUEST_ARTIFACTS = "REQUEST_ARTIFACTS";
87     public static final String DB_MULTISTEP_FLOW_REFERENCE = "MULTISTEP_FLOW_REFERENCE";
88     public static final String DB_PROTOCOL_REFERENCE = "PROTOCOL_REFERENCE";
89     public static final String DB_PROCESS_FLOW_REFERENCE = "PROCESS_FLOW_REFERENCE";
90     public static final String MOCK_HEALTHCHECK = "mock-healthcheck";
91     public static final String ACTION_IDENTIFIER = "action-identifier";
92     public static final String PAYLOAD = "payload";
93     public static final String FAILURE = "failure";
94     public static final String SUCCESS = "success";
95     public static final String OTHERS = "Others";
96     public static final String RESPONSE_PREFIX = "response-prefix";
97     public static final String OUTPUT_STATUS_MESSAGE = "status-message";
98     public static final String HEALTHY = "healthy";
99     public static final String INPUT_URL = "input.url";
100     public static final String INPUT_HOST_IP_ADDRESS = "request-parameters.host-ip-address";
101     public static final String INPUT_PORT_NUMBER = "port-number";
102     public static final String INPUT_CONTEXT = "context";
103     public static final String INPUT_SUB_CONTEXT = "sub-context";
104     public static final String INPUT_REQUEST_ACTION_TYPE = "request-action-type";
105     public static final String INPUT_REQUEST_ACTION = "request-action";
106     public static final String HTTP = "http://";
107
108     public static final String VNF_ID = "vnf-id";
109     public static final String VSERVER_ID = "vserver-id";
110     public static final String SEQ_GENERATOR_URL = "seq_generator_url";
111     public static final String SEQ_GENERATOR_UID = "seq_generator.uid";
112     public static final String SEQ_GENERATOR_PWD = "seq_generator.pwd";
113     public static final String CAPABILITY = "capability";
114     public static final String DEPENDENCYMODEL = "tosca_dependency_model";
115     public static final String VF_MODULE = "vf-module";
116     public static final String VNFC_NAME = "vnfc-name";
117     public static final String AAI_VNF_TYPE = "aai-vnf-type";
118     public static final String REST_PROTOCOL = "REST";
119     public static final String HEALTHCHECK ="HealthCheck";
120     public static final String REST_USER="user";
121     public static final String REST_PWD="password";
122     public static final String REST_PORT="port";
123     public static final String REST_CONTEXT_URL="url";
124 }