28c96c71af86f78acd74823b95d0c37ca54611eb
[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   @NotNull
31   private SDCServiceProxyInfo sdcServiceProxy;
32
33   @JsonProperty
34   public String getTemplate() {
35     return template;
36   }
37
38   @JsonProperty
39   public void setTemplate(String template) {
40     this.template = template;
41   }
42
43   @JsonProperty
44   public String getDefaultName() {
45     return defaultName;
46   }
47
48   @JsonProperty
49   public void setDefaultName(String name) {
50     this.defaultName = name;
51   }
52
53   /**
54    * @return the sdcServiceProxy
55    */
56   @JsonProperty
57   public SDCServiceProxyInfo getSdcServiceProxy() {
58     return sdcServiceProxy;
59   }
60
61   /**
62    * @param sdcServiceProxy the sdcServiceProxy to set
63    */
64   @JsonProperty
65   public void setSdcServiceProxy(SDCServiceProxyInfo sdcServiceProxy) {
66     this.sdcServiceProxy = sdcServiceProxy;
67   }
68
69 }