use of com.sun.identity.console.base.model.AMConsoleException in project OpenAM by OpenRock.
the class SCSAML2SOAPBindingRequestHandlerListViewBeanBase method getModelInternal.
protected AMModel getModelInternal() {
AMModel model = null;
HttpServletRequest req = RequestManager.getRequestContext().getRequest();
try {
model = new SCSAML2SOAPBindingModelImpl(req, getPageSessionAttributes());
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
return model;
}
use of com.sun.identity.console.base.model.AMConsoleException in project OpenAM by OpenRock.
the class SCSAML2SOAPBindingRequestHandlerListViewBeanBase method handleButton1Request.
public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
Map values = new HashMap(4);
String errorMsg = getValues(values);
if (errorMsg != null) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", errorMsg);
forwardTo();
} else {
try {
handleButton1Request(values);
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
forwardTo();
}
}
}
use of com.sun.identity.console.base.model.AMConsoleException in project OpenAM by OpenRock.
the class SCSAML2SOAPBindingViewBean method handleTblRequestHandlerListHrefDupActionRequest.
/**
* Handles duplicate request handler request.
*
* @param event Request Invocation Event.
*/
public void handleTblRequestHandlerListHrefDupActionRequest(RequestInvocationEvent event) throws ModelControlException {
try {
Map values = getValues();
onBeforeSaveProfile(values);
setPageSessionAttribute(PROPERTY_ATTRIBUTE, (HashMap) values);
SCSAML2SOAPBindingRequestHandlerListDupViewBean vb = (SCSAML2SOAPBindingRequestHandlerListDupViewBean) getViewBean(SCSAML2SOAPBindingRequestHandlerListDupViewBean.class);
unlockPageTrail();
passPgSessionMap(vb);
int idx = Integer.parseInt((String) getDisplayFieldValue(TBL_REQUEST_HANDLER_LIST_HREF_DUP_ACTION));
vb.setDupIndex(idx);
vb.forwardTo(getRequestContext());
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
}
use of com.sun.identity.console.base.model.AMConsoleException in project OpenAM by OpenRock.
the class SCSOAPBindingRequestHandlerListViewBeanBase method getModelInternal.
protected AMModel getModelInternal() {
AMModel model = null;
HttpServletRequest req = RequestManager.getRequestContext().getRequest();
try {
model = new SCSOAPBindingModelImpl(req, getPageSessionAttributes());
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
return model;
}
use of com.sun.identity.console.base.model.AMConsoleException in project OpenAM by OpenRock.
the class SCSOAPBindingRequestHandlerListViewBeanBase method handleButton1Request.
public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
Map values = new HashMap(4);
String errorMsg = getValues(values);
if (errorMsg != null) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", errorMsg);
forwardTo();
} else {
try {
handleButton1Request(values);
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
forwardTo();
}
}
}
Aggregations