public void deleteEntities(String name,String protocol,String realm) throws AMConsoleException {
  if (protocol.equals(IDFF)) {
    deleteIDFFEntity(name,realm);
  }
 else   if (protocol.equals(WSFED)) {
    deleteWSFedEntity(name,realm);
  }
 else {
    deleteSAMLv2Entity(name,realm);
  }
}

public void deleteEntities ( String name , String protocol , String realm ) throws AMConsoleException { if ( protocol . equals ( IDFF ) ) { deleteIDFFEntity ( name , realm ) ; } else if ( protocol . equals ( WSFED ) ) { deleteWSFedEntity ( name , realm ) ; } else { deleteSAMLv2Entity ( name , realm ) ; } }
deletes the entity specified .
