use of com.emc.storageos.model.network.NetworkSystemRestRep in project coprhd-controller by CoprHD.
the class SanSwitches method itemDetails.
public static void itemDetails(String id) {
NetworkSystemRestRep networkSystem = NetworkSystemUtils.getNetworkSystem(id);
render(networkSystem);
}
use of com.emc.storageos.model.network.NetworkSystemRestRep in project coprhd-controller by CoprHD.
the class SanSwitches method edit.
@FlashException("list")
public static void edit(String id) {
NetworkSystemRestRep networkSystem = NetworkSystemUtils.getNetworkSystem(id);
if (networkSystem == null) {
flash.error(MessagesUtils.get(UNKNOWN, id));
list();
}
edit(new SanSwitchForm(networkSystem));
}
use of com.emc.storageos.model.network.NetworkSystemRestRep in project coprhd-controller by CoprHD.
the class NetworkMapper method map.
public static NetworkSystemRestRep map(NetworkSystem from) {
if (from == null) {
return null;
}
NetworkSystemRestRep to = new NetworkSystemRestRep();
mapDiscoveredSystemObjectFields(from, to);
to.setSerialNumber(from.getSerialNumber());
to.setIpAddress(from.getIpAddress());
to.setSecondaryIP(from.getSecondaryIP());
to.setPortNumber(from.getPortNumber());
to.setUsername(from.getUsername());
// CD - This was present in the old model but was XmlTransient
// to.setPassword(from.setPassword());
to.setSmisProviderIP(from.getSmisProviderIP());
to.setSmisPortNumber(from.getSmisPortNumber());
to.setSmisUserName(from.getSmisUserName());
// to.setSmisPassword();
to.setSmisUseSSL(from.getSmisUseSSL());
to.setVersion(from.getVersion());
to.setUptime(from.getUptime());
return to;
}
Aggregations