-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: links and add sorting for runtimes (#811)
- Loading branch information
Showing
3 changed files
with
58 additions
and
2 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
47 changes: 47 additions & 0 deletions
47
AMW_rest/src/main/java/ch/mobi/itc/mobiliar/rest/dtos/ServerDTO.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,47 @@ | ||
package ch.mobi.itc.mobiliar.rest.dtos; | ||
|
||
|
||
import ch.puzzle.itc.mobiliar.business.server.entity.ServerTuple; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlRootElement; | ||
|
||
@XmlRootElement(name = "appAppServer") | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class ServerDTO { | ||
|
||
private String host; | ||
private String appServer; | ||
private String appServerRelease; | ||
private String runtime; | ||
private String node; | ||
private String nodeRelease; | ||
private String environment; | ||
private Integer appServerId; | ||
private Integer nodeId; | ||
private Integer environmentId; | ||
private String domain; | ||
private boolean definedOnNode; | ||
|
||
public ServerDTO(ServerTuple serverTuple) { | ||
this.host = serverTuple.getHost(); | ||
this.appServer = serverTuple.getAppServer(); | ||
this.appServerRelease = serverTuple.getAppServerRelease(); | ||
this.runtime = serverTuple.getRuntime(); | ||
this.node = serverTuple.getNode(); | ||
this.nodeRelease = serverTuple.getNodeRelease(); | ||
this.environment = serverTuple.getEnvironment(); | ||
this.appServerId = serverTuple.getAppServerId(); | ||
this.nodeId = serverTuple.getNodeId(); | ||
this.environmentId = serverTuple.getEnvironmentId(); | ||
this.domain = serverTuple.getDomain(); | ||
this.definedOnNode = serverTuple.isDefinedOnNode(); | ||
} | ||
} |
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