Search in sources :

Example 21 with AMModel

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

the class G11NCharsetAliasViewBeanBase method getModelInternal.

protected AMModel getModelInternal() {
    AMModel model = null;
    HttpServletRequest req = RequestManager.getRequestContext().getRequest();
    try {
        model = new SMG11NModelImpl(req, getPageSessionAttributes());
    } catch (AMConsoleException e) {
        setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
    }
    return model;
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) SMG11NModelImpl(com.sun.identity.console.service.model.SMG11NModelImpl) AMModel(com.sun.identity.console.base.model.AMModel) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException)

Example 22 with AMModel

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

the class AbstractAuditViewBean method getBreadCrumbDisplayName.

@Override
protected String getBreadCrumbDisplayName() {
    AMModel model = getModel();
    String serviceName = (String) getPageSessionAttribute(SERVICE_NAME);
    Object[] arg = { model.getLocalizedServiceName(serviceName) };
    return MessageFormat.format(model.getLocalizedString("breadcrumbs.services.edit"), arg);
}
Also used : AMModel(com.sun.identity.console.base.model.AMModel)

Example 23 with AMModel

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

the class PMDefaultAuthSchemeConditionAddViewBean method setPropertiesValues.

protected void setPropertiesValues(Map values) {
    if ((values != null) && !values.isEmpty()) {
        for (Iterator i = values.keySet().iterator(); i.hasNext(); ) {
            String propName = (String) i.next();
            if (propName.equals(AuthSchemeCondition.AUTH_SCHEME)) {
                Set val = (Set) values.get(propName);
                if ((val != null) && !val.isEmpty()) {
                    AMModel model = getModel();
                    CCSelect sl = (CCSelect) getChild(AuthSchemeCondition.AUTH_SCHEME);
                    sl.setOptions(createOptionList(getLabelValueMap(val)));
                    propertySheetModel.setValues(propName, val.toArray(), model);
                }
            }
        }
    }
}
Also used : Set(java.util.Set) AMModel(com.sun.identity.console.base.model.AMModel) Iterator(java.util.Iterator) CCSelect(com.sun.web.ui.view.html.CCSelect)

Example 24 with AMModel

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

the class WSPPServiceSupportedContainerViewBeanBase method getModelInternal.

protected AMModel getModelInternal() {
    AMModel model = null;
    HttpServletRequest req = RequestManager.getRequestContext().getRequest();
    try {
        model = new WSPersonalProfileServiceModelImpl(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) WSPersonalProfileServiceModelImpl(com.sun.identity.console.webservices.model.WSPersonalProfileServiceModelImpl) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException)

Example 25 with AMModel

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

the class SMDiscoveryBootstrapRefOffViewBeanBase method getModelInternal.

protected AMModel getModelInternal() {
    AMModel model = null;
    HttpServletRequest req = RequestManager.getRequestContext().getRequest();
    try {
        model = new SMDiscoveryServiceModelImpl(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) SMDiscoveryServiceModelImpl(com.sun.identity.console.service.model.SMDiscoveryServiceModelImpl) AMConsoleException(com.sun.identity.console.base.model.AMConsoleException)

Aggregations

AMModel (com.sun.identity.console.base.model.AMModel)33 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)14 HttpServletRequest (javax.servlet.http.HttpServletRequest)13 Iterator (java.util.Iterator)4 SMDiscoveryServiceModelImpl (com.sun.identity.console.service.model.SMDiscoveryServiceModelImpl)3 SubConfigModelImpl (com.sun.identity.console.service.model.SubConfigModelImpl)3 List (java.util.List)3 Set (java.util.Set)3 SMG11NModelImpl (com.sun.identity.console.service.model.SMG11NModelImpl)2 WSPersonalProfileServiceModelImpl (com.sun.identity.console.webservices.model.WSPersonalProfileServiceModelImpl)2 CCBreadCrumbsModel (com.sun.web.ui.model.CCBreadCrumbsModel)2 CCBreadCrumbs (com.sun.web.ui.view.breadcrumb.CCBreadCrumbs)2 CCSelect (com.sun.web.ui.view.html.CCSelect)2 ArrayList (java.util.ArrayList)2 Locale (java.util.Locale)2 RequestContext (com.iplanet.jato.RequestContext)1 OptionList (com.iplanet.jato.view.html.OptionList)1 AMCommonNameGenerator (com.sun.identity.console.base.model.AMCommonNameGenerator)1 SCSAML2SOAPBindingModelImpl (com.sun.identity.console.service.model.SCSAML2SOAPBindingModelImpl)1 SCSOAPBindingModelImpl (com.sun.identity.console.service.model.SCSOAPBindingModelImpl)1