use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class AbstractAuditViewBean method populateTableModel.
private void populateTableModel(List<SMSubConfig> subConfigs) {
CCActionTable tbl = (CCActionTable) getChild(TBL_SUB_CONFIG);
CCActionTableModel tblModel = (CCActionTableModel) tbl.getModel();
tblModel.clearAll();
if (CollectionUtils.isEmpty(subConfigs)) {
return;
}
SerializedField szCache = (SerializedField) getChild(SZ_CACHE);
List<SMSubConfig> cache = new ArrayList<>(subConfigs.size());
boolean firstEntry = true;
for (SMSubConfig conf : subConfigs) {
if (firstEntry) {
firstEntry = false;
} else {
tblModel.appendRow();
}
tblModel.setValue(TBL_SUB_CONFIG_DATA_NAME, conf.getName());
tblModel.setValue(TBL_SUB_CONFIG_HREF_NAME, conf.getName());
tblModel.setValue(TBL_SUB_CONFIG_DATA_TYPE, conf.getType());
cache.add(conf);
}
szCache.setValue(cache);
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class AMPropertySheetModel method createSubConfigActionTableModel.
private CCActionTableModel createSubConfigActionTableModel() {
CCActionTableModel tblModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSubConfig.xml"));
tblModel.setTitleLabel("label.items");
tblModel.setActionValue(TBL_SUB_CONFIG_BUTTON_ADD, "button.new");
tblModel.setActionValue(TBL_SUB_CONFIG_BUTTON_DELETE, "button.delete");
tblModel.setActionValue(TBL_SUB_CONFIG_COL_NAME, "subconfig.table.column.name");
tblModel.setActionValue(TBL_SUB_CONFIG_COL_NAME, "subconfig.table.column.name");
tblModel.setActionValue(TBL_SUB_CONFIG_COL_TYPE, "subconfig.table.column.type");
setModel(TBL_SUB_CONFIG, tblModel);
return tblModel;
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class SAMLv2SPServicesViewBean method createAssertionConsumerModel.
private void createAssertionConsumerModel() {
tblAssertionConsumerModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSAMLv2SPAssertionConsumerServices.xml"));
tblAssertionConsumerModel.setActionValue(TBL_COL_DEFAULT, "samlv2.sp.assertionConsumerService.table.default.name");
tblAssertionConsumerModel.setActionValue(TBL_COL_TYPE, "samlv2.sp.assertionConsumerService.table.default.type");
tblAssertionConsumerModel.setActionValue(TBL_COL_LOCATION, "samlv2.sp.assertionConsumerService.table.default.location");
tblAssertionConsumerModel.setActionValue(TBL_COL_INDEX, "samlv2.sp.assertionConsumerService.table.default.index");
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class SAMLv2SPAssertionContentViewBean method createAuthContextsModel.
private void createAuthContextsModel() {
tblAuthContextsModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSAMLv2SPAuthenticationContext.xml"));
tblAuthContextsModel.setTitleLabel("label.items");
tblAuthContextsModel.setActionValue(TBL_COL_SUPPORTED, "samlv2.sp.authenticationContext.table.name.supported.name");
tblAuthContextsModel.setActionValue(TBL_COL_CONTEXT_REFERENCE, "samlv2.sp.authenticationContext.table.name.contextReference.name");
tblAuthContextsModel.setActionValue(TBL_COL_LEVEL, "samlv2.sp.authenticationContext.table.name.level.name");
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class EntityResourceOfferingViewBean method createTableModel.
protected void createTableModel() {
tblModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblEntityResourceOffering.xml"));
tblModel.setTitleLabel("label.items");
tblModel.setActionValue(TBL_BUTTON_ADD, "table.idm.resource.offerings.button.new");
tblModel.setActionValue(TBL_BUTTON_DELETE, "table.idm.resource.offerings.button.delete");
tblModel.setActionValue(TBL_COL_SERVICE_TYPE, "table.idm.resource.offerings.column.service.name");
tblModel.setActionValue(TBL_COL_ABSTRACT, "table.idm.resource.offerings.column.abstract");
}
Aggregations