use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class SCSOAPBindingViewBean method handleTblRequestHandlerListButtonDeleteRequest.
/**
* Handles remove request handlers request.
*
* @param event Request Invocation Event.
*/
public void handleTblRequestHandlerListButtonDeleteRequest(RequestInvocationEvent event) throws ModelControlException {
setSubmitCycle(true);
CCActionTable table = (CCActionTable) getChild(SCSOAPBindingModelImpl.ATTRIBUTE_NAME_REQUEST_HANDLER_LIST);
table.restoreStateData();
CCActionTableModel tblModel = (CCActionTableModel) propertySheetModel.getModel(SCSOAPBindingModelImpl.ATTRIBUTE_NAME_REQUEST_HANDLER_LIST);
Integer[] selected = tblModel.getSelectedRows();
if ((selected != null) && (selected.length > 0)) {
OrderedSet tblValues = (OrderedSet) getPageSessionAttribute(SCSOAPBindingModelImpl.ATTRIBUTE_NAME_REQUEST_HANDLER_LIST);
tblValues.removeAll(selected);
setPageSessionAttribute(SCSOAPBindingModelImpl.ATTRIBUTE_NAME_REQUEST_HANDLER_LIST, tblValues);
populateRequestHandlerListTable(tblValues);
setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "message.profile.modified");
setPageSessionAttribute(PAGE_MODIFIED, "1");
}
forwardTo();
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class SCSOAPBindingViewBean method createRequestHandlerListTableModel.
private void createRequestHandlerListTableModel() {
CCActionTableModel tblModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/tblSOAPBindingRequestHandlerList.xml"));
tblModel.setTitleLabel("label.items");
tblModel.setActionValue(TBL_REQUEST_HANDLER_LIST_COL_KEY, "soapBinding.service.table.requestHandlerList.key");
tblModel.setActionValue(TBL_REQUEST_HANDLER_LIST_COL_CLASS, "soapBinding.service.table.requestHandlerList.class");
tblModel.setActionValue(TBL_REQUEST_HANDLER_LIST_COL_ACTION, "soapBinding.service.table.requestHandlerList.action");
tblModel.setActionValue(TBL_REQUEST_HANDLER_LIST_ADD_BTN, "soapBinding.service.table.requestHandlerList.add.button");
tblModel.setActionValue(TBL_REQUEST_HANDLER_LIST_DELETE_BTN, "soapBinding.service.table.requestHandlerList.delete.button");
propertySheetModel.setModel(SCSOAPBindingModelImpl.ATTRIBUTE_NAME_REQUEST_HANDLER_LIST, tblModel);
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class SubConfigEditViewBean method handleTblSubConfigButtonDeleteRequest.
/**
* Deletes sub configuration.
*
* @param event Request Invocation Event.
* @throws ModelControlException if table model cannot be restored.
*/
public void handleTblSubConfigButtonDeleteRequest(RequestInvocationEvent event) throws ModelControlException {
submitCycle = true;
CCActionTable tbl = (CCActionTable) getChild(AMPropertySheetModel.TBL_SUB_CONFIG);
tbl.restoreStateData();
CCActionTableModel tblModel = (CCActionTableModel) tbl.getModel();
Integer[] selected = tblModel.getSelectedRows();
SerializedField szCache = (SerializedField) getChild(SZ_CACHE);
List list = (List) szCache.getSerializedObj();
Set names = new HashSet(selected.length * 2);
for (int i = 0; i < selected.length; i++) {
SMSubConfig sc = (SMSubConfig) list.get(selected[i].intValue());
names.add(sc.getName());
}
try {
SubConfigModel model = (SubConfigModel) getModel();
model.deleteSubConfigurations(names);
if (selected.length == 1) {
setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "subconfig.message.deleted");
} else {
setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "subconfig.message.deleted.pural");
}
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
submitCycle = false;
forwardTo();
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class ConfigureSalesForceAppsViewBean method createAttrMappingTable.
private void createAttrMappingTable() {
tableModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/attributesMappingTable.xml"));
tableModel.setTitleLabel("");
tableModel.setActionValue("deleteAttrMappingBtn", "configure.provider.attributesmapping.delete.button");
tableModel.setActionValue("NameColumn", "configure.provider.attributesmapping.column.name");
tableModel.setActionValue("AssertionColumn", "configure.provider.attributesmapping.column.assertion");
propertySheetModel.setModel("tblattrmapping", tableModel);
}
use of com.sun.web.ui.model.CCActionTableModel in project OpenAM by OpenRock.
the class CreateHostedSPViewBean method createAttrMappingTable.
private void createAttrMappingTable() {
tableModel = new CCActionTableModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/attributesMappingTable.xml"));
tableModel.setTitleLabel("");
tableModel.setActionValue("deleteAttrMappingBtn", "configure.provider.attributesmapping.delete.button");
tableModel.setActionValue("NameColumn", "configure.provider.attributesmapping.column.name");
tableModel.setActionValue("AssertionColumn", "configure.provider.attributesmapping.column.assertion");
propertySheetModel.setModel("tblattrmapping", tableModel);
}
Aggregations