Search in sources :

Example 51 with CCActionTableModel

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);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) SerializedField(com.sun.identity.console.components.view.html.SerializedField) SMSubConfig(com.sun.identity.console.base.model.SMSubConfig) ArrayList(java.util.ArrayList) CCActionTable(com.sun.web.ui.view.table.CCActionTable)

Example 52 with CCActionTableModel

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;
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 53 with CCActionTableModel

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");
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 54 with CCActionTableModel

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");
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 55 with CCActionTableModel

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");
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Aggregations

CCActionTableModel (com.sun.web.ui.model.CCActionTableModel)103 CCActionTable (com.sun.web.ui.view.table.CCActionTable)22 OrderedSet (com.sun.identity.shared.datastruct.OrderedSet)18 Iterator (java.util.Iterator)18 List (java.util.List)14 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)13 ArrayList (java.util.ArrayList)12 HashSet (java.util.HashSet)9 Set (java.util.Set)9 SerializedField (com.sun.identity.console.components.view.html.SerializedField)8 OptionList (com.iplanet.jato.view.html.OptionList)6 SMSubConfig (com.sun.identity.console.base.model.SMSubConfig)6 HashMap (java.util.HashMap)5 Map (java.util.Map)5 SCConfigModel (com.sun.identity.console.service.model.SCConfigModel)4 AuthPropertiesModel (com.sun.identity.console.authentication.model.AuthPropertiesModel)3 EntityModel (com.sun.identity.console.federation.model.EntityModel)2 FSAuthDomainsModel (com.sun.identity.console.federation.model.FSAuthDomainsModel)2 FSSAMLServiceModel (com.sun.identity.console.federation.model.FSSAMLServiceModel)2 SMDiscoEntryData (com.sun.identity.console.service.model.SMDiscoEntryData)2