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);
}
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");
}
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);
}
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));
}
}
}
}
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);
}
Aggregations