6ce2a1e266da7fb11ea1608298adb2ad9d2b93ff
[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 SDCServiceProxyInfo sdcServiceProxy;
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   /**
52    * @return the sdcServiceProxy
53    */
54   @JsonProperty
55   public SDCServiceProxyInfo getSdcServiceProxy() {
56     return sdcServiceProxy;
57   }
58
59   /**
60    * @param sdcServiceProxy the sdcServiceProxy to set
61    */
62   @JsonProperty
63   public void setSdcServiceProxy(SDCServiceProxyInfo sdcServiceProxy) {
64     this.sdcServiceProxy = sdcServiceProxy;
65   }
66
67 }