Search in sources :

Example 61 with AMConsoleException

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;
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) AMModel(com.sun.identity.console.base.model.AMModel) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException) SCSAML2SOAPBindingModelImpl(com.sun.identity.console.service.model.SCSAML2SOAPBindingModelImpl)

Example 62 with AMConsoleException

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();
        }
    }
}
Also used : HashMap(java.util.HashMap) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException) HashMap(java.util.HashMap) Map(java.util.Map)

Example 63 with AMConsoleException

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());
    }
}
Also used : AMConsoleException(com.sun.identity.console.base.model.AMConsoleException) HashMap(java.util.HashMap) Map(java.util.Map)

Example 64 with AMConsoleException

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;
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) AMModel(com.sun.identity.console.base.model.AMModel) SCSOAPBindingModelImpl(com.sun.identity.console.service.model.SCSOAPBindingModelImpl) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException)

Example 65 with AMConsoleException

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();
        }
    }
}
Also used : HashMap(java.util.HashMap) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException) HashMap(java.util.HashMap) Map(java.util.Map)

Aggregations

AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)701 Map (java.util.Map)255 Set (java.util.Set)206 HashMap (java.util.HashMap)193 HashSet (java.util.HashSet)148 SSOException (com.iplanet.sso.SSOException)126 Iterator (java.util.Iterator)122 List (java.util.List)97 SMSException (com.sun.identity.sm.SMSException)83 ArrayList (java.util.ArrayList)78 AMPropertySheet (com.sun.identity.console.base.AMPropertySheet)76 IdRepoException (com.sun.identity.idm.IdRepoException)58 SAML2MetaException (com.sun.identity.saml2.meta.SAML2MetaException)47 SAML2MetaManager (com.sun.identity.saml2.meta.SAML2MetaManager)46 AMIdentity (com.sun.identity.idm.AMIdentity)44 SAMLv2Model (com.sun.identity.console.federation.model.SAMLv2Model)41 NameNotFoundException (com.sun.identity.policy.NameNotFoundException)41 CCActionTable (com.sun.web.ui.view.table.CCActionTable)40 TreeSet (java.util.TreeSet)39 CachedPolicy (com.sun.identity.console.policy.model.CachedPolicy)38