Search in sources :

Example 21 with AMViewBeanBase

use of com.sun.identity.console.base.AMViewBeanBase in project OpenAM by OpenRock.

the class RealmPropertiesBase method nodeClicked.

/**
     * Handles tab selected event. 
     *
     * @param event Request Invocation Event.
     * @param nodeID Selected Node ID.
     */
public void nodeClicked(RequestInvocationEvent event, int nodeID) {
    AMViewConfig amconfig = AMViewConfig.getInstance();
    try {
        AMViewBeanBase vb = getTabNodeAssociatedViewBean("realms", nodeID);
        String tmp = (String) getPageSessionAttribute(AMAdminConstants.PREVIOUS_REALM);
        vb.setPageSessionAttribute(AMAdminConstants.PREVIOUS_REALM, tmp);
        tmp = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
        vb.setPageSessionAttribute(AMAdminConstants.CURRENT_REALM, tmp);
        tmp = (String) getPageSessionAttribute(AMAdminConstants.PREVIOUS_TAB_ID);
        vb.setPageSessionAttribute(AMAdminConstants.PREVIOUS_TAB_ID, tmp);
        unlockPageTrailForSwapping();
        passPgSessionMap(vb);
        vb.forwardTo(getRequestContext());
    } catch (AMConsoleException e) {
        debug.error("RealmPropertiesBase.nodeClicked", e);
        forwardTo();
    }
}
Also used : AMViewConfig(com.sun.identity.console.base.AMViewConfig) AMViewBeanBase(com.sun.identity.console.base.AMViewBeanBase) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException)

Example 22 with AMViewBeanBase

use of com.sun.identity.console.base.AMViewBeanBase in project OpenAM by OpenRock.

the class RealmDiscoveryDescriptionEditViewBean method handleButton3Request.

/**
     * Handles reset request.
     *
     * @param event Request Invocation Event.
     */
public void handleButton3Request(RequestInvocationEvent event) {
    AMViewBeanBase vb = (AMViewBeanBase) getReturnToViewBean();
    passPgSessionMap(vb);
    vb.forwardTo(getRequestContext());
}
Also used : AMViewBeanBase(com.sun.identity.console.base.AMViewBeanBase)

Example 23 with AMViewBeanBase

use of com.sun.identity.console.base.AMViewBeanBase in project OpenAM by OpenRock.

the class AgentConfigInheritViewBean method handleButton3Request.

/**
     * Handles return to server configuration page request.
     *
     * @param event Request invocation event
     */
public void handleButton3Request(RequestInvocationEvent event) throws ModelControlException {
    try {
        AMViewBeanBase vb = (AMViewBeanBase) getViewBean(Class.forName((String) getPageSessionAttribute(PG_ATTR_CONFIG_PAGE)));
        removePageSessionAttribute(PG_ATTR_CONFIG_PAGE);
        removePageSessionAttribute(PG_ATTR_PROPERTY_NAMES);
        passPgSessionMap(vb);
        vb.forwardTo(getRequestContext());
    } catch (ClassNotFoundException e) {
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
    }
}
Also used : AMViewBeanBase(com.sun.identity.console.base.AMViewBeanBase)

Example 24 with AMViewBeanBase

use of com.sun.identity.console.base.AMViewBeanBase in project OpenAM by OpenRock.

the class AgentDumpViewBean method handleButton1Request.

public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
    try {
        AMViewBeanBase vb = (AMViewBeanBase) getViewBean(Class.forName((String) getPageSessionAttribute(PG_ATTR_CONFIG_PAGE)));
        removePageSessionAttribute(PG_ATTR_CONFIG_PAGE);
        passPgSessionMap(vb);
        vb.forwardTo(getRequestContext());
    } catch (ClassNotFoundException e) {
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
    }
}
Also used : AMViewBeanBase(com.sun.identity.console.base.AMViewBeanBase)

Aggregations

AMViewBeanBase (com.sun.identity.console.base.AMViewBeanBase)24 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)10 AMViewConfig (com.sun.identity.console.base.AMViewConfig)6 AMIdentity (com.sun.identity.idm.AMIdentity)3 SSOToken (com.iplanet.sso.SSOToken)2 AgentsModel (com.sun.identity.console.agentconfig.model.AgentsModel)2 IdRepoException (com.sun.identity.idm.IdRepoException)2 List (java.util.List)2 StringTokenizer (java.util.StringTokenizer)2 SSOException (com.iplanet.sso.SSOException)1 AMPostViewBean (com.sun.identity.console.base.AMPostViewBean)1 EntitiesModel (com.sun.identity.console.idm.model.EntitiesModel)1 RMRealmModel (com.sun.identity.console.realm.model.RMRealmModel)1 ArrayList (java.util.ArrayList)1