Search in sources :

Example 71 with CCActionTableModel

use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.

the class SMDiscoveryBootstrapRefOffViewBeanBase method createSecurityMechIDTable.

protected void createSecurityMechIDTable() {
    CCActionTableModel tblModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblDiscoverySecurityMechID.xml"));
    tblModel.setTitleLabel("label.items");
    tblModel.setActionValue(TBL_SECURITY_MECH_ID_COL_ID, "discovery.service.bootstrapResOff.securityMechID.ID");
    tblModel.setActionValue(TBL_SECURITY_MECH_ID_COL_ACTION, "discovery.service.bootstrapResOff.securityMechID.Action");
    tblModel.setActionValue(TBL_SECURITY_MECH_ID_ADD_BTN, "discovery.service.bootstrapResOff.securityMechID.add.button");
    tblModel.setActionValue(TBL_SECURITY_MECH_ID_DELETE_BTN, "discovery.service.bootstrapResOff.securityMechID.delete.button");
    propertySheetModel.setModel(ATTRIBUTE_NAME_SECURITY_MECH_ID, tblModel);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 72 with CCActionTableModel

use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.

the class SMG11NViewBean method createCharsetAliasTableModel.

private void createCharsetAliasTableModel() {
    CCActionTableModel tblModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblG11NCharsetAlias.xml"));
    tblModel.setTitleLabel("label.items");
    tblModel.setActionValue(TBL_CHARSET_ALIAS_COL_MIMENAME, "globalization.service.table.CharsetAlias.mimeName");
    tblModel.setActionValue(TBL_CHARSET_ALIAS_COL_JAVANAME, "globalization.service.table.CharsetAlias.javaName");
    tblModel.setActionValue(TBL_CHARSET_ALIAS_ADD_BTN, "globalization.service.table.CharsetAlias.add.button");
    tblModel.setActionValue(TBL_CHARSET_ALIAS_DELETE_BTN, "globalization.service.table.CharsetAlias.delete.button");
    propertySheetModel.setModel(SMG11NModelImpl.ATTRIBUTE_NAME_CHARSET_ALIAS, tblModel);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 73 with CCActionTableModel

use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.

the class SMG11NViewBean method populateCharsetAliasTable.

private void populateCharsetAliasTable(Set charsets) {
    tablePopulated = true;
    CCActionTableModel tblModel = (CCActionTableModel) propertySheetModel.getModel(SMG11NModelImpl.ATTRIBUTE_NAME_CHARSET_ALIAS);
    tblModel.clearAll();
    boolean firstEntry = true;
    int counter = 0;
    for (Iterator iter = charsets.iterator(); iter.hasNext(); ) {
        String c = (String) iter.next();
        CharsetAliasEntry entry = new CharsetAliasEntry(c);
        if (entry.isValid()) {
            if (!firstEntry) {
                tblModel.appendRow();
            } else {
                firstEntry = false;
            }
            tblModel.setValue(TBL_CHARSET_ALIAS_DATA_MIMENAME, entry.strMimeName);
            tblModel.setValue(TBL_CHARSET_ALIAS_DATA_JAVANAME, entry.strJavaName);
            tblModel.setValue(TBL_CHARSET_ALIAS_HREF_ACTION, Integer.toString(counter));
        }
        counter++;
    }
    setPageSessionAttribute(SMG11NModelImpl.ATTRIBUTE_NAME_CHARSET_ALIAS, (OrderedSet) charsets);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) CharsetAliasEntry(com.sun.identity.console.service.model.CharsetAliasEntry) Iterator(java.util.Iterator)

Example 74 with CCActionTableModel

use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.

the class SMDiscoveryServiceViewBean method createBootstrapResOffTableModel.

private void createBootstrapResOffTableModel() {
    CCActionTableModel tblModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblDiscoveryBootstrapResOff.xml"));
    tblModel.setTitleLabel("label.items");
    tblModel.setActionValue(TBL_BOOTSTRAP_RES_OFF_COL_SERVICE_TYPE, "discovery.service.table.bootstrapResOff.serviceType");
    tblModel.setActionValue(TBL_BOOTSTRAP_RES_OFF_COL_ABSTRACT, "discovery.service.table.bootstrapResOff.abstract");
    tblModel.setActionValue(TBL_BOOTSTRAP_RES_OFF_ADD_BTN, "discovery.service.table.bootstrapResOff.add.button");
    tblModel.setActionValue(TBL_BOOTSTRAP_RES_OFF_DELETE_BTN, "discovery.service.table.bootstrapResOff.delete.button");
    propertySheetModel.setModel(AMAdminConstants.DISCOVERY_SERVICE_NAME_BOOTSTRAP_RES_OFF, tblModel);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 75 with CCActionTableModel

use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.

the class AuthPropertiesViewBean method createConfigurationTable.

/*
     * Responsible for creating the model used for the authentication instances
     * configurations.
     */
private void createConfigurationTable() {
    CCActionTableModel tblModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblAuthConfiguration.xml"));
    tblModel.setTitleLabel("label.items");
    tblModel.setActionValue(CONFIG_NAME_COLUMN_LABEL, "authentication.configuration.table.name.column");
    tblModel.setActionValue(CONFIG_ACTION_COLUMN_LABEL, "authentication.configuration.table.action.column");
    tblModel.setActionValue(CREATE_CONFIG_BUTTON, "authentication.configuration.table.create.button");
    tblModel.setActionValue(DELETE_CONFIG_BUTTON, "authentication.configuration.table.delete.button");
    propertySheetModel.setModel(AUTH_CONFIG_TABLE, tblModel);
}
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