Class ExportReport
java.lang.Object
org.ametys.plugins.odfsync.export.ExportReport
The report for an export to an external connector (Pégase, Apogée...)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe status of the exportstatic enumProblem types that we can encounter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElementExported(Content element) Add an element to the element exportedvoidaddInvalidDataPath(Content content, I18nizableText invalidMessage) Add invalid model item for a contentGet the content in which the report is basedGet the structure implementation.Get the invalid data by contentintGetter of nbExportedintGetter of _nbNotExportedintGetter of nbPartiallyExportedGetter of _problemsEncounteredGet the export statusvoidsetExportStructure(AbstractExportStructure structure) Set the structure implementation.voidsetNbTotal(int nbTotal) setter of _nbTotalvoidsetStatus(ExportReport.ExportStatus status) Set the export statusvoidupdateExportReport(ExportReport.ExportStatus exportStatusWanted, ExportReport.ProblemTypes problemEncountered) Update the export report by setting the status and problem encounteredvoidupdateExportReport(ExportReport.ExportStatus exportStatusWanted, ExportReport.ProblemTypes problemEncountered, Content content) Update the export report by setting the status, problemsEncountered and removing content from elementExported and adding it to elementPartlyExportedvoidUpdate the export status
-
Constructor Details
-
ExportReport
The constructor- Parameters:
content- The content on which the report is based
-
-
Method Details
-
getContent
Get the content in which the report is based- Returns:
- a content
-
getInvalidDataPathByContent
Get the invalid data by content- Returns:
- the map of invalid data by content
-
addInvalidDataPath
Add invalid model item for a content- Parameters:
content- the contentinvalidMessage- the model item
-
getExportStructure
Get the structure implementation.- Returns:
- the structure implementation
-
setExportStructure
Set the structure implementation.- Parameters:
structure- the structure implementation.
-
getStatus
Get the export status- Returns:
- the export status
-
setStatus
Set the export status- Parameters:
status- the export status
-
getNbExported
Getter of nbExported- Returns:
- The number of element exported
-
getNbPartlyExported
Getter of nbPartiallyExported- Returns:
- The number of partly exported element
-
getNbNotExported
Getter of _nbNotExported- Returns:
- The number of element not exported
-
setNbTotal
setter of _nbTotal- Parameters:
nbTotal- The number
-
getProblemsEncountered
Getter of _problemsEncountered- Returns:
- The problems encountered
-
addElementExported
Add an element to the element exported- Parameters:
element- The element to add
-
updateStatus
Update the export status- Parameters:
status- The export status wanted
-
updateExportReport
public void updateExportReport(ExportReport.ExportStatus exportStatusWanted, ExportReport.ProblemTypes problemEncountered) Update the export report by setting the status and problem encountered- Parameters:
exportStatusWanted- The export status wantedproblemEncountered- The problem encountered
-
updateExportReport
public void updateExportReport(ExportReport.ExportStatus exportStatusWanted, ExportReport.ProblemTypes problemEncountered, Content content) Update the export report by setting the status, problemsEncountered and removing content from elementExported and adding it to elementPartlyExported- Parameters:
exportStatusWanted- The export status wantedproblemEncountered- The problem encounteredcontent- The content at cause
-