use of models.datatable.SimpleHostDataTable in project coprhd-controller by CoprHD.
the class HostClusters method editHosts.
@FlashException("list")
public static void editHosts(String id) {
ClusterRestRep cluster = ClusterUtils.getCluster(uri(id));
if (cluster != null) {
SimpleHostDataTable dataTable = new SimpleHostDataTable();
render(dataTable, cluster);
} else {
flash.error(MessagesUtils.get(UNKNOWN, id));
list();
}
}
use of models.datatable.SimpleHostDataTable in project coprhd-controller by CoprHD.
the class BlockExportGroups method exportGroup.
public static void exportGroup(String exportGroupId) {
ViPRCoreClient client = BourneUtil.getViprClient();
ExportGroupRestRep exportGroup = null;
try {
exportGroup = client.blockExports().get(uri(exportGroupId));
} catch (ViPRHttpException e) {
if (e.getHttpCode() == 404) {
flash.error(MessagesUtils.get(UNKNOWN, exportGroupId));
exportGroups(null);
}
throw e;
}
VirtualArrayRestRep virtualArray = null;
if (exportGroup != null) {
virtualArray = client.varrays().get(exportGroup.getVirtualArray());
} else {
notFound("Export Group " + exportGroupId);
}
renderArgs.put("volumeDataTable", new BlockExportGroupVolumesDataTable());
renderArgs.put("snapshotDataTable", new BlockExportGroupSnapshotsDataTable());
SimpleHostDataTable hostsDataTable = new SimpleHostDataTable();
NetworkEndpointDataTable initiatorsDataTable = NetworkEndpointDataTable.createDataTable("FC");
initiatorsDataTable.alterColumn("portGroup").hidden().setSearchable(false);
initiatorsDataTable.alterColumn("storageSystem").hidden().setSearchable(false);
initiatorsDataTable.alterColumn("discovered").hidden().setSearchable(false);
HostClusterDataTable clustersDataTable = new HostClusterDataTable();
render(hostsDataTable, initiatorsDataTable, clustersDataTable, exportGroup, virtualArray);
}
Aggregations