Class ForwardSubstitutionInfo
- All Implemented Interfaces:
Serializable
A substitution can either be forwarded or transfered.
Forward a substitution: The original substitution is not altered. An additional
Substitution
object is created by copying the original one and setting the new
substitute.
- If
SubstitutionSettings.canBeActivatedManually
is set totrue
, an arbitrary number of SubstitutionPeriods (also 0) can be provided. The original ones are replaced with the new ones. - If
SubstitutionSettings.canBeActivatedManually
is set tofalse
, all provided SubstitutionPeriods must be sub-periods of the original ones.
Set transferSubstitution
to false to forward a substitution.
Transfer a substitution: A new Substitution
object is created by copying it from
the original one, only replacing the Substitution.substituteId
by the provided new
substitute. The original substitution is deleted. Set transferSubstitution
to true to
transfer a substitution.
- Since:
- 12.00.000.008
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Id of the new substitute.protected String
User name of the new substitute.protected String
GUID of substitution to be forwarded or transfered.protected List<SubstitutionPeriod>
New substitution periods is a substitution if forwarded.protected boolean
Define if the substitution should be forwarded or transfered.Fields inherited from class byps.BValueClass
bypsClient, changedMembers, dbHelper, FLAG_SEALED, flags
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
void
setNewSubstituteId
(int newSubstituteId) void
setNewSubstituteName
(String newSubstituteName) void
setSubstitutionGuid
(String substitutionGuid) void
setSubstitutionPeriods
(List<SubstitutionPeriod> substitutionPeriods) void
setTransferSubstitution
(boolean transferSubstitution) toString()
Methods inherited from class byps.BValueClass
getBypsClient, getChangedMembers, getDbHelper, isChangedMember, isSealed, seal, seal, setBypsClient, setChangedMember, setChangedMembers, setDbHelper
-
Field Details
-
substitutionGuid
GUID of substitution to be forwarded or transfered. -
newSubstituteId
protected int newSubstituteIdId of the new substitute.
This value is ignored if
newSubstituteName
is set. -
newSubstituteName
User name of the new substitute.
newSubstituteId
is ignored if this member is set. -
substitutionPeriods
New substitution periods is a substitution if forwarded.
Must be set if a substitution is forwarded (set
transferSubstitution
to false) and is ignored if a substitution if transfered (settransferSubstitution
to true) -
transferSubstitution
protected boolean transferSubstitutionDefine if the substitution should be forwarded or transfered.
-
-
Constructor Details
-
ForwardSubstitutionInfo
public ForwardSubstitutionInfo() -
ForwardSubstitutionInfo
-
-
Method Details
-
getSubstitutionGuid
-
setSubstitutionGuid
-
getNewSubstituteId
public int getNewSubstituteId() -
setNewSubstituteId
public void setNewSubstituteId(int newSubstituteId) -
getNewSubstituteName
-
setNewSubstituteName
-
getSubstitutionPeriods
-
setSubstitutionPeriods
-
isTransferSubstitution
public boolean isTransferSubstitution() -
setTransferSubstitution
public void setTransferSubstitution(boolean transferSubstitution) -
toString
-