cde361a8d6c127bf23157351e4055c39e6f5bbc9
[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 javax.validation.constraints.NotNull;
16
17 import org.hibernate.validator.constraints.NotEmpty;
18
19 import com.fasterxml.jackson.annotation.JsonProperty;
20
21 import io.dropwizard.Configuration;
22
23 public class WorkflowDesignerConfiguration extends Configuration {
24   @NotEmpty
25   private String template;
26
27   @NotEmpty
28   private String defaultName = "Workflow Designer";
29   
30   @NotEmpty
31   private String adapterType;
32   
33   @NotNull
34   private SDCServiceProxyInfo sdcServiceProxy;
35   
36   
37   @JsonProperty
38   public String getTemplate() {
39     return template;
40   }
41
42   @JsonProperty
43   public void setTemplate(String template) {
44     this.template = template;
45   }
46
47   @JsonProperty
48   public String getDefaultName() {
49     return defaultName;
50   }
51
52   @JsonProperty
53   public void setDefaultName(String name) {
54     this.defaultName = name;
55   }
56   
57   /**
58    * @return the adapterType
59    */
60   @JsonProperty
61   public String getAdapterType() {
62     return adapterType;
63   }
64
65   /**
66    * @param adapterType the adapterType to set
67    */
68   @JsonProperty
69   public void setAdapterType(String adapterType) {
70     this.adapterType = adapterType;
71   }
72
73   /**
74    * @return the sdcServiceProxy
75    */
76   @JsonProperty
77   public SDCServiceProxyInfo getSdcServiceProxy() {
78     return sdcServiceProxy;
79   }
80
81   /**
82    * @param sdcServiceProxy the sdcServiceProxy to set
83    */
84   @JsonProperty
85   public void setSdcServiceProxy(SDCServiceProxyInfo sdcServiceProxy) {
86     this.sdcServiceProxy = sdcServiceProxy;
87   }
88
89 }