public class ClosedDateChecker
extends java.lang.Object
Constructor and Description |
---|
ClosedDateChecker() |
Modifier and Type | Method and Description |
---|---|
static void |
checkDatesForDelete(java.util.Calendar closedDate,
java.util.Calendar dateFrom)
Для любых сущностей.
|
static void |
checkDatesForDelete(java.util.Calendar closedDate,
java.util.Date date) |
static void |
checkDatesForDelete(java.util.Calendar closedDate,
java.time.LocalDate date) |
static void |
checkDatesForUpdate(java.util.Calendar closedDate,
java.util.Calendar date,
java.util.Calendar newDate)
Для сущностей с одной датой формирования
|
static void |
checkDatesForUpdate(java.util.Calendar closedDate,
java.util.Calendar dateFrom,
java.util.Calendar dateTo,
java.util.Calendar newDateFrom,
java.util.Calendar newDateTo)
Для сущностей с периодом
|
static void |
checkDatesForUpdate(java.util.Calendar closedDate,
java.util.Date date,
java.util.Date newDate) |
static void |
checkDatesForUpdate(java.util.Calendar closedDate,
java.util.Date dateFrom,
java.util.Date dateTo,
java.util.Date newDateFrom,
java.util.Date newDateTo) |
static void |
checkDatesForUpdate(java.util.Calendar closedDate,
java.time.LocalDate date,
java.time.LocalDate newDate) |
java.util.Calendar |
getClosePeriodDate(int typeId) |
static java.util.Calendar |
getClosePeriodDateIfChecking(java.lang.String key,
int mid,
int userId) |
static ClosedDateChecker |
getInstance() |
void |
setClosePeriodDate(int typeId,
java.util.Date dt) |
public static ClosedDateChecker getInstance()
public java.util.Calendar getClosePeriodDate(int typeId)
public void setClosePeriodDate(int typeId, java.util.Date dt)
public static java.util.Calendar getClosePeriodDateIfChecking(java.lang.String key, int mid, int userId)
public static void checkDatesForDelete(java.util.Calendar closedDate, java.util.Date date) throws ru.bitel.bgbilling.common.BGMessageException
ru.bitel.bgbilling.common.BGMessageException
public static void checkDatesForDelete(java.util.Calendar closedDate, java.time.LocalDate date) throws ru.bitel.bgbilling.common.BGMessageException
ru.bitel.bgbilling.common.BGMessageException
public static void checkDatesForDelete(java.util.Calendar closedDate, java.util.Calendar dateFrom) throws ru.bitel.bgbilling.common.BGMessageException
dateFrom
- левая границаru.bitel.bgbilling.common.BGMessageException
- если изменение нельзя производитьpublic static void checkDatesForUpdate(java.util.Calendar closedDate, java.util.Date dateFrom, java.util.Date dateTo, java.util.Date newDateFrom, java.util.Date newDateTo) throws ru.bitel.bgbilling.common.BGMessageException
ru.bitel.bgbilling.common.BGMessageException
public static void checkDatesForUpdate(java.util.Calendar closedDate, java.util.Date date, java.util.Date newDate) throws ru.bitel.bgbilling.common.BGMessageException
ru.bitel.bgbilling.common.BGMessageException
public static void checkDatesForUpdate(java.util.Calendar closedDate, java.time.LocalDate date, java.time.LocalDate newDate) throws ru.bitel.bgbilling.common.BGMessageException
ru.bitel.bgbilling.common.BGMessageException
public static void checkDatesForUpdate(java.util.Calendar closedDate, java.util.Calendar dateFrom, java.util.Calendar dateTo, java.util.Calendar newDateFrom, java.util.Calendar newDateTo) throws ru.bitel.bgbilling.common.BGMessageException
dateFrom
- старая левая датаdateTo
- старая права датаnewDateFrom
- новая левая датаnewDateTo
- новая права датаru.bitel.bgbilling.common.BGMessageException
- если изменение нельзя производитьpublic static void checkDatesForUpdate(java.util.Calendar closedDate, java.util.Calendar date, java.util.Calendar newDate) throws ru.bitel.bgbilling.common.BGMessageException
date
- newDate
- ru.bitel.bgbilling.common.BGMessageException