use of com.sun.identity.console.sts.model.SoapSTSInstanceModel in project OpenAM by OpenRock.
the class STSEditViewBeanBase method getModelInternal.
protected AMModel getModelInternal() {
RequestContext rc = RequestManager.getRequestContext();
HttpServletRequest req = rc.getRequest();
try {
if (stsType.isRestSTS()) {
return new RestSTSInstanceModel(req, getPageSessionAttributes());
} else {
return new SoapSTSInstanceModel(req, getPageSessionAttributes());
}
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
throw new IllegalStateException("Exception getting model in STSEditViewBeanBase: " + e.getMessage(), e);
}
}
use of com.sun.identity.console.sts.model.SoapSTSInstanceModel in project OpenAM by OpenRock.
the class STSAddViewBeanBase method getModelInternal.
protected AMModel getModelInternal() {
RequestContext rc = RequestManager.getRequestContext();
HttpServletRequest req = rc.getRequest();
try {
if (stsType.isRestSTS()) {
return new RestSTSInstanceModel(req, getPageSessionAttributes());
} else {
return new SoapSTSInstanceModel(req, getPageSessionAttributes());
}
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
throw new IllegalStateException("Exception getting model in STSAddViewBeanBase: " + e.getMessage(), e);
}
}
Aggregations