Line 414... |
Line 414... |
414 |
|
414 |
|
415 |
private void rafraichirInformation(Information info) {
|
415 |
private void rafraichirInformation(Information info) {
|
416 |
String type = info.getType();
|
416 |
String type = info.getType();
|
417 |
if (type.equals("ajout_publication") || type.equals("modif_publication")) {
|
417 |
if (type.equals("ajout_publication") || type.equals("modif_publication")) {
|
418 |
publicationValideOk = true;
|
- |
|
419 |
if (vueExterneARafraichirApresValidation != null) {
|
- |
|
420 |
publication.setId((String) info.getDonnee(0));
|
- |
|
421 |
}
|
- |
|
422 |
|
418 |
publicationValideOk = true;
|
- |
|
419 |
if (mode.equals(Formulaire.MODE_AJOUTER)) {
|
- |
|
420 |
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
|
- |
|
421 |
String publicationId = (String) info.getDonnee(0);
|
- |
|
422 |
if (publicationId.matches("[0-9]+")) {
|
- |
|
423 |
publication.setId(publicationId);
|
- |
|
424 |
}
|
423 |
if (mode.equals(Formulaire.MODE_AJOUTER)) {
|
425 |
}
|
424 |
attenteAjoutAuteursOk = true;
|
426 |
attenteAjoutAuteursOk = true;
|
425 |
mediateur.ajouterPublicationAPersonne(this, publication.getId(), auteursAjoutes, PublicationAPersonne.ROLE_AUTEUR);
|
427 |
mediateur.ajouterPublicationAPersonne(this, publication.getId(), auteursAjoutes, PublicationAPersonne.ROLE_AUTEUR);
|
426 |
}
|
428 |
}
|
Line 434... |
Line 436... |
434 |
auteursStorePartage.add(liste);
|
436 |
auteursStorePartage.add(liste);
|
435 |
Debug.log("Reception nouvelle liste auteurs");
|
437 |
Debug.log("Reception nouvelle liste auteurs");
|
436 |
auteurStorePartageChargementOk = true;
|
438 |
auteurStorePartageChargementOk = true;
|
437 |
} else if (info.getType().equals("ajout_publication_a_personne")) {
|
439 |
} else if (info.getType().equals("ajout_publication_a_personne")) {
|
438 |
attenteAjoutAuteursOk = false;
|
440 |
attenteAjoutAuteursOk = false;
|
439 |
GWT.log("attenteAjoutAuteursOk", null);
|
441 |
Debug.log("attenteAjoutAuteursOk");
|
440 |
} else if (info.getType().equals("suppression_publication_a_personne")) {
|
442 |
} else if (info.getType().equals("suppression_publication_a_personne")) {
|
441 |
attenteSuppressionAuteursOk = false;
|
443 |
attenteSuppressionAuteursOk = false;
|
442 |
GWT.log("attenteSuppressionAuteursOk", null);
|
444 |
Debug.log("attenteSuppressionAuteursOk");
|
443 |
} else if (info.getType().equals("modif_publication")) {
|
445 |
} else if (info.getType().equals("modif_publication")) {
|
444 |
Info.display("Modification d'une publication", info.toString());
|
446 |
Info.display("Modification d'une publication", info.toString());
|
445 |
} else if (info.getType().equals("ajout_publication")) {
|
447 |
} else if (info.getType().equals("ajout_publication")) {
|
446 |
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String) {
|
448 |
if (info.getDonnee(0) != null && info.getDonnee(0) instanceof String && ((String) info.getDonnee(0)).matches("[0-9]+")) {
|
447 |
String publicationId = (String) info.getDonnee(0);
|
449 |
String publicationId = (String) info.getDonnee(0);
|
448 |
Info.display("Ajout d'une publication", "La publication '"+publicationId+"' a bien été ajoutée");
|
450 |
Info.display("Ajout d'une publication", "La publication '"+publicationId+"' a bien été ajoutée");
|
449 |
if (vueExterneARafraichirApresValidation != null) {
|
- |
|
450 |
publication.setId(publicationId);
|
- |
|
451 |
}
|
- |
|
452 |
} else {
|
451 |
} else {
|
453 |
Info.display("Ajout d'une publication", info.toString());
|
452 |
Info.display("Ajout d'une publication", info.toString());
|
454 |
}
|
453 |
}
|
455 |
}
|
454 |
}
|
456 |
}
|
455 |
}
|