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();
}
}
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());
}
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());
}
}
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());
}
}
Aggregations