Align workflow studio to Activity Spec
[sdc/sdc-workflow-designer.git] / sdc-workflow-designer-server / src / main / java / org / onap / sdc / workflowdesigner / WorkflowDesignerConfiguration.java
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   @NotNull
32   private ActivitySpecServiceProxyInfo activitySpecServiceProxy;
33   
34   
35   @JsonProperty
36   public String getTemplate() {
37     return template;
38   }
39
40   @JsonProperty
41   public void setTemplate(String template) {
42     this.template = template;
43   }
44
45   @JsonProperty
46   public String getDefaultName() {
47     return defaultName;
48   }
49
50   @JsonProperty
51   public void setDefaultName(String name) {
52     this.defaultName = name;
53   }
54   
55   /**
56    * @return the adapterType
57    */
58   @JsonProperty
59   public String getAdapterType() {
60     return adapterType;
61   }
62
63   /**
64    * @param adapterType the adapterType to set
65    */
66   @JsonProperty
67   public void setAdapterType(String adapterType) {
68     this.adapterType = adapterType;
69   }
70
71   /**
72    * @return the sdcServiceProxy
73    */
74   @JsonProperty
75   public SDCServiceProxyInfo getSdcServiceProxy() {
76     return sdcServiceProxy;
77   }
78
79   /**
80    * @param sdcServiceProxy the sdcServiceProxy to set
81    */
82   @JsonProperty
83   public void setSdcServiceProxy(SDCServiceProxyInfo sdcServiceProxy) {
84     this.sdcServiceProxy = sdcServiceProxy;
85   }
86
87   /**
88    * @return the activitySpecServiceProxy
89    */
90   @JsonProperty
91   public ActivitySpecServiceProxyInfo getActivitySpecServiceProxy() {
92     return activitySpecServiceProxy;
93   }
94
95   /**
96    * @param activitySpecServiceProxy the activitySpecServiceProxy to set
97    */
98   @JsonProperty
99   public void setActivitySpecServiceProxy(ActivitySpecServiceProxyInfo activitySpecServiceProxy) {
100     this.activitySpecServiceProxy = activitySpecServiceProxy;
101   }
102
103 }