Search in sources :

Example 1 with SAML2SOAPBindingRequestHandler

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

the class SCSAML2SOAPBindingRequestHandlerListViewBeanBase method setValues.

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

Example 2 with SAML2SOAPBindingRequestHandler

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

the class SCSAML2SOAPBindingRequestHandlerListDupViewBean method setValues.

protected void setValues(String value) {
    SAML2SOAPBindingRequestHandler entry = new SAML2SOAPBindingRequestHandler(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);
}
Also used : SAML2SOAPBindingRequestHandler(com.sun.identity.console.service.model.SAML2SOAPBindingRequestHandler)

Example 3 with SAML2SOAPBindingRequestHandler

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

the class SCSAML2SOAPBindingViewBean method populateRequestHandlerListTable.

private void populateRequestHandlerListTable(Set handlers) {
    tablePopulated = true;
    CCActionTableModel tblModel = (CCActionTableModel) propertySheetModel.getModel(SCSAML2SOAPBindingModelImpl.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();
        SAML2SOAPBindingRequestHandler entry = new SAML2SOAPBindingRequestHandler(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(SCSAML2SOAPBindingModelImpl.ATTRIBUTE_NAME_REQUEST_HANDLER_LIST, (OrderedSet) handlers);
}
Also used : SAML2SOAPBindingRequestHandler(com.sun.identity.console.service.model.SAML2SOAPBindingRequestHandler) CCActionTableModel(com.sun.web.ui.model.CCActionTableModel) Iterator(java.util.Iterator)

Aggregations

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