From 5ab5ce92168be2748115b8bbbef3b7c8d1718447 Mon Sep 17 00:00:00 2001 From: Pete Cornish Date: Sat, 14 Apr 2018 13:51:41 +0100 Subject: [PATCH] Adds more mutators to model. --- .../io/apiman/cli/command/api/model/Api.java | 12 +++++++++++ .../cli/command/api/model/ApiConfig.java | 8 ++++++++ .../model/DeclarativeApiConfig.java | 4 ++++ .../io/apiman/cli/command/org/model/Org.java | 12 +++++++++++ .../cli/command/plugin/model/Plugin.java | 20 +++++++++++++++++++ 5 files changed, 56 insertions(+) diff --git a/src/main/java/io/apiman/cli/command/api/model/Api.java b/src/main/java/io/apiman/cli/command/api/model/Api.java index 6e0af99..3a0b540 100644 --- a/src/main/java/io/apiman/cli/command/api/model/Api.java +++ b/src/main/java/io/apiman/cli/command/api/model/Api.java @@ -58,10 +58,22 @@ public Api(String name, String description, String initialVersion) { this.initialVersion = initialVersion; } + public void setName(String name) { + this.name = name; + } + public String getName() { return name; } + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } + public void setInitialVersion(String initialVersion) { this.initialVersion = initialVersion; } diff --git a/src/main/java/io/apiman/cli/command/api/model/ApiConfig.java b/src/main/java/io/apiman/cli/command/api/model/ApiConfig.java index 8da1087..089017f 100644 --- a/src/main/java/io/apiman/cli/command/api/model/ApiConfig.java +++ b/src/main/java/io/apiman/cli/command/api/model/ApiConfig.java @@ -60,10 +60,18 @@ public List getGateways() { return gateways; } + public void setEndpoint(String endpoint) { + this.endpoint = endpoint; + } + public String getEndpoint() { return endpoint; } + public void setEndpointType(String endpointType) { + this.endpointType = endpointType; + } + public String getEndpointType() { return endpointType; } diff --git a/src/main/java/io/apiman/cli/command/declarative/model/DeclarativeApiConfig.java b/src/main/java/io/apiman/cli/command/declarative/model/DeclarativeApiConfig.java index c7d782f..ef8b1a7 100644 --- a/src/main/java/io/apiman/cli/command/declarative/model/DeclarativeApiConfig.java +++ b/src/main/java/io/apiman/cli/command/declarative/model/DeclarativeApiConfig.java @@ -46,6 +46,10 @@ public void setGateway(String gateway) { this.gateway = gateway; } + public void setMakePublic(boolean makePublic) { + this.makePublic = makePublic; + } + public boolean isMakePublic() { return makePublic; } diff --git a/src/main/java/io/apiman/cli/command/org/model/Org.java b/src/main/java/io/apiman/cli/command/org/model/Org.java index 0ca11a8..5b5adf2 100644 --- a/src/main/java/io/apiman/cli/command/org/model/Org.java +++ b/src/main/java/io/apiman/cli/command/org/model/Org.java @@ -42,7 +42,19 @@ public Org(String name, String description) { this.description = description; } + public void setName(String name) { + this.name = name; + } + public String getName() { return name; } + + public void setDescription(String description) { + this.description = description; + } + + public String getDescription() { + return description; + } } diff --git a/src/main/java/io/apiman/cli/command/plugin/model/Plugin.java b/src/main/java/io/apiman/cli/command/plugin/model/Plugin.java index 4bd1680..292457e 100644 --- a/src/main/java/io/apiman/cli/command/plugin/model/Plugin.java +++ b/src/main/java/io/apiman/cli/command/plugin/model/Plugin.java @@ -65,22 +65,42 @@ public Long getId() { return id; } + public void setName(String name) { + this.name = name; + } + public String getName() { return name; } + public void setArtifactId(String artifactId) { + this.artifactId = artifactId; + } + public String getArtifactId() { return artifactId; } + public void setGroupId(String groupId) { + this.groupId = groupId; + } + public String getGroupId() { return groupId; } + public void setVersion(String version) { + this.version = version; + } + public String getVersion() { return version; } + public void setClassifier(String classifier) { + this.classifier = classifier; + } + public String getClassifier() { return classifier; }