Search in sources :

Example 1 with SMG11NModelImpl

use of com.sun.identity.console.service.model.SMG11NModelImpl in project OpenAM by OpenRock.

the class G11NSupportedCharsetsViewBeanBase method getModelInternal.

protected AMModel getModelInternal() {
    AMModel model = null;
    HttpServletRequest req = RequestManager.getRequestContext().getRequest();
    try {
        model = new SMG11NModelImpl(req, getPageSessionAttributes());
    } catch (AMConsoleException e) {
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
    }
    return model;
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) SMG11NModelImpl(com.sun.identity.console.service.model.SMG11NModelImpl) AMModel(com.sun.identity.console.base.model.AMModel) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException)

Example 2 with SMG11NModelImpl

use of com.sun.identity.console.service.model.SMG11NModelImpl in project OpenAM by OpenRock.

the class G11NCharsetAliasViewBeanBase method getModelInternal.

protected AMModel getModelInternal() {
    AMModel model = null;
    HttpServletRequest req = RequestManager.getRequestContext().getRequest();
    try {
        model = new SMG11NModelImpl(req, getPageSessionAttributes());
    } catch (AMConsoleException e) {
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
    }
    return model;
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) SMG11NModelImpl(com.sun.identity.console.service.model.SMG11NModelImpl) AMModel(com.sun.identity.console.base.model.AMModel) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException)

Aggregations

AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)2 AMModel (com.sun.identity.console.base.model.AMModel)2 SMG11NModelImpl (com.sun.identity.console.service.model.SMG11NModelImpl)2 HttpServletRequest (javax.servlet.http.HttpServletRequest)2