2 * Copyright 2016-2017 Huawei Technologies Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.onap.vfc.nfvo.resmanagement.common.constant;
25 * @version VFC 1.0 Aug 25, 2016
27 public class Constant {
29 public static final String RES_MANAGEMENT_DB = "resmanagementdb";
32 * Database Delete/Modify/Add fail.
34 public static final int ERROR_CODE = -1;
37 * Database Delete/Modify/Add success.
39 public static final int OK_CODE = 1;
44 public static final int RES_NOT_ENOUGH_CODE = -2;
49 public static final String MODULE_NAME = "Resmanagement";
51 public static final String RESPONSE_CONTENT = "responseContent";
53 public static final String STATUS_CODE = "statusCode";
58 public static final String DATE_FORMATE = "yyyy-MM-dd HH:mm:ss";
60 public static final String DATE_UTC_FORMATE = "yyyy-MM-dd'T'HH:mm:ss'Z'";
62 public static final String UTC_FORMATE = "UTC";
64 public static final String DATE_DAY_FORMATE = "yyyy-MM-dd 00:00:00";
70 public static final String HTTP_CONTENT_TYPE = "Content-Type";
72 public static final String HTTP_CONTENT_TYPE_VALUE = "application/json;charset=UTF-8";
74 public static final String X_TENANT_ID = "X-Tenant-Id";
76 public static final String IAM_TOKEN = "x-auth-token";
78 public static final String IAM_AUTH_TOKEN = "X-Auth-Token";
80 public static final String IAM_USER_ID = "X-User-Id";
82 public static final String IAM_USER_NAME = "X-User-Name";
84 public static final String IAM_DOMAIN_NAME = "X-Domain-Name";
86 public static final String HEADER_SUBJECT_TOKEN = "X-Subject-Token";
88 public static final int REPEAT_REG_TIME = 60 * 1000;
90 public static String VFC_CUSTOMER_ID = "vfc";
92 public static String VFC_SERVICE_SUBSCRIPTION_ID = "vfc-subsription";
94 public static final String CONF = "config.properties";
96 public static final String HOST = "host_url";
98 public static final String PORT = "port";
100 public static final String CLOUD_OWNER = "cloud-owner";
102 public static final String CLOUD_REGION_ID = "cloud-region-id";
104 public static final String TENANT_ID = "tenant-id";
106 public static final String GLOBAL_CUSTOMER_ID = "global-customer-id";
108 public static final String SERVICE_TYPE = "service-type";