use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.
the class SCPropertiesBase method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
super.beginDisplay(event);
SCModel model = (SCModel) getModel();
if (model != null) {
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
propertySheetModel.clear();
setAttributeValuesToPropertyModel(ps, model);
}
}
use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.
the class SCSAML2SOAPBindingViewBean method prePopulateTable.
private void prePopulateTable() {
Map attributeValues = (Map) removePageSessionAttribute(PROPERTY_ATTRIBUTE);
if (attributeValues != null) {
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
ps.setAttributeValues(attributeValues, getModel());
}
prePopulateRequestHandlerListTable(attributeValues);
}
use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.
the class SCSOAPBindingViewBean method prePopulateTable.
private void prePopulateTable() {
Map attributeValues = (Map) removePageSessionAttribute(PROPERTY_ATTRIBUTE);
if (attributeValues != null) {
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
ps.setAttributeValues(attributeValues, getModel());
}
prePopulateRequestHandlerListTable(attributeValues);
}
use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.
the class ConfigureSalesForceAppsCompleteViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
try {
super.beginDisplay(event);
HttpServletRequest req = getRequestContext().getRequest();
String realm = req.getParameter("realm");
String idp = req.getParameter("idp");
String attrMapp = req.getParameter("attrMapp");
String spEntityId = req.getParameter(ENTITY_ID);
setPageSessionAttribute(ENTITY_ID, spEntityId);
setPageSessionAttribute("entityRealm", realm);
TaskModel model = (TaskModel) getModelInternal();
Map values = model.getConfigureSalesForceAppsURLs(realm, idp, attrMapp);
String domainId = getModel().getLocalizedString("salesforce.link");
String msg = "<ul>";
String orgMsg = getModel().getLocalizedString("configure.salesforce.apps.complete.urllist");
msg += "<li>";
msg += MessageFormat.format(orgMsg, domainId, domainId);
msg += "</li>";
msg += "</ul>";
values.put("urllist", returnEmptySetIfValueIsNull(msg));
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTIES);
ps.setAttributeValues(values, model);
} catch (AMConsoleException ex) {
Logger.getLogger(ConfigureSalesForceAppsCompleteViewBean.class.getName()).log(Level.SEVERE, null, ex);
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", ex.getMessage());
}
}
use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.
the class ServiceViewBeanBase method getValues.
protected Map getValues() throws ModelControlException, AMConsoleException {
Map values = null;
EntitiesModel model = (EntitiesModel) getModel();
if (model != null) {
String serviceName = (String) getPageSessionAttribute(SERVICE_NAME);
String universalId = (String) getPageSessionAttribute(EntityEditViewBean.UNIVERSAL_ID);
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
values = ps.getAttributeValues(model.getServiceAttributeValues(universalId, serviceName), model);
}
return values;
}
Aggregations