This commit is contained in:
crusader 2018-06-11 23:12:24 +09:00
parent 68c3cee25e
commit 41e1e9e209
8 changed files with 193 additions and 231 deletions

View File

@ -13,7 +13,7 @@
<groupId>com.loafle.overflow</groupId> <groupId>com.loafle.overflow</groupId>
<artifactId>commons-java</artifactId> <artifactId>commons-java</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<version>1.0.38-SNAPSHOT</version> <version>1.0.39-SNAPSHOT</version>
<name>com.loafle.overflow.commons-java</name> <name>com.loafle.overflow.commons-java</name>
<properties> <properties>

View File

@ -36,7 +36,7 @@ public class InfraHostMachine {
} }
@Basic @Basic
@Column(name = "META", nullable = true) @Column(name = "META", nullable = true, length = 2000)
public String getMeta() { public String getMeta() {
return meta; return meta;
} }

View File

@ -12,6 +12,13 @@ import java.util.Date;
public class InfraHostOS { public class InfraHostOS {
private Long id; private Long id;
private InfraHost infraHost; private InfraHost infraHost;
private String name;
private String os;
private String platform;
private String platformFamily;
private String platformVersion;
private String kernelVersion;
private String hostID;
private String meta; private String meta;
private Date createDate; private Date createDate;
@ -35,8 +42,120 @@ public class InfraHostOS {
this.infraHost = infraHost; this.infraHost = infraHost;
} }
/**
* @return the name
*/
@Basic @Basic
@Column(name = "META", nullable = true) @Column(name = "NAME", nullable = true, length = 100)
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the os
*/
@Basic
@Column(name = "OS", nullable = true, length = 100)
public String getOs() {
return os;
}
/**
* @param os the os to set
*/
public void setOs(String os) {
this.os = os;
}
/**
* @return the platform
*/
@Basic
@Column(name = "PLATFORM", nullable = true, length = 100)
public String getPlatform() {
return platform;
}
/**
* @param platform the platform to set
*/
public void setPlatform(String platform) {
this.platform = platform;
}
/**
* @return the platformFamily
*/
@Basic
@Column(name = "PLATFORM_FAMILY", nullable = true, length = 100)
public String getPlatformFamily() {
return platformFamily;
}
/**
* @param platformFamily the platformFamily to set
*/
public void setPlatformFamily(String platformFamily) {
this.platformFamily = platformFamily;
}
/**
* @return the platformVersion
*/
@Basic
@Column(name = "PLATFORM_VERSION", nullable = true, length = 100)
public String getPlatformVersion() {
return platformVersion;
}
/**
* @param platformVersion the platformVersion to set
*/
public void setPlatformVersion(String platformVersion) {
this.platformVersion = platformVersion;
}
/**
* @return the kernelVersion
*/
@Basic
@Column(name = "KERNEL_VERSION", nullable = true, length = 100)
public String getKernelVersion() {
return kernelVersion;
}
/**
* @param kernelVersion the kernelVersion to set
*/
public void setKernelVersion(String kernelVersion) {
this.kernelVersion = kernelVersion;
}
/**
* @return the hostID
*/
@Basic
@Column(name = "HOST_ID", nullable = true, length = 50)
public String getHostID() {
return hostID;
}
/**
* @param hostID the hostID to set
*/
public void setHostID(String hostID) {
this.hostID = hostID;
}
@Basic
@Column(name = "META", nullable = true, length = 2000)
public String getMeta() { public String getMeta() {
return meta; return meta;
} }
@ -45,7 +164,6 @@ public class InfraHostOS {
this.meta = meta; this.meta = meta;
} }
@Temporal(TemporalType.TIMESTAMP) @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false) @Column(name = "CREATE_DATE", nullable = false, columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP", insertable = false, updatable = false)
public Date getCreateDate() { public Date getCreateDate() {
@ -55,4 +173,5 @@ public class InfraHostOS {
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
} }

View File

@ -2,7 +2,6 @@ package com.loafle.overflow.model.infra;
import javax.persistence.*; import javax.persistence.*;
import com.loafle.overflow.model.meta.MetaIPType;
import com.loafle.overflow.model.meta.MetaTargetZoneType; import com.loafle.overflow.model.meta.MetaTargetZoneType;
/** /**
@ -16,9 +15,10 @@ public class InfraZone extends Infra {
private String network; private String network;
private String iface; private String iface;
private MetaIPType metaIPType; private String addressV4;
private String address; private String addressV6;
private String mac; private String mac;
private String gateway;
@ManyToOne @ManyToOne
@JoinColumn(name = "META_TARGET_ZONE_TYPE_ID", nullable = true) @JoinColumn(name = "META_TARGET_ZONE_TYPE_ID", nullable = true)
@ -30,7 +30,6 @@ public class InfraZone extends Infra {
this.metaTargetZoneType = metaTargetZoneType; this.metaTargetZoneType = metaTargetZoneType;
} }
@Basic @Basic
@Column(name = "NETWORK", nullable = true) @Column(name = "NETWORK", nullable = true)
public String getNetwork() { public String getNetwork() {
@ -51,26 +50,6 @@ public class InfraZone extends Infra {
this.iface = iface; this.iface = iface;
} }
@ManyToOne
@JoinColumn(name = "META_IP_TYPE_ID", nullable = true)
public MetaIPType getMetaIPType() {
return metaIPType;
}
public void setMetaIPType(MetaIPType metaIPType) {
this.metaIPType = metaIPType;
}
@Basic
@Column(name = "ADDRESS", nullable = true)
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
@Basic @Basic
@Column(name = "MAC", nullable = true) @Column(name = "MAC", nullable = true)
public String getMac() { public String getMac() {
@ -80,4 +59,47 @@ public class InfraZone extends Infra {
public void setMac(String mac) { public void setMac(String mac) {
this.mac = mac; this.mac = mac;
} }
@Basic
@Column(name = "GATEWAY", nullable = true)
public String getGateway() {
return gateway;
}
public void setGateway(String gateway) {
this.gateway = gateway;
}
/**
* @return the addressV4
*/
@Basic
@Column(name = "ADDRESS_V4", nullable = true)
public String getAddressV4() {
return addressV4;
}
/**
* @param addressV4 the addressV4 to set
*/
public void setAddressV4(String addressV4) {
this.addressV4 = addressV4;
}
/**
* @return the addressV6
*/
@Basic
@Column(name = "ADDRESS_V6", nullable = true)
public String getAddressV6() {
return addressV6;
}
/**
* @param addressV6 the addressV6 to set
*/
public void setAddressV6(String addressV6) {
this.addressV6 = addressV6;
}
} }

View File

@ -14,13 +14,13 @@ import java.util.Date;
@Table(name = "NOAUTH_PROBE", schema = "public") @Table(name = "NOAUTH_PROBE", schema = "public")
public class NoAuthProbe { public class NoAuthProbe {
private Long id; private Long id;
private String description;
private MetaNoAuthProbeStatus metaNoAuthProbeStatus;
private String tempProbeKey;
private Date connectDate;
private String apiKey;
private Domain domain; private Domain domain;
private Probe probe; private Probe probe;
private MetaNoAuthProbeStatus metaNoAuthProbeStatus;
private String description;
private String tempProbeKey;
private String apiKey;
private Date connectDate;
private String connectAddress; private String connectAddress;
private Date createDate; private Date createDate;

View File

@ -1,38 +1,43 @@
package com.loafle.overflow.model.noauthprobe; package com.loafle.overflow.model.noauthprobe;
import java.util.List;
import com.loafle.overflow.model.infra.InfraHost;
import com.loafle.overflow.model.infra.InfraZone;
/** /**
* NoAuthProbeDescription * NoAuthProbeDescription
*/ */
public class NoAuthProbeDescription { public class NoAuthProbeDescription {
private NoAuthProbeDescriptionHost host; private InfraHost infraHost;
private NoAuthProbeDescriptionNetwork network; private List<InfraZone> infraZones;
/** /**
* @return the host * @return the infraHost
*/ */
public NoAuthProbeDescriptionHost getHost() { public InfraHost getInfraHost() {
return host; return infraHost;
} }
/** /**
* @param host the host to set * @param infraHost the infraHost to set
*/ */
public void setHost(NoAuthProbeDescriptionHost host) { public void setInfraHost(InfraHost infraHost) {
this.host = host; this.infraHost = infraHost;
} }
/** /**
* @return the network * @return the infraZones
*/ */
public NoAuthProbeDescriptionNetwork getNetwork() { public List<InfraZone> getInfraZones() {
return network; return infraZones;
} }
/** /**
* @param network the network to set * @param infraZones the infraZones to set
*/ */
public void setNetwork(NoAuthProbeDescriptionNetwork network) { public void setInfraZones(List<InfraZone> infraZones) {
this.network = network; this.infraZones = infraZones;
} }
} }

View File

@ -1,116 +0,0 @@
package com.loafle.overflow.model.noauthprobe;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* NoAuthProbeDescriptionHost
*/
public class NoAuthProbeDescriptionHost {
private String name;
private String os;
private String platform;
private String platformFamily;
private String platformVersion;
private String kernelVersion;
private String hostID;
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the os
*/
@JsonProperty("os")
public String getOS() {
return os;
}
/**
* @param os the os to set
*/
@JsonProperty("os")
public void setOS(String os) {
this.os = os;
}
/**
* @return the platform
*/
public String getPlatform() {
return platform;
}
/**
* @param platform the platform to set
*/
public void setPlatform(String platform) {
this.platform = platform;
}
/**
* @return the platformFamily
*/
public String getPlatformFamily() {
return platformFamily;
}
/**
* @param platformFamily the platformFamily to set
*/
public void setPlatformFamily(String platformFamily) {
this.platformFamily = platformFamily;
}
/**
* @return the platformVersion
*/
public String getPlatformVersion() {
return platformVersion;
}
/**
* @param platformVersion the platformVersion to set
*/
public void setPlatformVersion(String platformVersion) {
this.platformVersion = platformVersion;
}
/**
* @return the kernelVersion
*/
public String getKernelVersion() {
return kernelVersion;
}
/**
* @param kernelVersion the kernelVersion to set
*/
public void setKernelVersion(String kernelVersion) {
this.kernelVersion = kernelVersion;
}
/**
* @return the hostID
*/
public String getHostID() {
return hostID;
}
/**
* @param hostID the hostID to set
*/
public void setHostID(String hostID) {
this.hostID = hostID;
}
}

View File

@ -1,68 +0,0 @@
package com.loafle.overflow.model.noauthprobe;
/**
* NoAuthProbeDescriptionNetwork
*/
public class NoAuthProbeDescriptionNetwork {
private String name;
private String address;
private String gateway;
private String macAddress;
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the address
*/
public String getAddress() {
return address;
}
/**
* @param address the address to set
*/
public void setAddress(String address) {
this.address = address;
}
/**
* @return the gateway
*/
public String getGateway() {
return gateway;
}
/**
* @param gateway the gateway to set
*/
public void setGateway(String gateway) {
this.gateway = gateway;
}
/**
* @return the macAddress
*/
public String getMacAddress() {
return macAddress;
}
/**
* @param macAddress the macAddress to set
*/
public void setMacAddress(String macAddress) {
this.macAddress = macAddress;
}
}