Class CrewShellDailyPlanCreator
java.lang.Object
overit.geocallapp.utilities.core.data.DynOCreator<BOCrewShellDailyPlan>
overit.geocallapp.wfm.core.bl.crewshell.dailyplan.task.CrewShellDailyPlanCreator
Class that defines the creator for a
BOCrewShellDailyPlan.- Since:
- 16.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildCrewShellCompositionMismatchMap(Map<Long, Date> workshiftStartByCrewShell, Date startDate, Date endDate, PoolKit poolKit) protected static Map<Long, List<CrewShellMember>> protected static voidbuildUserRoles(Map<Long, List<CrewShellMember>> crewShellMembers, BOCache<BORole> roleCache, PoolKit poolKit) protected static voidbuildUserSkills(Map<Long, List<CrewShellMember>> crewShellMembers, BOCache<BOSkill> skillCache, PoolKit poolKit) protected Map<Long, List<CrewShellMember>> getUsers(Map<Long, List<CrewShellMember>> crewShellMembers) Creates aDynOobject of type T from the provided values map.static CrewShellDailyPlanCreatormakeCreator(PoolKit poolKit) Returns the specific creator for theBOCrewShellDailyPlanentity.static CrewShellDailyPlanCreatormakeCreator(PoolKit poolKit, Date startDate, Date endDate, Long simulationId, Map<Long, Date> workshiftStartByCrewShell) protected voidsetCompositionMismatchByCrewShellId(Map<Long, Boolean> compositionMismatchByCrewShellId) protected voidsetCrewShellMembersByCrewShellId(Map<Long, List<CrewShellMember>> crewShellMembersByCrewShellId) protected voidsetCrewShellSkillsByCrewShellId(Map<Long, List<BOSkill>> skillsByCrewShellId) protected voidsetPoolKit(PoolKit poolKit) Methods inherited from class overit.geocallapp.utilities.core.data.DynOCreator
getClassResolver, initialize, setClassResolver
-
Field Details
-
crewShellMembersByCrewShellId
-
skillsByCrewShellId
-
compositionMismatchByCrewShellId
-
-
Constructor Details
-
CrewShellDailyPlanCreator
public CrewShellDailyPlanCreator()
-
-
Method Details
-
makeCreator
Returns the specific creator for theBOCrewShellDailyPlanentity.- Parameters:
poolKit- thePoolKit- Returns:
- the crew shell daily plan creator
-
makeCreator
-
setPoolKit
-
setCrewShellMembersByCrewShellId
protected void setCrewShellMembersByCrewShellId(Map<Long, List<CrewShellMember>> crewShellMembersByCrewShellId) -
getCrewShellMembersByCrewShellId
-
setCrewShellSkillsByCrewShellId
-
setCompositionMismatchByCrewShellId
-
getSkillCache
-
getRoleCache
-
make
Description copied from class:DynOCreatorCreates aDynOobject of type T from the provided values map. Implementation-specific logic determines how the values are used to construct the object.- Specified by:
makein classDynOCreator<BOCrewShellDailyPlan>- Parameters:
values- the map of values to use for object creation- Returns:
- the
DynOobject of type T
-
buildCrewShellMembersMap
protected static Map<Long,List<CrewShellMember>> buildCrewShellMembersMap(Set<Long> crewShells, Date startDate, Date endDate, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
buildCrewShellSkillsMap
-
buildCrewShellCompositionMismatchMap
protected static Map<Long,Boolean> buildCrewShellCompositionMismatchMap(Map<Long, Date> workshiftStartByCrewShell, Date startDate, Date endDate, PoolKit poolKit) throws DAException, DAValidateException- Throws:
DAExceptionDAValidateException
-
buildUserSkills
protected static void buildUserSkills(Map<Long, List<CrewShellMember>> crewShellMembers, BOCache<BOSkill> skillCache, PoolKit poolKit) throws DAException, DAValidateException- Throws:
DAExceptionDAValidateException
-
buildUserRoles
protected static void buildUserRoles(Map<Long, List<CrewShellMember>> crewShellMembers, BOCache<BORole> roleCache, PoolKit poolKit) throws DAException, DAValidateException- Throws:
DAExceptionDAValidateException
-
getUsers
-