Search in sources :

Example 11 with ViewBean

use of com.iplanet.jato.view.ViewBean in project OpenAM by OpenRock.

the class AbstractAuditViewBean method handleTblSubConfigHrefNameRequest.

/**
     * Called on request from the UI to edit an event handler.
     *
     * @param event Request Invocation Event.
     */
@SuppressWarnings("unused")
public void handleTblSubConfigHrefNameRequest(RequestInvocationEvent event) {
    String auditHandler = (String) getDisplayFieldValue(TBL_SUB_CONFIG_HREF_NAME);
    setPageSessionAttribute(AUDIT_HANDLER_NAME, auditHandler);
    setPageSessionAttribute(SERVICE_NAME, serviceName);
    setPageSessionAttribute(PG_SESSION_PROFILE_VIEWBEANS, (Serializable) singletonList(viewBeanPath));
    ViewBean vb = getEditViewBean();
    unlockPageTrail();
    passPgSessionMap(vb);
    vb.forwardTo(getRequestContext());
}
Also used : ViewBean(com.iplanet.jato.view.ViewBean)

Example 12 with ViewBean

use of com.iplanet.jato.view.ViewBean in project OpenAM by OpenRock.

the class AbstractAuditViewBean method handleButton3Request.

/**
     * Called on request from the UI to return to the previous page.
     *
     * @param event Request Invocation Event.
     */
@SuppressWarnings("unused")
public void handleButton3Request(RequestInvocationEvent event) {
    backTrail();
    try {
        String name = (String) getPageSessionAttribute(SAVE_VB_NAME);
        ViewBean vb = getViewBean(Class.forName(name));
        passPgSessionMap(vb);
        vb.forwardTo(getRequestContext());
    } catch (ClassNotFoundException e) {
        debug.warning("AbstractAuditViewBean.handleButton3Request:", e);
    }
}
Also used : ViewBean(com.iplanet.jato.view.ViewBean)

Example 13 with ViewBean

use of com.iplanet.jato.view.ViewBean in project OpenAM by OpenRock.

the class CoreAttributesViewBean method handleButton3Request.

/**
     * Handles cancel request.
     *
     * @param event Request invocation event.
     */
public void handleButton3Request(RequestInvocationEvent event) throws ModelControlException {
    backTrail();
    ViewBean vb = (AuthPropertiesViewBean) getViewBean(AuthPropertiesViewBean.class);
    passPgSessionMap(vb);
    vb.forwardTo(getRequestContext());
}
Also used : ViewBean(com.iplanet.jato.view.ViewBean)

Example 14 with ViewBean

use of com.iplanet.jato.view.ViewBean in project OpenAM by OpenRock.

the class PWResetServlet method onPageSessionDeserializationException.

@Override
protected void onPageSessionDeserializationException(RequestContext requestContext, ViewBean viewBean, Exception e) throws ServletException, IOException {
    ViewBeanManager viewBeanManager = requestContext.getViewBeanManager();
    ViewBean targetView = viewBeanManager.getViewBean(PWResetInvalidURLViewBean.class);
    targetView.forwardTo(requestContext);
    throw new CompleteRequestException();
}
Also used : CompleteRequestException(com.iplanet.jato.CompleteRequestException) ViewBeanManager(com.iplanet.jato.ViewBeanManager) ViewBean(com.iplanet.jato.view.ViewBean)

Example 15 with ViewBean

use of com.iplanet.jato.view.ViewBean in project OpenAM by OpenRock.

the class PWResetServlet method onUncaughtException.

/**
     * Forwards to uncaught exception view bean, to respond to uncaught
     * application error messages.
     *
     * @param requestContext  request context
     * @param e Exception that was not handled by the application.
     * @throws ServletException
     * @throws IOException
     */
protected void onUncaughtException(RequestContext requestContext, Exception e) throws ServletException, IOException {
    PWResetModelImpl.debug.error("PWResetServlet.onUncaughtException", e);
    ViewBeanManager viewBeanManager = requestContext.getViewBeanManager();
    ViewBean targetView = viewBeanManager.getViewBean(PWResetUncaughtExceptionViewBean.class);
    targetView.forwardTo(requestContext);
    throw new CompleteRequestException();
}
Also used : CompleteRequestException(com.iplanet.jato.CompleteRequestException) ViewBeanManager(com.iplanet.jato.ViewBeanManager) ViewBean(com.iplanet.jato.view.ViewBean)

Aggregations

ViewBean (com.iplanet.jato.view.ViewBean)21 CompleteRequestException (com.iplanet.jato.CompleteRequestException)7 ViewBeanManager (com.iplanet.jato.ViewBeanManager)6 AuthViewBeanBase (com.sun.identity.authentication.UI.AuthViewBeanBase)3 NonSyncStringBuffer (com.iplanet.jato.util.NonSyncStringBuffer)2 ContainerView (com.iplanet.jato.view.ContainerView)2 View (com.iplanet.jato.view.View)2 AMPropertySheetModel (com.sun.identity.console.base.model.AMPropertySheetModel)2 Iterator (java.util.Iterator)2 AMPostViewBean (com.sun.identity.console.base.AMPostViewBean)1 AMPrimaryMastHeadViewBean (com.sun.identity.console.base.AMPrimaryMastHeadViewBean)1 ServicesViewBean (com.sun.identity.console.realm.ServicesViewBean)1 CCMapList (com.sun.identity.console.ui.view.CCMapList)1 CCOrderedList (com.sun.identity.console.ui.view.CCOrderedList)1 CCUnOrderedList (com.sun.identity.console.ui.view.CCUnOrderedList)1 CCAddRemove (com.sun.web.ui.view.addremove.CCAddRemove)1 CCEditableList (com.sun.web.ui.view.editablelist.CCEditableList)1 CCRadioButton (com.sun.web.ui.view.html.CCRadioButton)1 CCActionTable (com.sun.web.ui.view.table.CCActionTable)1 HashMap (java.util.HashMap)1