use of play.libs.F.Promise in project coprhd-controller by CoprHD.
the class AdminDashboard method version.
@Restrictions({ @Restrict("SYSTEM_MONITOR"), @Restrict("SYSTEM_ADMIN"), @Restrict("RESTRICTED_SYSTEM_ADMIN") })
public static void version() {
License license = AdminDashboardUtils.getLicense();
Map<String, Promise<?>> promises = Maps.newHashMap();
promises.put("clusterInfo", AdminDashboardUtils.clusterInfo());
trySetRenderArgs(promises);
// Add lastUpdated render args after promises are redeemed
Date clusterInfoLastUpdated = AdminDashboardUtils.getClusterInfoLastUpdated();
render(license, clusterInfoLastUpdated);
}
Aggregations