Deploy plan file to WSO2 get error
[vfc/nfvo/wfengine.git] / wso2bpel-ext / wso2bpel-core / wso2bpel-mgr / src / main / java / org / openo / carbon / bpel / Wso2BpelConfiguration.java
1 /**
2  * Copyright 2016 ZTE Corporation.
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 package org.openo.carbon.bpel;
17
18 import io.dropwizard.Configuration;
19 import com.fasterxml.jackson.annotation.JsonProperty;
20 import io.dropwizard.db.DataSourceFactory;
21 import org.hibernate.validator.constraints.NotEmpty;
22
23 import javax.validation.constraints.NotNull;
24
25 public class Wso2BpelConfiguration extends Configuration {
26   @NotEmpty
27   private String template;
28   @NotEmpty
29   private String apiDescription = "Wso2bps REST API";
30   @NotNull
31   private DataSourceFactory database = new DataSourceFactory();
32   
33   @NotEmpty
34   private String msbServerAddr;
35   
36   @NotEmpty
37   private String wso2Host;
38
39   @NotEmpty
40   private String wso2HostPort;
41   
42   @NotEmpty
43   private String wso2AuthUserName;
44   
45   @NotEmpty
46   private String wso2AuthPassword;
47   
48   @NotEmpty
49   private String wso2Path;
50   
51   @NotEmpty
52   private String wso2UploadFilePath;
53   
54   @NotEmpty
55   private String wso2SslJksFile;
56   
57   @NotEmpty
58   private String wso2SslJksPassword;
59   
60   @JsonProperty
61   public String getTemplate() {
62     return template;
63   }
64
65   @JsonProperty
66   public String getApiDescription() {
67     return apiDescription;
68   }
69
70   @JsonProperty("database")
71   public DataSourceFactory getDataSourceFactory() {
72     return database;
73   }
74
75   @JsonProperty
76   public DataSourceFactory getDatabase() {
77     return database;
78   }
79
80   @JsonProperty
81   public void setDatabase(DataSourceFactory database) {
82     this.database = database;
83   }
84
85   @JsonProperty
86   public String getMsbServerAddr() {
87     return msbServerAddr;
88   }
89
90   @JsonProperty
91   public void setMsbServerAddr(String msbServerAddr) {
92     this.msbServerAddr = msbServerAddr;
93   }
94   
95   @JsonProperty
96   public String getWso2Host() {
97     return wso2Host;
98   }
99
100   @JsonProperty
101   public void setWso2Host(String wso2Host) {
102     this.wso2Host = wso2Host;
103   }
104   
105   @JsonProperty
106   public String getWso2HostPort() {
107     return wso2HostPort;
108   }
109
110   @JsonProperty
111   public void setWso2HostPort(String wso2HostPort) {
112     this.wso2HostPort = wso2HostPort;
113   }
114
115   @JsonProperty
116   public String getWso2AuthUserName() {
117     return wso2AuthUserName;
118   }
119
120   @JsonProperty
121   public void setWso2AuthUserName(String wso2AuthUserName) {
122     this.wso2AuthUserName = wso2AuthUserName;
123   }
124
125   @JsonProperty
126   public String getWso2AuthPassword() {
127     return wso2AuthPassword;
128   }
129
130   @JsonProperty
131   public void setWso2AuthPassword(String wso2AuthPassword) {
132     this.wso2AuthPassword = wso2AuthPassword;
133   }
134
135   @JsonProperty
136   public String getWso2Path() {
137     return wso2Path;
138   }
139
140   @JsonProperty
141   public void setWso2Path(String wso2Path) {
142     this.wso2Path = wso2Path;
143   }
144
145   @JsonProperty
146   public String getWso2UploadFilePath() {
147     return wso2UploadFilePath;
148   }
149
150   @JsonProperty
151   public void setWso2UploadFilePath(String wso2UploadFilePath) {
152     this.wso2UploadFilePath = wso2UploadFilePath;
153   }
154
155   @JsonProperty
156   public String getWso2SslJksFile() {
157     return wso2SslJksFile;
158   }
159
160   @JsonProperty
161   public void setWso2SslJksFile(String wso2SslJksFile) {
162     this.wso2SslJksFile = wso2SslJksFile;
163   }
164
165   @JsonProperty
166   public String getWso2SslJksPassword() {
167     return wso2SslJksPassword;
168   }
169
170   @JsonProperty
171   public void setWso2SslJksPassword(String wso2SslJksPassword) {
172     this.wso2SslJksPassword = wso2SslJksPassword;
173   }
174
175 }