16f807ea15f92cc97f685dcf2aff3e078d652fbc
[sdc/sdc-workflow-designer.git] /
1 /**
2  * Copyright (c) 2017 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   @JsonProperty
29   public String getTemplate() {
30     return template;
31   }
32
33   @JsonProperty
34   public void setTemplate(String template) {
35     this.template = template;
36   }
37
38   @JsonProperty
39   public String getDefaultName() {
40     return defaultName;
41   }
42
43   @JsonProperty
44   public void setDefaultName(String name) {
45     this.defaultName = name;
46   }
47
48 }