use of models.datatable.HostInitiatorDataTable in project coprhd-controller by CoprHD.
the class HostInitiators method list.
public static void list(String hostId) {
HostRestRep host = HostUtils.getHost(uri(hostId));
if (host == null) {
flash.error(Messages.get(Hosts.UNKNOWN, hostId));
Hosts.list();
}
boolean initiatorsEditable = host.getDiscoverable() == null ? false : !host.getDiscoverable();
InitiatorForm initiator = new InitiatorForm();
renderArgs.put("dataTable", new HostInitiatorDataTable());
if (!initiatorsEditable) {
flash.put("warning", MessagesUtils.get("initiators.notEditable"));
}
render(host, initiator, initiatorsEditable);
}
Aggregations