Class SubstitutionPeriod
- All Implemented Interfaces:
Serializable
A substitution is automatically activated during a time period if
SubstitutionSettings.activatePeriodsAutomatically
is set to true.
A time period always needs a start date, this date must not be in the past. The earliest start
date is the current day to start a substitution immediately.
The end date can be set, then the last day of the substitution is the end date (inclusive). It
can also be left empty to have an open end for a substitution.
A active substitution based on a time period can only be disabled by deleting the corresponding SubstitutionPeriod.
- Since:
- 12.00.000.002
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
End date of a substitution period (inclusive).protected String
Start date of a substitution period (inclusive)protected String
GUID of the correspondingSubstitution
.Fields inherited from class byps.BValueClass
bypsClient, changedMembers, dbHelper, FLAG_SEALED, flags
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
void
setEndIsodate
(String endIsodate) void
setStartIsodate
(String startIsodate) void
setSubstitutionGuid
(String substitutionGuid) toString()
Methods inherited from class byps.BValueClass
getBypsClient, getChangedMembers, getDbHelper, isChangedMember, isSealed, seal, seal, setBypsClient, setChangedMember, setChangedMembers, setDbHelper
-
Field Details
-
substitutionGuid
GUID of the correspondingSubstitution
. Read-only.- Since:
- 12.00.000.002
-
startIsodate
Start date of a substitution period (inclusive)
A start date must always be set.
Date format must be either 'yyyyMMdd' or 'yyyyMMddHHmmss'. If only a date ('yyyyMMdd') is provided, it is adjusted to 'yyyyMMdd000000' to match the beginning of a day.
Dates are always committed and returned in the client's time zone.
-
endIsodate
End date of a substitution period (inclusive).
If this value if empty, the substitution never ends.
Date format must be either 'yyyyMMdd' or 'yyyyMMddHHmmss'. If only a date ('yyyyMMdd') is provided, it is adjusted to 'yyyyMMdd235959' to match the end of a day.
Dates are always committed and returned in the client's time zone.
-
-
Constructor Details
-
SubstitutionPeriod
public SubstitutionPeriod() -
SubstitutionPeriod
-
-
Method Details