use of com.evolveum.midpoint.xml.ns._public.common.common_3.DashboardType in project midpoint by Evolveum.
the class PageDashboardConfigurable method initDashboardObject.
private IModel<DashboardType> initDashboardObject() {
return new LoadableModel<DashboardType>(false) {
@Override
public DashboardType load() {
StringValue dashboardOid = getPageParameters().get(OnePageParameterEncoder.PARAMETER);
if (dashboardOid == null || StringUtils.isEmpty(dashboardOid.toString())) {
getSession().error(getString("PageDashboardConfigurable.message.oidNotDefined"));
throw new RestartResponseException(PageDashboardInfo.class);
}
Task task = createSimpleTask("Search dashboard");
return WebModelServiceUtils.loadObject(DashboardType.class, dashboardOid.toString(), PageDashboardConfigurable.this, task, task.getResult()).getRealValue();
}
};
}
Aggregations