Search in sources :

Example 11 with CCActionTableModel

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

the class AuthPropertiesViewBean method createInstanceTable.

/*
    * Responsible for creating the model used for the authentication instances
    */
private void createInstanceTable() {
    CCActionTableModel tableModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblAuthInstance.xml"));
    tableModel.setTitleLabel("label.items");
    tableModel.setActionValue(NAME_COLUMN_LABEL, "authentication.instance.table.name.column");
    tableModel.setActionValue(TYPE_COLUMN_LABEL, "authentication.instance.table.type.column");
    tableModel.setActionValue(ACTION_COLUMN_LABEL, "authentication.instance.table.action.column");
    tableModel.setActionValue(CREATE_INSTANCE_BUTTON, "authentication.instance.table.create.button");
    tableModel.setActionValue(DELETE_INSTANCE_BUTTON, "authentication.instance.table.delete.button");
    propertySheetModel.setModel(AUTH_INSTANCE_TABLE, tableModel);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 12 with CCActionTableModel

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

the class SAMLv2IDPAssertionContentViewBean method createAuthContextsModel.

private void createAuthContextsModel() {
    tblAuthContextsModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSAMLv2IDPAuthenticationContext.xml"));
    tblAuthContextsModel.setTitleLabel("label.items");
    tblAuthContextsModel.setActionValue(TBL_COL_CONTEXT_REFERENCE, "samlv2.idp.authenticationContext.table.name.contextReference.name");
    tblAuthContextsModel.setActionValue(TBL_COL_SUPPORTED, "samlv2.idp.authenticationContext.table.name.supported.name");
    tblAuthContextsModel.setActionValue(TBL_COL_KEY, "samlv2.idp.authenticationContext.table.name.key.name");
    tblAuthContextsModel.setActionValue(TBL_COL_VALUE, "samlv2.idp.authenticationContext.table.name.value.name");
    tblAuthContextsModel.setActionValue(TBL_COL_LEVEL, "samlv2.idp.authenticationContext.table.name.level.name");
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 13 with CCActionTableModel

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

the class SessionPropertyConditionEditViewBean method createTableModel.

protected void createTableModel() {
    tblValuesModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblPolicySessionProperty.xml"));
    tblValuesModel.setTitleLabel("label.items");
    tblValuesModel.setActionValue("tblPolicySessionColName", "policy.table.condition.session.property.column.name");
    tblValuesModel.setActionValue("tblPolicySessionColValues", "policy.table.condition.session.property.column.values");
    tblValuesModel.setActionValue("tblPolicySessionButtonAdd", "policy.table.condition.session.property.button.add");
    tblValuesModel.setActionValue("tblPolicySessionButtonDelete", "policy.table.condition.session.property.button.delete");
    propertySheetModel.setModel(SessionPropertyConditionHelper.ATTR_VALUES, tblValuesModel);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel)

Example 14 with CCActionTableModel

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

the class SessionPropertyConditionHelper method populateTable.

public void populateTable(Map values, AMPropertySheetModel propertySheetModel) {
    if ((values != null) && !values.isEmpty()) {
        CCActionTableModel tblModel = (CCActionTableModel) propertySheetModel.getModel(ATTR_VALUES);
        tblModel.clear();
        boolean first = true;
        for (Iterator i = values.keySet().iterator(); i.hasNext(); ) {
            String propName = (String) i.next();
            if (!propName.equals(SessionPropertyCondition.VALUE_CASE_INSENSITIVE)) {
                Set val = (Set) values.get(propName);
                if (first) {
                    first = false;
                } else {
                    tblModel.appendRow();
                }
                tblModel.setValue(TBL_DATA_NAME, propName);
                tblModel.setValue(TBL_DATA_ACTION, AMViewBeanBase.stringToHex(propName));
                tblModel.setValue(TBL_DATA_VALUES, formatValues(val));
            }
        }
    }
}
Also used : Set(java.util.Set) CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) Iterator(java.util.Iterator)

Example 15 with CCActionTableModel

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

the class SMDiscoveryServiceViewBean method createProviderResourceIdMapperTableModel.

private void createProviderResourceIdMapperTableModel() {
    CCActionTableModel tblModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblProviderResourceIdMapper.xml"));
    tblModel.setTitleLabel("label.items");
    tblModel.setActionValue(TBL_PROVIDER_RESOURCEID_MAPPER_COL_PROVIDERID, "discovery.service.table.providerResourceIdMapper.providerId");
    tblModel.setActionValue(TBL_PROVIDER_RESOURCEID_MAPPER_COL_ID_MAPPER, "discovery.service.table.providerResourceIdMapper.idMapper");
    tblModel.setActionValue(TBL_PROVIDER_RESOURCEID_MAPPER_ADD_BTN, "discovery.service.table.providerResourceIdMapper.add.button");
    tblModel.setActionValue(TBL_PROVIDER_RESOURCEID_MAPPER_DELETE_BTN, "discovery.service.table.providerResourceIdMapper.delete.button");
    propertySheetModel.setModel(AMAdminConstants.DISCOVERY_SERVICE_PROVIDER_RESOURCE_ID_MAPPER, 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