b4ed3d10ad7d0cad73c542fddccf56112fd1c591
[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   @JsonProperty
32   public String getTemplate() {
33     return template;
34   }
35
36   @JsonProperty
37   public void setTemplate(String template) {
38     this.template = template;
39   }
40
41   @JsonProperty
42   public String getDefaultName() {
43     return defaultName;
44   }
45
46   @JsonProperty
47   public void setDefaultName(String name) {
48     this.defaultName = name;
49   }
50   
51   @JsonProperty
52   public String getMsbServerAddr() {
53       return msbServerAddr;
54   }
55
56   @JsonProperty
57   public void setMsbServerAddr(String msbServerAddr) {
58       this.msbServerAddr = msbServerAddr;
59   }
60
61 }