use of com.sun.identity.console.base.AMViewConfig in project OpenAM by OpenRock.
the class HomeViewBean method forwardTo.
public void forwardTo(RequestContext reqContext) throws NavigationException {
EntitiesModel model = (EntitiesModel) getModel();
String curRealm = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
AMViewConfig config = AMViewConfig.getInstance();
List supported = config.getSupportedEntityTypes(curRealm, model);
if (supported.isEmpty()) {
super.forwardTo(reqContext);
} else {
EntitiesViewBean vb = (EntitiesViewBean) getViewBean(EntitiesViewBean.class);
setPageSessionAttribute(EntitiesViewBean.PG_SESSION_ENTITY_TYPE, (String) supported.iterator().next());
passPgSessionMap(vb);
vb.forwardTo(reqContext);
}
}
Aggregations