use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class SCPolicyViewBean method createResourceComparatorTableModel.
private void createResourceComparatorTableModel() {
CCActionTableModel tblModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblPolicyResourceComparator.xml"));
tblModel.setTitleLabel("label.items");
tblModel.setActionValue(TBL_RESOURCE_COMPARATOR_COL_NAME, "policy.service.table.resource.comparator.name");
tblModel.setActionValue(TBL_RESOURCE_COMPARATOR_COL_ACTION, "policy.service.table.resource.comparator.action");
tblModel.setActionValue(TBL_RESOURCE_COMPARATOR_ADD_BTN, "policy.service.table.resource.comparator.add.button");
tblModel.setActionValue(TBL_RESOURCE_COMPARATOR_DELETE_BTN, "policy.service.table.resource.comparator.delete.button");
propertySheetModel.setModel(TBL_RESOURCE, tblModel);
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class SCConfigConsoleViewBean method createTableModels.
protected void createTableModels() {
SCConfigModel model = (SCConfigModel) getModel();
tblModelConsole = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSCConfigConsole.xml"));
List svcNames = model.getServiceNames(SEC_CONSOLE);
populateTableModel(tblModelConsole, svcNames, SEC_CONSOLE);
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class SCConfigGlobalViewBean method createTableModels.
protected void createTableModels() {
SCConfigModel model = (SCConfigModel) getModel();
tblModelGlobal = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSCConfigGlobal.xml"));
List svcNames = model.getServiceNames(SEC_GLOBAL);
populateTableModel(tblModelGlobal, svcNames, SEC_GLOBAL);
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class SCConfigSystemViewBean method createTableModels.
protected void createTableModels() {
SCConfigModel model = (SCConfigModel) getModel();
tblModelSystem = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSCConfigSystem.xml"));
List svcNames = model.getServiceNames(SEC_SYSTEM);
populateTableModel(tblModelSystem, svcNames, SEC_SYSTEM);
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class WSAuthNServicesViewBean method populateHandlersTable.
private void populateHandlersTable(Set handlers) {
tablePopulated = true;
CCActionTableModel tblModel = (CCActionTableModel) propertySheetModel.getModel(WSAuthNServicesModelImpl.ATTRIBUTE_NAME_HANDLERS);
tblModel.clearAll();
boolean firstEntry = true;
int counter = 0;
for (Iterator iter = handlers.iterator(); iter.hasNext(); ) {
String c = (String) iter.next();
WSAuthHandlerEntry entry = new WSAuthHandlerEntry(c);
if (entry.isValid()) {
if (!firstEntry) {
tblModel.appendRow();
} else {
firstEntry = false;
}
tblModel.setValue(TBL_HANDLERS_DATA_KEY, entry.strKey);
tblModel.setValue(TBL_HANDLERS_DATA_CLASS, entry.strClass);
tblModel.setValue(TBL_HANDLERS_HREF_ACTION, Integer.toString(counter));
}
counter++;
}
setPageSessionAttribute(WSAuthNServicesModelImpl.ATTRIBUTE_NAME_HANDLERS, (OrderedSet) handlers);
}
Aggregations