use of com.sun.identity.console.base.model.AMModel in project OpenAM by OpenRock.
the class SubConfigAddViewBean method getModelInternal.
protected AMModel getModelInternal() {
AMModel model = null;
HttpServletRequest req = RequestManager.getRequestContext().getRequest();
String serviceName = (String) getPageSessionAttribute(AMServiceProfile.SERVICE_NAME);
List parentIds = (List) getPageSessionAttribute(AMServiceProfile.PG_SESSION_SUB_CONFIG_IDS);
String parentId = AMAdminUtils.getString(parentIds, "/", true);
try {
model = new SubConfigModelImpl(req, serviceName, parentId, getPageSessionAttributes());
} catch (AMConsoleException e) {
debug.error("SubConfigAddViewBean.getModelInternal", e);
}
return model;
}
use of com.sun.identity.console.base.model.AMModel in project OpenAM by OpenRock.
the class SubSchemaTypeSelectViewBean method getModelInternal.
protected AMModel getModelInternal() {
AMModel model = null;
HttpServletRequest req = RequestManager.getRequestContext().getRequest();
try {
model = new SubConfigModelImpl(req, serviceName, parentId, getPageSessionAttributes());
} catch (AMConsoleException e) {
debug.error("SubSchemaTypeSelectViewBean.getModelInternal", e);
}
return model;
}
use of com.sun.identity.console.base.model.AMModel in project OpenAM by OpenRock.
the class RealmPropertiesBase method getBreadCrumbDisplayName.
protected String getBreadCrumbDisplayName() {
String realm = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
AMModel model = (AMModel) getModel();
String path = null;
if ((realm != null) && (realm.trim().length() > 0)) {
int idx = realm.lastIndexOf('/');
if ((idx != -1) && (idx < (realm.length() - 1))) {
path = realm.substring(idx + 1);
}
}
if (path == null) {
model.getStartDSDN();
path = AMFormatUtils.DNToName(model, model.getStartDSDN());
}
// unescape the value to display '/' character
String[] arg = { SMSSchema.unescapeName(path) };
return MessageFormat.format(model.getLocalizedString("breadcrumbs.editRealm"), (Object[]) arg);
}
use of com.sun.identity.console.base.model.AMModel in project OpenAM by OpenRock.
the class EditAuthTypeViewBean method getBreadCrumbDisplayName.
protected String getBreadCrumbDisplayName() {
AMModel model = (AMModel) getModel();
String serviceName = (String) getPageSessionAttribute(AMServiceProfile.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 SMDiscoveryDescriptionViewBeanBase 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