Skip to content

Commit

Permalink
Adds more mutators to model.
Browse files Browse the repository at this point in the history
  • Loading branch information
outofcoffee committed Apr 21, 2018
1 parent f08fd5c commit 776a17e
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/java/io/apiman/cli/command/api/model/Api.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/io/apiman/cli/command/api/model/ApiConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,18 @@ public List<ApiGateway> 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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
12 changes: 12 additions & 0 deletions src/main/java/io/apiman/cli/command/org/model/Org.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
20 changes: 20 additions & 0 deletions src/main/java/io/apiman/cli/command/plugin/model/Plugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 776a17e

Please sign in to comment.