-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #219 from dulanjalidilmi/master
Retrieve CApp artifacts via the management console
- Loading branch information
Showing
9 changed files
with
389 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
....ei.dashboard.core/src/main/java/org/wso2/ei/dashboard/core/rest/model/CAppArtifacts.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* | ||
* Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
* WSO2 Inc. licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* | ||
*/ | ||
|
||
package org.wso2.ei.dashboard.core.rest.model; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
import org.wso2.ei.dashboard.core.rest.model.CAppArtifactsInner; | ||
import javax.validation.constraints.*; | ||
import javax.validation.Valid; | ||
|
||
|
||
import io.swagger.annotations.*; | ||
import java.util.Objects; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
|
||
public class CAppArtifacts extends ArrayList<CAppArtifactsInner> { | ||
|
||
|
||
@Override | ||
public boolean equals(java.lang.Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
CAppArtifacts cappArtifacts = (CAppArtifacts) o; | ||
return true; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class CAppArtifacts {\n"); | ||
sb.append(" ").append(toIndentedString(super.toString())).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces | ||
* (except the first line). | ||
*/ | ||
private String toIndentedString(java.lang.Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
112 changes: 112 additions & 0 deletions
112
...ashboard.core/src/main/java/org/wso2/ei/dashboard/core/rest/model/CAppArtifactsInner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
/* | ||
* Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
* WSO2 Inc. licenses this file to you under the Apache License, | ||
* Version 2.0 (the "License"); you may not use this file except | ||
* in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* | ||
*/ | ||
|
||
package org.wso2.ei.dashboard.core.rest.model; | ||
|
||
import javax.validation.constraints.*; | ||
import javax.validation.Valid; | ||
|
||
|
||
import io.swagger.annotations.*; | ||
import java.util.Objects; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
|
||
public class CAppArtifactsInner { | ||
private @Valid String name = null; | ||
private @Valid String type = null; | ||
|
||
/** | ||
**/ | ||
public CAppArtifactsInner name(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
|
||
|
||
@ApiModelProperty(value = "") | ||
@JsonProperty("name") | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
/** | ||
**/ | ||
public CAppArtifactsInner type(String type) { | ||
this.type = type; | ||
return this; | ||
} | ||
|
||
|
||
@ApiModelProperty(value = "") | ||
@JsonProperty("type") | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
|
||
@Override | ||
public boolean equals(java.lang.Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
CAppArtifactsInner cappArtifactsInner = (CAppArtifactsInner) o; | ||
return Objects.equals(name, cappArtifactsInner.name) && | ||
Objects.equals(type, cappArtifactsInner.type); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(name, type); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class CAppArtifactsInner {\n"); | ||
|
||
sb.append(" name: ").append(toIndentedString(name)).append("\n"); | ||
sb.append(" type: ").append(toIndentedString(type)).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces | ||
* (except the first line). | ||
*/ | ||
private String toIndentedString(java.lang.Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.