Search in sources :

Example 1 with HostInitiatorDataTable

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);
}
Also used : HostInitiatorDataTable(models.datatable.HostInitiatorDataTable) HostRestRep(com.emc.storageos.model.host.HostRestRep)

Aggregations

HostRestRep (com.emc.storageos.model.host.HostRestRep)1 HostInitiatorDataTable (models.datatable.HostInitiatorDataTable)1