Search in sources :

Example 1 with SOAPBindingRequestHandler

use of com.sun.identity.console.service.model.SOAPBindingRequestHandler in project OpenAM by OpenRock.

the class SCSOAPBindingViewBean method populateRequestHandlerListTable.

private void populateRequestHandlerListTable(Set handlers) {
    tablePopulated = true;
    CCActionTableModel tblModel = (CCActionTableModel) propertySheetModel.getModel(SCSOAPBindingModelImpl.ATTRIBUTE_NAME_REQUEST_HANDLER_LIST);
    tblModel.clearAll();
    boolean firstEntry = true;
    int counter = 0;
    for (Iterator iter = handlers.iterator(); iter.hasNext(); ) {
        String c = (String) iter.next();
        SOAPBindingRequestHandler entry = new SOAPBindingRequestHandler(c);
        if (entry.isValid()) {
            if (!firstEntry) {
                tblModel.appendRow();
            } else {
                firstEntry = false;
            }
            tblModel.setValue(TBL_REQUEST_HANDLER_LIST_DATA_KEY, entry.strKey);
            tblModel.setValue(TBL_REQUEST_HANDLER_LIST_DATA_CLASS, entry.strClass);
            tblModel.setValue(TBL_REQUEST_HANDLER_LIST_HREF_EDIT_ACTION, Integer.toString(counter));
            tblModel.setValue(TBL_REQUEST_HANDLER_LIST_LABEL_EDIT_ACTION, "soapBinding.service.table.requestHandlerList.action.edit.label");
            tblModel.setValue(TBL_REQUEST_HANDLER_LIST_HREF_DUP_ACTION, Integer.toString(counter));
            tblModel.setValue(TBL_REQUEST_HANDLER_LIST_LABEL_DUP_ACTION, "soapBinding.service.table.requestHandlerList.action.dup.label");
        }
        counter++;
    }
    setPageSessionAttribute(SCSOAPBindingModelImpl.ATTRIBUTE_NAME_REQUEST_HANDLER_LIST, (OrderedSet) handlers);
}
Also used : CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) Iterator(java.util.Iterator) SOAPBindingRequestHandler(com.sun.identity.console.service.model.SOAPBindingRequestHandler)

Example 2 with SOAPBindingRequestHandler

use of com.sun.identity.console.service.model.SOAPBindingRequestHandler in project OpenAM by OpenRock.

the class SCSOAPBindingRequestHandlerListDupViewBean method setValues.

protected void setValues(String value) {
    SOAPBindingRequestHandler entry = new SOAPBindingRequestHandler(value);
    String newKey = entry.strKey + getModel().getLocalizedString("soapBinding.service.table.requestHandlerList.action.dup.copy");
    propertySheetModel.setValue(ATTR_KEY, newKey);
    propertySheetModel.setValue(ATTR_CLASS, entry.strClass);
    if (entry.strSOAPAction != null) {
        propertySheetModel.setValue(ATTR_ACTION, entry.strSOAPAction);
    }
}
Also used : SOAPBindingRequestHandler(com.sun.identity.console.service.model.SOAPBindingRequestHandler)

Example 3 with SOAPBindingRequestHandler

use of com.sun.identity.console.service.model.SOAPBindingRequestHandler in project OpenAM by OpenRock.

the class SCSOAPBindingRequestHandlerListViewBeanBase method setValues.

protected void setValues(String value) {
    SOAPBindingRequestHandler entry = new SOAPBindingRequestHandler(value);
    propertySheetModel.setValue(ATTR_KEY, entry.strKey);
    propertySheetModel.setValue(ATTR_CLASS, entry.strClass);
    if (entry.strSOAPAction != null) {
        propertySheetModel.setValue(ATTR_ACTION, entry.strSOAPAction);
    }
}
Also used : SOAPBindingRequestHandler(com.sun.identity.console.service.model.SOAPBindingRequestHandler)

Aggregations

SOAPBindingRequestHandler (com.sun.identity.console.service.model.SOAPBindingRequestHandler)3 CCActionTableModel (com.sun.web.ui.model.CCActionTableModel)1 Iterator (java.util.Iterator)1