public final class ClosingDayService extends Object
| Modifier and Type | Method and Description |
|---|---|
static ClosingDay |
findClosingDayByIdFormAndDateOfClosingDay(int nIdForm,
LocalDate dateOfClosingDay)
Find, if it exists, the closing day of a form for a given date
|
static List<ClosingDay> |
findListClosingDay(int nIdForm)
Returns a list of the closing days of a form
|
static List<LocalDate> |
findListDateOfClosingDayByIdForm(int nIdForm)
Find all the dates of the closing days of the form
|
static List<LocalDate> |
findListDateOfClosingDayByIdFormAndDateRange(int nIdForm,
LocalDate startingDate,
LocalDate endingDate)
Find all the closing dates of the form on a given period
|
static List<LocalDate> |
getImportClosingDays(org.apache.commons.fileupload.FileItem item)
Import the closing dates of a given file
|
static void |
removeClosingDay(ClosingDay closingDay)
Remove a closing day
|
static void |
saveClosingDay(ClosingDay closingDay)
Save a closing day of a form
|
static void |
saveClosingDay(int nIdForm,
LocalDate closingDate)
Save a closing day of a form
|
static void |
saveListClosingDay(int nIdForm,
List<LocalDate> listClosingDate)
Save the closing days of a form
|
public static List<LocalDate> findListDateOfClosingDayByIdFormAndDateRange(int nIdForm, LocalDate startingDate, LocalDate endingDate)
nIdForm - the form IdstartingDate - the starting dateendingDate - the ending datepublic static ClosingDay findClosingDayByIdFormAndDateOfClosingDay(int nIdForm, LocalDate dateOfClosingDay)
nIdForm - the form Iddate - the datepublic static List<LocalDate> findListDateOfClosingDayByIdForm(int nIdForm)
nIdForm - the form Idpublic static List<ClosingDay> findListClosingDay(int nIdForm)
nIdForm - the form idpublic static void saveListClosingDay(int nIdForm,
List<LocalDate> listClosingDate)
nIdForm - the form idlistClosingDate - the closing dates to savepublic static void saveClosingDay(int nIdForm,
LocalDate closingDate)
nIdForm - the form IdclosingDate - the closing datepublic static void saveClosingDay(ClosingDay closingDay)
closingDay - the closing day to savepublic static void removeClosingDay(ClosingDay closingDay)
closingDay - the closing day to removepublic static List<LocalDate> getImportClosingDays(org.apache.commons.fileupload.FileItem item) throws IOException
item - the file in inputIOException - if error during reading fileCopyright © 2023 City of Paris. All rights reserved.