public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
  FSAuthDomainsModel model=(FSAuthDomainsModel)getModel();
  String name=(String)getDisplayFieldValue(model.TF_NAME);
  AMPropertySheet ps=(AMPropertySheet)getChild(PROPERTY_ATTRIBUTE);
  try {
    String realm=model.getRealm(name);
    Map values=ps.getAttributeValues(model.getDataMap(),false,model);
    model.setAttributeValues(realm,name,values);
    SerializedField szCache=(SerializedField)getChild(SZ_CACHE);
    FederationViewBean vb=(FederationViewBean)getViewBean(FederationViewBean.class);
    CCAddRemove addRemoveList=(CCAddRemove)getChild(ADD_REMOVE_PROVIDERS);
    addRemoveList.restoreStateData();
    CCAddRemoveModel addRemoveModel=(CCAddRemoveModel)addRemoveList.getModel();
    List list=new ArrayList(getSelectedValues(addRemoveModel));
    model.addProviders(realm,name,list);
    setInlineAlertMessage(CCAlert.TYPE_INFO,"message.information","authentication.domain.updated");
    forwardTo();
  }
 catch (  AMConsoleException e) {
    setInlineAlertMessage(CCAlert.TYPE_ERROR,"message.error",e.getMessage());
    forwardTo();
  }
}

public void handleButton1Request ( RequestInvocationEvent event ) throws ModelControlException { FSAuthDomainsModel model = ( FSAuthDomainsModel ) getModel ( ) ; String name = ( String ) getDisplayFieldValue ( model . TF_NAME ) ; AMPropertySheet ps = ( AMPropertySheet ) getChild ( PROPERTY_ATTRIBUTE ) ; try { String realm = model . getRealm ( name ) ; Map values = ps . getAttributeValues ( model . getDataMap ( ) , false , model ) ; model . setAttributeValues ( realm , name , values ) ; SerializedField szCache = ( SerializedField ) getChild ( SZ_CACHE ) ; FederationViewBean vb = ( FederationViewBean ) getViewBean ( FederationViewBean . class ) ; CCAddRemove addRemoveList = ( CCAddRemove ) getChild ( ADD_REMOVE_PROVIDERS ) ; addRemoveList . restoreStateData ( ) ; CCAddRemoveModel addRemoveModel = ( CCAddRemoveModel ) addRemoveList . getModel ( ) ; List list = new ArrayList ( getSelectedValues ( addRemoveModel ) ) ; model . addProviders ( realm , name , list ) ; setInlineAlertMessage ( CCAlert . TYPE_INFO , "message.information" , "authentication.domain.updated" ) ; forwardTo ( ) ; } catch ( AMConsoleException e ) { setInlineAlertMessage ( CCAlert . TYPE_ERROR , "message.error" , e . getMessage ( ) ) ; forwardTo ( ) ; } }
handles create authentication domains view bean .
