Search in sources :

Example 1 with SubConfigModelImpl

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

the class SubConfigAddViewBean method getModelInternal.

protected AMModel getModelInternal() {
    AMModel model = null;
    HttpServletRequest req = RequestManager.getRequestContext().getRequest();
    String serviceName = (String) getPageSessionAttribute(AMServiceProfile.SERVICE_NAME);
    List parentIds = (List) getPageSessionAttribute(AMServiceProfile.PG_SESSION_SUB_CONFIG_IDS);
    String parentId = AMAdminUtils.getString(parentIds, "/", true);
    try {
        model = new SubConfigModelImpl(req, serviceName, parentId, getPageSessionAttributes());
    } catch (AMConsoleException e) {
        debug.error("SubConfigAddViewBean.getModelInternal", e);
    }
    return model;
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) AMModel(com.sun.identity.console.base.model.AMModel) SubConfigModelImpl(com.sun.identity.console.service.model.SubConfigModelImpl) OptionList(com.iplanet.jato.view.html.OptionList) List(java.util.List) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException)

Example 2 with SubConfigModelImpl

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

the class SubSchemaTypeSelectViewBean method getModelInternal.

protected AMModel getModelInternal() {
    AMModel model = null;
    HttpServletRequest req = RequestManager.getRequestContext().getRequest();
    try {
        model = new SubConfigModelImpl(req, serviceName, parentId, getPageSessionAttributes());
    } catch (AMConsoleException e) {
        debug.error("SubSchemaTypeSelectViewBean.getModelInternal", e);
    }
    return model;
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) AMModel(com.sun.identity.console.base.model.AMModel) SubConfigModelImpl(com.sun.identity.console.service.model.SubConfigModelImpl) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException)

Example 3 with SubConfigModelImpl

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

the class SubConfigEditViewBean method getModelInternal.

protected AMModel getModelInternal() {
    AMModel model = null;
    HttpServletRequest req = RequestManager.getRequestContext().getRequest();
    String serviceName = (String) getPageSessionAttribute(AMServiceProfile.SERVICE_NAME);
    String parentId = getParentId();
    try {
        model = new SubConfigModelImpl(req, serviceName, parentId, getPageSessionAttributes());
    } catch (AMConsoleException e) {
    //
    }
    return model;
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) AMModel(com.sun.identity.console.base.model.AMModel) SubConfigModelImpl(com.sun.identity.console.service.model.SubConfigModelImpl) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException)

Aggregations

AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)3 AMModel (com.sun.identity.console.base.model.AMModel)3 SubConfigModelImpl (com.sun.identity.console.service.model.SubConfigModelImpl)3 HttpServletRequest (javax.servlet.http.HttpServletRequest)3 OptionList (com.iplanet.jato.view.html.OptionList)1 List (java.util.List)1