From: Mateusz Warowny Date: Thu, 17 Feb 2022 14:19:45 +0000 (+0100) Subject: JAL-3878 Add interactive flag to WebService class X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=772f645f8a2cb3c5d25eab36d875f2e09ceca48f;p=jalview.git JAL-3878 Add interactive flag to WebService class --- diff --git a/src/jalview/ws2/api/WebService.java b/src/jalview/ws2/api/WebService.java index 39aef4a..946b7ec 100644 --- a/src/jalview/ws2/api/WebService.java +++ b/src/jalview/ws2/api/WebService.java @@ -23,6 +23,8 @@ public class WebService private String description = ""; + private boolean interactive = false; + private ParamDatastoreI paramDatastore; private List actions = new ArrayList<>(); @@ -59,6 +61,12 @@ public class WebService return this; } + public Builder interactive(boolean val) + { + interactive = val; + return this; + } + public Builder paramDatastore(ParamDatastoreI val) { paramDatastore = val; @@ -108,6 +116,8 @@ public class WebService private final String description; + private final boolean interactive; + private final ParamDatastoreI paramDatastore; private final List actions; @@ -121,6 +131,7 @@ public class WebService this.category = builder.category; this.name = builder.name; this.description = builder.description; + this.interactive = builder.interactive; this.paramDatastore = builder.paramDatastore; this.actions = Collections.unmodifiableList(builder.actions); this.actionClass = builder.actionClass; @@ -156,6 +167,11 @@ public class WebService return description; } + boolean isInteractive() + { + return interactive; + } + ParamDatastoreI getParamDatastore() { return paramDatastore;