Class TeamShiftValidator
java.lang.Object
overit.geocallapp.wfm.teams.rs1.teamshifts.TeamShiftValidator
- All Implemented Interfaces:
Validator<BOTeamShift>
Utility class to validate the relation between a
BOTeamShift and a BOTeam.- Since:
- 17.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the provided team's ID.static TeamShiftValidatorCreates an instance ofTeamShiftValidatorconfigured with the provided team's ID (passed as path parameter).voidSets the provided team's ID.voidvalidate(BOTeamShift teamShift) Validates aBOTeamShiftagainst the provided team's ID.
-
Constructor Details
-
TeamShiftValidator
public TeamShiftValidator()
-
-
Method Details
-
make
Creates an instance ofTeamShiftValidatorconfigured with the provided team's ID (passed as path parameter).- Parameters:
teamId- the provided team's ID.- Returns:
- teamValidator the
TeamShiftValidatorconfigured with the provided team's ID
-
getTeamId
Returns the provided team's ID.- Returns:
- teamId the provided team's ID
-
setTeamId
Sets the provided team's ID.- Parameters:
teamId- the provided team's ID
-
validate
Validates aBOTeamShiftagainst the provided team's ID.- Specified by:
validatein interfaceValidator<BOTeamShift>- Parameters:
teamShift- theBOTeamShiftto validate.- Throws:
DAValidateException- if the team's ID of the teamShift does not match the provided team's ID
-