Package org.ametys.odf.init
Class OdfRefTableDataHelper.OdfRefTableDataResult
java.lang.Object
org.ametys.odf.init.OdfRefTableDataHelper.OdfRefTableDataResult
- Enclosing class:
OdfRefTableDataHelper
Result of the ODF reference table data synchronization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDetails(String contentTypeId, Map<String, Object> result) Add the result by content typeprotected voidAdd the item to the fail listprotected voidaddPartial(String item) Add the item to the partial listprotected voidaddSuccess(String item) Add the item to the success listduration()Get the duration with format HH:mm from the object creationgetFail()Get the list of failed elementsGet the number of imported elementsGet the list of partially successful elementsGet the list of successful elementsprotected voidincrementImported(Integer imported) Increment the number of imported elementsresume()Resume the result
-
Constructor Details
-
OdfRefTableDataResult
protected OdfRefTableDataResult()Constructor with default values
-
-
Method Details
-
addDetails
Add the result by content type- Parameters:
contentTypeId- the content type identifierresult- the result
-
incrementImported
Increment the number of imported elements- Parameters:
imported- number of new elements
-
addSuccess
Add the item to the success list- Parameters:
item- the item to add
-
addPartial
Add the item to the partial list- Parameters:
item- the item to add
-
addFail
Add the item to the fail list- Parameters:
item- the item to add
-
getImported
Get the number of imported elements- Returns:
- the number of imported elements
-
getSuccess
Get the list of successful elements- Returns:
- the list of successful elements
-
getPartial
Get the list of partially successful elements- Returns:
- the list of partially successful elements
-
getFail
Get the list of failed elements- Returns:
- the list of failed elements
-
duration
Get the duration with format HH:mm from the object creation- Returns:
- the duration
-
resume
Resume the result- Returns:
- resume of the result
-