use of com.sun.identity.console.service.model.SCConfigModel in project OpenAM by OpenRock.
the class SCConfigViewBean method populateTableModel.
protected void populateTableModel(CCActionTableModel tblModel, List serviceNames, String section) {
tblModel.setTitleLabel("label.items");
tblModel.setActionValue(TBL_COL_NAME, "service.name");
SCConfigModel model = (SCConfigModel) getModel();
if ((serviceNames != null) && !serviceNames.isEmpty()) {
int size = serviceNames.size();
for (int i = 0; i < size; i++) {
if (i > 0) {
tblModel.appendRow();
}
String name = (String) serviceNames.get(i);
tblModel.setValue(TBL_DATA_NAME_PREFIX + section, model.getLocalizedServiceName(name));
tblModel.setValue(TBL_HREF_PREFIX + section, name);
}
}
}
Aggregations