Skip to content

Commit

Permalink
The text of the requirements has been added to the extraction of the …
Browse files Browse the repository at this point in the history
…Calls in Excel
  • Loading branch information
mspasiano committed Jul 23, 2024
1 parent 680948e commit fdf7432
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.NotImplementedException;
import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDPageContentStream;
Expand Down Expand Up @@ -192,7 +193,7 @@ public class PrintService {
"Codice bando", "Nome Utente", "Cognome", "Nome", "Codice Fiscale", "Matricola", "Stato Domanda"
);
private final List<String> headCSVCall = Arrays.asList(
"Tipologia", "Codice bando", "Sede di lavoro", "Struttura di riferimento",
"Tipologia", "Codice bando", "Requisiti","Sede di lavoro", "Struttura di riferimento",
"N° G.U.R.I.", "Data G.U.R.I.", "Data scadenza", "Responsabile (Nominativo)",
"Email Responsabile.", "N. Posti", "Profilo/Livello",
"Bando - Num. Protocollo", "Bando - Data Protocollo",
Expand Down Expand Up @@ -2861,6 +2862,13 @@ private void getRecordCSVCall(Session session, Folder callObject, CMISUser user,
);

row.createCell(column++).setCellValue(callObject.<String>getPropertyValue(JCONONPropertyIds.CALL_CODICE.value()));
row.createCell(column++).setCellValue(
Optional.ofNullable(callObject.<String>getPropertyValue(JCONONPropertyIds.CALL_REQUISITI.value()))
.map(s -> s.replaceAll("\\<.*?\\>", ""))
.map(s -> StringEscapeUtils.unescapeHtml4(s))
.map(s -> s.trim())
.orElse("")
);
row.createCell(column++).setCellValue(callObject.<String>getPropertyValue(JCONONPropertyIds.CALL_STRUTTURA_DESTINATARIA.value()));
row.createCell(column++).setCellValue(callObject.<String>getPropertyValue(JCONONPropertyIds.CALL_SEDE.value()));
row.createCell(column++).setCellValue(callObject.<String>getPropertyValue(JCONONPropertyIds.CALL_NUMERO_GU.value()));
Expand Down

0 comments on commit fdf7432

Please sign in to comment.