Search in sources :

Example 1 with STSHomeViewBeanModelImpl

use of com.sun.identity.console.sts.model.STSHomeViewBeanModelImpl in project OpenAM by OpenRock.

the class STSHomeViewBean method getModelInternal.

protected AMModel getModelInternal() {
    RequestContext rc = RequestManager.getRequestContext();
    HttpServletRequest req = rc.getRequest();
    try {
        return new STSHomeViewBeanModelImpl(req, getPageSessionAttributes());
    } catch (AMConsoleException e) {
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
        throw new IllegalStateException("Exception getting model in STSHomeViewBean: " + e.getMessage(), e);
    }
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) STSHomeViewBeanModelImpl(com.sun.identity.console.sts.model.STSHomeViewBeanModelImpl) RequestContext(com.iplanet.jato.RequestContext) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException)

Aggregations

RequestContext (com.iplanet.jato.RequestContext)1 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)1 STSHomeViewBeanModelImpl (com.sun.identity.console.sts.model.STSHomeViewBeanModelImpl)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1