1881e3e454d6e77ab82965263a5474ec17fad534
[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 : APP-C
4  * ================================================================================
5  * Copyright (C) 2017 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 String STRING_ENCODING = "utf-8";
26         public static String Y = "Y";
27         public static String N = "N";
28         public static String DATA_TYPE_TEXT = "TEXT";
29         public static String DATA_TYPE_JSON = "JSON";
30         public static String DATA_TYPE_XML = "XML";
31         public static String DATA_TYPE_SQL = "SQL";
32     
33         public static String INPUT_PARAM_RESPONSE_PRIFIX = "responsePrefix";
34         
35         public static String OUTPUT_PARAM_STATUS = "status";
36         public static String OUTPUT_PARAM_ERROR_MESSAGE = "error-message";
37         public static String OUTPUT_STATUS_SUCCESS = "success";
38         public static 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 VNF_TYPE = "vnf-type";
44         public static final String ACTION = "action";
45         public static final String VNFC_TYPE = "vnfc-type";
46         public static final String VM_INSTANCE = "vm-instance";
47         public static final String VM = "vm";
48         public static final String VNFC = "vnfc";
49         public static final String REFERENCE = "reference";
50         public static final String VNFC_INSTANCE = "vnfc-instance";
51         public static final String DEVICE_PROTOCOL = "device-protocol";
52         public static final String DG_RPC = "dg-rpc";
53         public static final String MODULE = "module";
54         public static final String USER_NAME = "user-name";
55         public static final String PORT_NUMBER = "port-number";
56         public static final String DOWNLOAD_DG_REFERENCE = "download-dg-reference";
57         public static final String REQUEST_ACTION = "request-action";
58         public static final String VNF = "vnf";
59         public static final String EXTERNAL = "External";
60         public static final String ACTION_LEVEL = "action-level";
61         public static final String ARTIFACT_NAME = "artifact-name";
62                 
63         public static enum endPointType {DG,REST,NODE};        
64         public static enum flowStatus {PENDING,IN_PROCESS,COMPLETED};
65         
66         public static final String GENERATION_NODE = "GENERATION-NODE";
67         public static final String SEQUENCE_TYPE = "SEQUENCE-TYPE";
68         public static final String CATEGORY = "CATEGORY";
69         public static final String EXECUTION_NODE = "EXECUTION-NODE";
70         
71
72         public static final String REQUEST_ID = "reqeust-id";
73         public static final String ARTIFACT_CONTENT = "artifact-content";
74         public static final String ARTIFACT_CONTENT_ESCAPED = "artifact-content-escaped";
75         public static final String FLOW_SEQUENCE = "flow-sequence";
76         public static final String EXECUTTION_MODULE = "execution-module";
77         public static final String EXECUTION_RPC = "execution-rpc";
78         public static final String EXECUTION_TYPE = "execution-type";
79         public static final String GRAPH = "graph";
80         public static final String NODE = "node";
81         public static final String REST = "rest";
82         
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 = "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     }