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