Dates

An instance of the forvendi.BreezzApi.BreezzDates class which provides methods operating on dates.


validateDateRangesOverlap(DateRangeOverlapValidator.DateRange[] newList, DateRangeOverlapValidator.DateRange[] oldList, DateRangeOverlapValidator.DateRangeComparator dateRangeComparator)

Validates two Date Range lists

Signature:

forvendi.BreezzApi.DATES.validateDateRangesOverlap(DateRangeOverlapValidator.DateRange[] newList, DateRangeOverlapValidator.DateRange[] oldList, DateRangeOverlapValidator.DateRangeComparator dateRangeComparator);

Parameters:

  • newList - new records (records that will be validated)
  • oldList - existing records
  • dateRangeComparator - custom data range comparator

Return Value:

List of overlapping date ranges


validateDateRangesOverlap(DateRangeOverlapValidator.DateRange[] newList, DateRangeOverlapValidator.DateRange[] oldList)

Validates two Date Range lists

Signature:

forvendi.BreezzApi.DATES.validateDateRangesOverlap(DateRangeOverlapValidator.DateRange[] newList, DateRangeOverlapValidator.DateRange[] oldList);

Parameters:

  • newList - new records (records that will be validated)
  • oldList - existing records

Return Value:

List of overlapping date ranges


validateDateRangesOverlap(SObject[] newList, SObject[] oldList, SObjectField startDateField, SObjectField endDateField, DateRangeOverlapValidator.DateRangeComparator dateRangeComparator)

Validates two Date Range lists

Signature:

forvendi.BreezzApi.DATES.validateDateRangesOverlap(SObject[] newList, SObject[] oldList, SObjectField startDateField, SObjectField endDateField, DateRangeOverlapValidator.DateRangeComparator dateRangeComparator);

Parameters:

  • newList - new records (records that will be validated)
  • oldList - existing records
  • startDateField - sobject field that determines the date start date
  • endDateField - sobject field that determines the date end date
  • dateRangeComparator - custom data range comparator

Return Value:

List of overlapping date ranges


validateDateRangesOverlap(SObject[] newList, SObject[] oldList, SObjectField startDateField, SObjectField endDateField)

Validates two Date Range lists

Signature:

forvendi.BreezzApi.DATES.validateDateRangesOverlap(SObject[] newList, SObject[] oldList, SObjectField startDateField, SObjectField endDateField);

Parameters:

  • newList - new records (records that will be validated)
  • oldList - existing records
  • startDateField - sobject field that determines the date start date
  • endDateField - sobject field that determines the date end date

Return Value:

List of overlapping date ranges