| Line 1097... |
Line 1097... |
| 1097 |
public void modifierPublication(Rafraichissable vueARafraichir, Publication publication) {
|
1097 |
public void modifierPublication(Rafraichissable vueARafraichir, Publication publication) {
|
| 1098 |
modele.modifierPublication(vueARafraichir, publication);
|
1098 |
modele.modifierPublication(vueARafraichir, publication);
|
| 1099 |
}
|
1099 |
}
|
| Line 1100... |
Line 1100... |
| 1100 |
|
1100 |
|
| 1101 |
public void supprimerPublication(Rafraichissable vueARafraichir, List<Publication> publicationsListe) {
|
- |
|
| 1102 |
|
- |
|
| 1103 |
Debug.log("(*) BEGIN Mediateur.supprimerPublication()");
|
- |
|
| 1104 |
|
1101 |
public void supprimerPublication(Rafraichissable vueARafraichir, List<Publication> publicationsListe) {
|
| 1105 |
if (publicationsListe != null && publicationsListe.size() > 0) {
|
1102 |
if (publicationsListe != null && publicationsListe.size() > 0) {
|
| 1106 |
String idPublicationSeparesParVirgule = "" ;
|
1103 |
String idPublicationSeparesParVirgule = "" ;
|
| 1107 |
Iterator<Publication> it = publicationsListe.iterator();
|
1104 |
Iterator<Publication> it = publicationsListe.iterator();
|
| 1108 |
while (it.hasNext()) {
|
1105 |
while (it.hasNext()) {
|
| Line 1112... |
Line 1109... |
| 1112 |
}
|
1109 |
}
|
| 1113 |
}
|
1110 |
}
|
| 1114 |
modele.supprimerPublication(vueARafraichir, idPublicationSeparesParVirgule);
|
1111 |
modele.supprimerPublication(vueARafraichir, idPublicationSeparesParVirgule);
|
| 1115 |
modele.supprimerPublicationAPersonne(vueARafraichir, idPublicationSeparesParVirgule);
|
1112 |
modele.supprimerPublicationAPersonne(vueARafraichir, idPublicationSeparesParVirgule);
|
| 1116 |
}
|
1113 |
}
|
| 1117 |
|
- |
|
| 1118 |
Debug.log("(*) END Mediateur.supprimerPublication()");
|
- |
|
| 1119 |
|
- |
|
| 1120 |
}
|
1114 |
}
|
| Line 1121... |
Line 1115... |
| 1121 |
|
1115 |
|
| 1122 |
public void clicObtenirListeEditeurs(Rafraichissable vueARafraichir) {
|
1116 |
public void clicObtenirListeEditeurs(Rafraichissable vueARafraichir) {
|
| 1123 |
selectionnerStructureParProjet(vueARafraichir, null);
|
1117 |
selectionnerStructureParProjet(vueARafraichir, null);
|
| Line 1133... |
Line 1127... |
| 1133 |
public void selectionnerPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, String roleId) {
|
1127 |
public void selectionnerPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, String roleId) {
|
| 1134 |
modele.selectionPublicationAPersonne(vueARafraichir, publicationId, personnesId, roleId);
|
1128 |
modele.selectionPublicationAPersonne(vueARafraichir, publicationId, personnesId, roleId);
|
| 1135 |
}
|
1129 |
}
|
| Line 1136... |
Line 1130... |
| 1136 |
|
1130 |
|
| 1137 |
public void selectionnerPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, List<Valeur> roleId) {
|
- |
|
| 1138 |
|
- |
|
| 1139 |
Debug.log("|*** BEGIN Mediateur.selectionnerPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, List<Valeur> roleId)");
|
- |
|
| 1140 |
|
1131 |
public void selectionnerPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, List<Valeur> roleId) {
|
| 1141 |
String roleIds = "";
|
1132 |
String roleIds = "";
|
| 1142 |
Iterator<Valeur> itRole = roleId.iterator();
|
1133 |
Iterator<Valeur> itRole = roleId.iterator();
|
| 1143 |
while (itRole.hasNext()) {
|
1134 |
while (itRole.hasNext()) {
|
| 1144 |
roleIds+= itRole.next().getId();
|
1135 |
roleIds+= itRole.next().getId();
|
| 1145 |
if (itRole.hasNext()) {
|
1136 |
if (itRole.hasNext()) {
|
| 1146 |
roleIds+=",";
|
1137 |
roleIds+=",";
|
| 1147 |
}
|
1138 |
}
|
| 1148 |
}
|
1139 |
}
|
| 1149 |
modele.selectionPublicationAPersonne(vueARafraichir, publicationId, personnesId, roleIds);
|
- |
|
| 1150 |
|
- |
|
| 1151 |
Debug.log("|*** END Mediateur.selectionnerPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, String personnesId, List<Valeur> roleId)");
|
1140 |
modele.selectionPublicationAPersonne(vueARafraichir, publicationId, personnesId, roleIds);
|
| Line 1152... |
Line 1141... |
| 1152 |
}
|
1141 |
}
|
| 1153 |
|
- |
|
| 1154 |
public void ajouterPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, PublicationAPersonneListe personnesAjoutees, String roleId) {
|
- |
|
| 1155 |
|
- |
|
| 1156 |
Debug.log("|*** BEGIN Mediateur.ajouterPublicationAPersonne()");
|
1142 |
|
| 1157 |
|
1143 |
public void ajouterPublicationAPersonne(Rafraichissable vueARafraichir, String publicationId, PublicationAPersonneListe personnesAjoutees, String roleId) {
|
| 1158 |
if (personnesAjoutees != null && personnesAjoutees.size() > 0) {
|
1144 |
if (personnesAjoutees != null && personnesAjoutees.size() > 0) {
|
| 1159 |
String idPublicationAPersonneSepareParVirgule = "" ;
|
1145 |
String idPublicationAPersonneSepareParVirgule = "" ;
|
| 1160 |
for (Iterator<String> it = personnesAjoutees.keySet().iterator(); it.hasNext();) {
|
1146 |
for (Iterator<String> it = personnesAjoutees.keySet().iterator(); it.hasNext();) {
|
| 1161 |
idPublicationAPersonneSepareParVirgule += personnesAjoutees.get(it.next()).getIdPersonne();
|
1147 |
idPublicationAPersonneSepareParVirgule += personnesAjoutees.get(it.next()).getIdPersonne();
|
| 1162 |
if (it.hasNext()) {
|
1148 |
if (it.hasNext()) {
|
| 1163 |
idPublicationAPersonneSepareParVirgule += ",";
|
1149 |
idPublicationAPersonneSepareParVirgule += ",";
|
| 1164 |
}
|
1150 |
}
|
| 1165 |
}
|
1151 |
}
|
| 1166 |
modele.ajouterPublicationAPersonne(vueARafraichir, publicationId, idPublicationAPersonneSepareParVirgule, roleId);
|
- |
|
| 1167 |
}
|
- |
|
| 1168 |
|
- |
|
| 1169 |
Debug.log("|*** END Mediateur.ajouterPublicationAPersonne()");
|
1152 |
modele.ajouterPublicationAPersonne(vueARafraichir, publicationId, idPublicationAPersonneSepareParVirgule, roleId);
|
| Line 1170... |
Line 1153... |
| 1170 |
|
1153 |
}
|
| 1171 |
}
|
- |
|
| 1172 |
|
- |
|
| 1173 |
public void supprimerPublicationAPersonne(Rafraichissable vueARafraichir, PublicationAPersonneListe personnesSupprimees) {
|
1154 |
}
|
| 1174 |
Debug.log("(*) BEGIN Mediateur.supprimerPublicationAPersonne()");
|
1155 |
|
| 1175 |
|
1156 |
public void supprimerPublicationAPersonne(Rafraichissable vueARafraichir, PublicationAPersonneListe personnesSupprimees) {
|
| 1176 |
if (personnesSupprimees != null && personnesSupprimees.size() > 0) {
|
1157 |
if (personnesSupprimees != null && personnesSupprimees.size() > 0) {
|
| 1177 |
String idPublicationAPersonneSepareParVirgule = "" ;
|
1158 |
String idPublicationAPersonneSepareParVirgule = "" ;
|
| 1178 |
for (Iterator<String> it = personnesSupprimees.keySet().iterator(); it.hasNext();) {
|
1159 |
for (Iterator<String> it = personnesSupprimees.keySet().iterator(); it.hasNext();) {
|
| 1179 |
idPublicationAPersonneSepareParVirgule += personnesSupprimees.get(it.next()).getId();
|
1160 |
idPublicationAPersonneSepareParVirgule += personnesSupprimees.get(it.next()).getId();
|
| 1180 |
if (it.hasNext()) {
|
1161 |
if (it.hasNext()) {
|
| 1181 |
idPublicationAPersonneSepareParVirgule += ",";
|
1162 |
idPublicationAPersonneSepareParVirgule += ",";
|
| 1182 |
}
|
1163 |
}
|
| 1183 |
}
|
- |
|
| 1184 |
modele.supprimerPublicationAPersonne(vueARafraichir, idPublicationAPersonneSepareParVirgule);
|
1164 |
}
|
| Line 1185... |
Line 1165... |
| 1185 |
}
|
1165 |
modele.supprimerPublicationAPersonne(vueARafraichir, idPublicationAPersonneSepareParVirgule);
|
| 1186 |
Debug.log("(*) END Mediateur.supprimerPublicationAPersonne()");
|
1166 |
}
|
| 1187 |
}
|
- |
|
| 1188 |
|
- |
|
| 1189 |
//Lier plusieurs publication à une personne
|
- |
|
| 1190 |
public void ajouterPublicationAPersonne(Rafraichissable vueARafraichir, PublicationAPersonneListe listePublications, String personneId, String roleId) {
|
- |
|
| 1191 |
|
- |
|
| 1192 |
Debug.log("<8-8> BEGIN Mediateur.ajouterPublicationAPersonne() pour lier plusieurs publication à une personne");
|
1167 |
}
|
| 1193 |
|
1168 |
|
| 1194 |
Debug.log("<8-8> Mediateur.ajouterPublicationAPersonne(), listePublications = "+listePublications.toString());
|
1169 |
//Lier plusieurs publication à une personne
|
| 1195 |
|
1170 |
public void ajouterPublicationAPersonne(Rafraichissable vueARafraichir, PublicationAPersonneListe listePublications, String personneId, String roleId) {
|
| 1196 |
if (listePublications!=null && listePublications.size()>0) {
|
1171 |
if (listePublications!=null && listePublications.size()>0) {
|
| Line 1203... |
Line 1178... |
| 1203 |
if (it.hasNext()) {
|
1178 |
if (it.hasNext()) {
|
| 1204 |
idsPubli += ",";
|
1179 |
idsPubli += ",";
|
| 1205 |
rolesIds += ",";
|
1180 |
rolesIds += ",";
|
| 1206 |
}
|
1181 |
}
|
| 1207 |
}
|
1182 |
}
|
| 1208 |
|
- |
|
| 1209 |
Debug.log("<8-8> Mediateur.ajouterPublicationAPersonne(), idsPubli = "+idsPubli+", rolesIds = "+rolesIds);
|
- |
|
| 1210 |
|
- |
|
| 1211 |
Debug.log("<8-8> Médiateur.ajouterPublicationAPersonne(), Appel à modele.ajouterPublicationAPersonne()");
|
- |
|
| 1212 |
modele.ajouterPublicationAPersonne(vueARafraichir, idsPubli, personneId, rolesIds);
|
1183 |
modele.ajouterPublicationAPersonne(vueARafraichir, idsPubli, personneId, rolesIds);
|
| 1213 |
}
|
1184 |
}
|
| 1214 |
|
- |
|
| 1215 |
Debug.log("<8-8> END Mediateur.ajouterPublicationAPersonne() pour lier plusieurs publication à une personne");
|
- |
|
| 1216 |
}
|
1185 |
}
|
| Line 1217... |
Line 1186... |
| 1217 |
|
1186 |
|
| 1218 |
//+----------------------------------------------------------------------------------------------------------------+
|
1187 |
//+----------------------------------------------------------------------------------------------------------------+
|
| 1219 |
// GESTION DES COMMENTAIRES
|
1188 |
// GESTION DES COMMENTAIRES
|