dfdffcf9c903da5cca027e264d63ad6239e0f313
[sdc/sdc-workflow-designer.git] /
1 /**
2  * Copyright (c) 2017-2018 ZTE Corporation.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the Apache License, Version 2.0
5  * and the Eclipse Public License v1.0 which both accompany this distribution,
6  * and are available at http://www.eclipse.org/legal/epl-v10.html
7  * and http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Contributors:
10  *     ZTE - initial API and implementation and/or initial documentation
11  */
12
13 package org.onap.sdc.workflowdesigner;
14
15 import org.hibernate.validator.constraints.NotEmpty;
16
17 import com.fasterxml.jackson.annotation.JsonProperty;
18
19 import io.dropwizard.Configuration;
20
21 public class WorkflowDesignerConfiguration extends Configuration {
22   @NotEmpty
23   private String template;
24
25   @NotEmpty
26   private String defaultName = "Workflow Designer";
27   
28   @NotEmpty
29   private String msbServerAddr;
30   
31   @NotEmpty
32   private SDCServiceProxyInfo sdcServiceProxy;
33
34   @JsonProperty
35   public String getTemplate() {
36     return template;
37   }
38
39   @JsonProperty
40   public void setTemplate(String template) {
41     this.template = template;
42   }
43
44   @JsonProperty
45   public String getDefaultName() {
46     return defaultName;
47   }
48
49   @JsonProperty
50   public void setDefaultName(String name) {
51     this.defaultName = name;
52   }
53   
54   @JsonProperty
55   public String getMsbServerAddr() {
56       return msbServerAddr;
57   }
58
59   @JsonProperty
60   public void setMsbServerAddr(String msbServerAddr) {
61       this.msbServerAddr = msbServerAddr;
62   }
63
64   /**
65    * @return the sdcServiceProxy
66    */
67   @JsonProperty
68   public SDCServiceProxyInfo getSdcServiceProxy() {
69     return sdcServiceProxy;
70   }
71
72   /**
73    * @param sdcServiceProxy the sdcServiceProxy to set
74    */
75   @JsonProperty
76   public void setSdcServiceProxy(SDCServiceProxyInfo sdcServiceProxy) {
77     this.sdcServiceProxy = sdcServiceProxy;
78   }
79
80 }