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