use of com.sun.identity.console.idm.EndUserViewBean in project OpenAM by OpenRock.
the class AMPrimaryMastHeadViewBean method handleRealmNameInTabSwitch.
protected boolean handleRealmNameInTabSwitch(RequestContext rc) {
boolean forwarded = false;
// Need to default realm name if it is not even set at this point.
String realmName = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_PROFILE);
if (realmName == null) {
String startDN = AMModelBase.getStartDN(rc.getRequest());
setPageSessionAttribute(AMAdminConstants.CURRENT_PROFILE, startDN);
}
createTabModel();
DelegationConfig dConfig = DelegationConfig.getInstance();
//check to see if class is in the noneeddealwith bean
if (!dConfig.isUncontrolledViewBean(getClass().getName())) {
if ((tabModel == null) || (tabModel.getNodeCount() == 0)) {
EndUserViewBean vb = (EndUserViewBean) getViewBean(EndUserViewBean.class);
vb.forwardTo(rc);
forwarded = true;
}
}
return forwarded;
}
Aggregations