Search in sources :

Example 6 with SCConfigModel

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);
        }
    }
}
Also used : SCConfigModel(com.sun.identity.console.service.model.SCConfigModel)

Aggregations

SCConfigModel (com.sun.identity.console.service.model.SCConfigModel)6 CCActionTableModel (com.sun.web.ui.model.CCActionTableModel)4 List (java.util.List)4 AMPostViewBean (com.sun.identity.console.base.AMPostViewBean)1 ServicesNoAttributeViewBean (com.sun.identity.console.realm.ServicesNoAttributeViewBean)1