use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.
the class AMServiceProfileViewBeanBase method createPropertyModel.
protected void createPropertyModel() {
AMServiceProfileModel model = (AMServiceProfileModel) getModel();
if (model != null) {
try {
propertySheetModel = new AMPropertySheetModel(getPropertySheetXML(model));
propertySheetModel.clear();
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
}
}
use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.
the class AMServiceProfileViewBeanBase method getValues.
protected Map getValues() throws ModelControlException, AMConsoleException {
Map values = null;
AMServiceProfileModel model = (AMServiceProfileModel) getModel();
if (model != null) {
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
values = ps.getAttributeValues(model.getAttributeValues(), model);
}
return values;
}
use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.
the class SMG11NViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
super.beginDisplay(event);
resetButtonState(TBL_SUPPORTED_CHARSETS_DELETE_BTN);
resetButtonState(TBL_CHARSET_ALIAS_DELETE_BTN);
if (!tablePopulated) {
if (!isSubmitCycle()) {
AMServiceProfileModel model = (AMServiceProfileModel) getModel();
if (model != null) {
Set supportedCharsets = new OrderedSet();
supportedCharsets.addAll(model.getAttributeValues(SMG11NModelImpl.ATTRIBUTE_NAME_SUPPORTED_CHARSETS));
populateSupportedCharsetsTable(supportedCharsets);
Set charsetAlias = new OrderedSet();
charsetAlias.addAll(model.getAttributeValues(SMG11NModelImpl.ATTRIBUTE_NAME_CHARSET_ALIAS));
populateCharsetAliasTable(charsetAlias);
}
}
}
if (!isInlineAlertMessageSet()) {
String flag = (String) getPageSessionAttribute(PAGE_MODIFIED);
if ((flag != null) && flag.equals("1")) {
setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "message.profile.modified");
}
}
}
use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.
the class SMG11NViewBean method getBreadCrumbDisplayName.
protected String getBreadCrumbDisplayName() {
AMServiceProfileModel model = (AMServiceProfileModel) getModel();
String[] arg = { model.getLocalizedServiceName(AMAdminConstants.G11N_SERVICE_NAME) };
return MessageFormat.format(model.getLocalizedString("breadcrumbs.services.edit"), (Object[]) arg);
}
use of com.sun.identity.console.base.model.AMServiceProfileModel in project OpenAM by OpenRock.
the class SCPolicyViewBean method getAllValues.
protected Map getAllValues() throws ModelControlException, AMConsoleException {
Map values = null;
AMServiceProfileModel model = (AMServiceProfileModel) getModel();
if (model != null) {
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
values = ps.getAttributeValues(model.getAttributeValues(), false, false, model);
}
return values;
}
Aggregations