Class AllocateTechnicians
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocall.basic.ui.container.Panel
overit.geocallapp.wfm.core.ux.crewshell.composition.allocatetechnician.AllocateTechnicians
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,AjaxableComponent,Badgeable,Hideable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
Panel used for the insertion of a
BOCrewShellDraftComposition object, which associates BOSchedulingUser objects with a given BOCrewShell object.
It should be noted that the composition of BOCrewShell object varies according to a specific day.- Since:
- 16.0
- See Also:
- GCApi:
- controller
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.ui.Component
Component.Configurable, Component.ConfigurableAttribute, Component.ConfigurableAttributes, Component.FilterCriteria, Component.Registry -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BOCrewShellprotected Formprotected SubmitButtonprotected ServerTableViewAllocateTechniciansprotected CrewShellDraftCompositionServerTableViewprotected BOCache<BOWorkShift> Fields inherited from class overit.geocall.basic.ui.container.Panel
_align, _appear, _height, _maxHeight, _maxWidth, _minHeight, _minWidth, _modal, _moveable, _obj, _titleClosable, _type, _valign, _visible, _widthFields inherited from class overit.geocall.basic.ui.Container
_rofields, _rules, DALINK_NO, DALINK_YES, DATE_MAX, DATE_MIN, TIME_MAX, TIME_MIN, TYPE_ACTION, TYPE_BOOLEAN, TYPE_DATE, TYPE_DOUBLE, TYPE_DTZ, TYPE_EURO, TYPE_FILE, TYPE_FILES, TYPE_INTEGER, TYPE_LONG, TYPE_LONGARRAY, TYPE_MAP, TYPE_MAXDATE, TYPE_MAXTIME, TYPE_MEASURE, TYPE_MINDATE, TYPE_MINTIME, TYPE_NEWACTION, TYPE_STRING, TYPE_STRINGARRAY, TYPE_SUBSET, TYPE_SUBSETRANGE, TYPE_SUPPORT, TYPE_TIMERANGEFields inherited from class overit.geocall.ui.Control
_blank, _cleaner, _dblink, _enabled, _ro, _title, altEventIconsList, altIcon, ariaDescription, ariaLabel, badge, badgeformat, FILTER_PREFIXES, LABEL_ATTRIBUTE, LABEL_IN_LINE_ATTRIBUTE, STATE_BLANK, STATE_NORMAL, STATE_RO, STATE_ROBLANKFields inherited from class overit.geocall.ui.Component
_basic, _childrenContainers, _currentId, _gridalign, _gridcols, _gridrows, _gridvalign, _iconElement, _id, _keylabel, _label, _layoutName, _name, _parentContainer, _registryName, _shortcut, _tabindex, _transformations, _valuesContainer, aliasField, BR, configHidden, configuredLabel, configuredLabelInLine, defaultHidden, ELEMENT_BR, ELEMENT_NULL, entityContainer, entityName, extendedField, fullHeight, important, labelInLine, layoutLabel, PIXEL_IMG, safeInlineServiceFields inherited from interface overit.geocall.ui.AjaxableComponent
FRAME_ID_PREFIX, NOTRANSITION, TRANSITION_BODY_MORPH, TRANSITION_BODY_RESIZE, TRANSITION_BORDER_RESIZE, TRANSITION_DOWN, TRANSITION_UP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyUserOnShiftFilters(Map<String, Object> filters) Applies the right SQL clauses if theInputCheckBoxcomponent having name="with_defined_shifts" is checked.protected Optional<BOCrewShellShift> getCrewShellWorkshift(Long crewShell, Date day) getResourcesWithOverlappingCrewShellWorkshifts(BOCrewShellShift crewShellWorkshift) getResourcesWithOverlappingNextDayWorkshifts(BOCrewShellShift crewShellWorkshift) protected voidinit()protected voidInitializes theBOCacheobjects for each business object.protected voidinsertTechnicians(Collection<Long> userIDs) Inserts a newBOCrewShellDraftCompositionobject, which represents the association between a givenBOCrewShellobject and a collection ofBOSchedulingUserobjects.booleanUI event handler to confirm the selection ofBOSchedulingUserobjects for the givenBOCrewShellobject.booleanUI event handler to confirm the insertion of n+1BOCrewShellDraftCompositionobjects for the givenBOCrewShellobject having n size.voidMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat contains the Container.booleanUI event handler to searchBOSchedulingUserobjects from a given OC (i.e., Operation Center).protected voidrefreshServerTableView(Map<String, Object> filters) Refreshes theServerTableViewAllocateTechniciansstvAllocateTechnicians.retrieveAlreadyAssignedUserIDs(BOCrewShell crewShell) Retrieves the combined list of the IDs of theBOSchedulingUserobjects (i.e., users) to be excluded from the search.protected List<BOWorkShift> retrieveCrewShellConfirmedUserIDs(BOCrewShell crewShell) Retrieves the list of the IDs of theBOSchedulingUserobjects (i.e., users) to be excluded from the search.retrieveCrewShellDraftUserIDs(BOCrewShell crewShell) Retrieves the list of the IDs of theBOSchedulingUserobjects (i.e., users) to be excluded from the search.protected List<BOCrewShellDraftComposition> retrieveCrewShellTechnicians(BOCrewShell crewShell) Retrieves the list of theBOCrewShellDraftCompositionobjects related to theBOCrewShellobject.Retrieves the list of theBOSkillobjects related to eachBOSchedulingUserobject.retrieveCrewShellUserIDs(BOCrewShell crewShell) Retrieves the list of the IDs of theBOSchedulingUserobjects (i.e., users) to be excluded from the search.retrieveFixedTeamUserIDs(BOCrewShell crewShell) Retrieves the list of the IDs of theBOSchedulingUserobjects (i.e., users) to be excluded from the search.retrieveMissingCrewShellSkillIDs(BOCrewShell crewShell) Retrieves the list of the IDs of the missing_skills, or rather, the list of the IDs of the required_skills with the exclusion of the FSM skills' IDs related to theBOCrewShellDraftCompositionobjects.Retrieves the list of the descriptions of the missing_skills, or rather, the list of the descriptions of the required_skills with the exclusion of the FSM skills' descriptions related to theBOCrewShellDraftCompositionobjects.retrieveRealUserIDs(BOCrewShell crewShell) Retrieves the list of the IDs of the realBOSchedulingUserobjects (i.e., users) which belong to the specified OC (i.e., operation center).retrieveRequiredSkillDescriptions(BOCrewShell crewShell) Retrieves the list of the values of the description field for eachBOSkillobject related to the retrievedBOCrewShellSkillobjects.protected List<BOCrewShellSkill> retrieveRequiredSkills(BOCrewShell crewShell) Retrieves the list of the required_skills, or rather, the list of theBOCrewShellSkillobjects related to the givenBOCrewShellobject.protected List<BOWorkShift> retrieveResourceWorkShifts(BOCrewShell crewShell) Retrieves the list of theBOWorkShiftobjects by filtering them byDateday and OC (i.e., operation center).protected List<BOScheduling> retrieveSchedulingsByWorkShifts(List<Long> workShiftIDs) Retrieves the list of the not cancelledBOSchedulingobjects by filtering them byBOWorkShiftobjects' IDs.retrieveUserOnShiftIDs(BOCrewShell crewShell) Retrieves the list of the IDs of theBOSchedulingUserobjects (i.e., users) which belong to the specified OC (i.e., operation center) and have an associatedBOWorkShiftobject (i.e., a shift) for the specifiedDateday.retrieveUserWithAssignedSchedulingIDs(BOCrewShell crewShell) Retrieves the list of the IDs of theBOSchedulingUserobjects (i.e., users) to be excluded from the search.retrieveWorkingTeamIDs(BOCrewShell crewShell) Retrieves the list of the IDs of the activeBOWorkingTeamobjects (i.e., working teams or fixed teams), filtering them by OC (i.e., operation center).retrieveWorkingTeamShiftIDs(BOCrewShell crewShell) Retrieves the list of the IDs of theBOTeamShiftobjects (i.e., working team shifts), filtering them byDateday and by retrievedBOWorkingTeamobjects.voidSets the day.voidshow(Serializable obj) It shows (make visible with the pop-up effect) the panelprotected voidUI event handler to display the Warning Alert.Methods inherited from class overit.geocall.basic.ui.container.Panel
buildSetupScript, changed, getDefaultChange, getFrameHtml, getHtml, getTitleDiv, hide, isVisible, onClose, onHide, perfectsDim, setALIGN, setHEIGHT, setMAXHEIGHT, setMAXWIDTH, setMINHEIGHT, setMINWIDTH, setMODAL, setMOVEABLE, setTITLECLOSABLE, setTYPE, setup, setVALIGN, setVISIBLE, setWIDTH, show, show, show, show, show, show, show, show, show, show, show, show, show, titlePanelMethods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, getRO, getROField, onClose, onOpenChildContainer, onRestore, onRule, prepareName, rulesNewValues, setROField, setValues, setValuesMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getCleaner, getConfigurableProperties, getDAValues, getDBLINK, getKEYLABEL, getLABEL, getState, getTITLE, getValues, getWM, isEnabled, isEnabledBasedOnFunction, isFunctionEnabled, isImportant, isRoBasedOnFunction, nameWithNoFilterPrefix, setALTEVENTICON, setALTICON, setARIADESCRIPTION, setARIALABEL, setBADGEFORMAT, setBADGEVALUE, setBLANK, setCLEANER, setConfiguredProperty, setDBLINK, setENABLED, setFUNCTION, setModelProperties, setRO, setTitle, setTITLEMethods inherited from class overit.geocall.ui.Component
adapt, ajaxQuery, appendAttribute, buildDisplayScript, calcKeyLabel, calcLabel, calcShortcut, canBeConfigured, changed, clearConfiguredProperties, componentIterator, componentSize, connect, containerIterator, createAjaxFrame, deprecate, fillSetupScript, generateFlexableFullHeightContainer, generateId, getBoolean, getBoolean, getChildrenComponents, getChildrenContainers, getDefaultLabel, getDefaultLayoutLabel, getEntityContainer, getEntityName, getFullHeight, getGridAlign, getGridCols, getGridRows, getGridVAlign, getHtmlLabel, getHtmlLabel, getIcon, getId, getIdentity, getint, getLayoutLabel, getLayoutName, getNAME, getParentComponent, getParentContainer, getPublishedChildrenList, getRegistryName, getSHORTCUT, getTabIndex, getTeacher, getValuesContainer, getWindow, initChilds, isActivable, isActive, isAliasField, isConfigHidden, isDefaultHidden, isExtendedField, isLabelInLine, onInit, setActivable, setActive, setAliasField, setBASIC, setConfigHidden, setDEFAULTHIDDEN, setEntityName, setExtendedField, setFULLHEIGHT, setGRIDALIGN, setGRIDCOLS, setGRIDROWS, setGRIDVALIGN, setICON, setIdentity, setIMPORTANT, setLabel, setLABEL, setLABELINLINE, setLAYOUTLABEL, setLAYOUTNAME, setNAME, setREGISTRYNAME, setTooltip, setValuesContainer, stringForJs, tabIndexerMethods inherited from class overit.geocall.platform.ui.UINode
addChild, addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.ui.Badgeable
badgeFormat, makeBadgedIconMethods inherited from interface overit.geocall.ui.Hideable
getVISIBLE
-
Field Details
-
fAllocateTechnicians
-
stvAllocateTechnicians
-
techniciansTable
-
sbAddTechniciansFromOC
-
crewShell
-
skillBOCache
-
workShiftBOCache
-
-
Constructor Details
-
AllocateTechnicians
public AllocateTechnicians()
-
-
Method Details
-
onOpen
Description copied from class:ContainerMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat contains the Container. It calls the onOpen(o) method of all the Container's childrens.
If a page is opened through the process of a route, it is possible that the route was called with params to pass to the page.
The route params could be passed specifying them like query string's param on the url, using commas or the '=' character, to separate the keys and the values. Valid syntaxs are: "¶ms=KEY1,VAL1,KEY2,VAL2" or "¶ms=KEY1=VAL1,KEY2=VAL2"
In that case it is possible to retrieve those params via theWindowManager.getRouteParams()method that returns anHashGetterwith the params passed as parameters.
For example it's possible to retrieve and use the params in this way:HashGetter hg = getWM().getRouteParams();
String val1 = hg.getString("key1",null);
String val2 = hg.getString("key2",null); -
init
protected void init() -
show
Description copied from class:PanelIt shows (make visible with the pop-up effect) the panel -
setDay
Sets the day. Remember that the composition ofBOCrewShellobject varies according to a specific day.- Parameters:
day- the selected day- See Also:
-
initCache
protected void initCache()Initializes theBOCacheobjects for each business object. -
onSearchTechniciansFromOC
UI event handler to searchBOSchedulingUserobjects from a given OC (i.e., Operation Center).- Parameters:
uim- theUIMessagenode- Returns:
- true to break the responsibility chain, false otherwise
- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
onAllocateTechnicians
UI event handler to confirm the selection ofBOSchedulingUserobjects for the givenBOCrewShellobject.- Parameters:
uim- theUIMessagenode- Returns:
- true to break the responsibility chain, false otherwise
-
showTechniciansSelectionAlert
protected void showTechniciansSelectionAlert()UI event handler to display the Warning Alert. -
onConfirmTechniciansAllocation
public boolean onConfirmTechniciansAllocation(UIMessage uim) throws DAValidateException, DAException UI event handler to confirm the insertion of n+1BOCrewShellDraftCompositionobjects for the givenBOCrewShellobject having n size.- Parameters:
uim- theUIMessagenode- Returns:
- true to break the responsibility chain, false otherwise
- Throws:
DAValidateExceptionDAException
-
insertTechnicians
Inserts a newBOCrewShellDraftCompositionobject, which represents the association between a givenBOCrewShellobject and a collection ofBOSchedulingUserobjects. Remember that the composition ofBOCrewShellobject varies according to a specific day.- Parameters:
userIDs- the collection ofBOSchedulingUserobjects' IDs- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
refreshServerTableView
protected void refreshServerTableView(Map<String, Object> filters) throws DAValidateException, DAExceptionRefreshes theServerTableViewAllocateTechniciansstvAllocateTechnicians. If the InputCheckBox tag having name="with_missing_skills" has been checked on UI interface, it displays theBOSchedulingUserobjects which have at least one of theBOSkillobject of theOutputtag having name = "missing_skills". If the InputCheckBox tag having name="with_defined_shifts" has been checked on UI interface, it displays theBOSchedulingUserobjects which have an associatedBOWorkShiftobject (i.e., a shift) for the specifiedDateday. It does not display theBOSchedulingUserobjects having certain conditions.- Parameters:
filters- the filters that are applied to the search- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveRequiredSkills
protected List<BOCrewShellSkill> retrieveRequiredSkills(BOCrewShell crewShell) throws DAValidateException, DAException Retrieves the list of the required_skills, or rather, the list of theBOCrewShellSkillobjects related to the givenBOCrewShellobject.- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the
BOCrewShellSkillobjects related to the givenBOCrewShellobject - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveRequiredSkillDescriptions
protected List<String> retrieveRequiredSkillDescriptions(BOCrewShell crewShell) throws DAValidateException, DAException Retrieves the list of the values of the description field for eachBOSkillobject related to the retrievedBOCrewShellSkillobjects.- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the values of the description field for each
BOSkillobject related to the retrievedBOCrewShellSkillobjects - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveCrewShellTechnicians
protected List<BOCrewShellDraftComposition> retrieveCrewShellTechnicians(BOCrewShell crewShell) throws DAValidateException, DAException Retrieves the list of theBOCrewShellDraftCompositionobjects related to theBOCrewShellobject.- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the
BOCrewShellDraftCompositionobjects related to theBOCrewShellobject - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveCrewShellTechniciansSkills
protected List<BOSkill> retrieveCrewShellTechniciansSkills(Long userId) throws DAValidateException, DAException Retrieves the list of theBOSkillobjects related to eachBOSchedulingUserobject.- Parameters:
userId- theBOSchedulingUserobject's id field- Returns:
- the list of the
BOSkillobjects related to eachBOSchedulingUserobject - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveMissingCrewShellSkillIDs
protected List<Long> retrieveMissingCrewShellSkillIDs(BOCrewShell crewShell) throws DAValidateException, DAException Retrieves the list of the IDs of the missing_skills, or rather, the list of the IDs of the required_skills with the exclusion of the FSM skills' IDs related to theBOCrewShellDraftCompositionobjects.- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the IDs of the required_skills with the exclusion of the FSM skills' IDs related to the
BOCrewShellDraftCompositionobjects - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveMissingCrewShellSkillsDescriptions
protected List<String> retrieveMissingCrewShellSkillsDescriptions(BOCrewShell crewShell) throws DAValidateException, DAException Retrieves the list of the descriptions of the missing_skills, or rather, the list of the descriptions of the required_skills with the exclusion of the FSM skills' descriptions related to theBOCrewShellDraftCompositionobjects.- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the descriptions of the required_skills with the exclusion of the FSM skills' descriptions related to the
BOCrewShellDraftCompositionobjects - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveCrewShellUserIDs
protected List<Long> retrieveCrewShellUserIDs(BOCrewShell crewShell) throws DAValidateException, DAException Retrieves the list of the IDs of theBOSchedulingUserobjects (i.e., users) to be excluded from the search. The users to be excluded are those already assigned, for the selectedDateday and OC (i.e., operation center), to anyBOCrewShellobject.- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the IDs of the
BOSchedulingUserobjects to be excluded from the search - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveCrewShellDraftUserIDs
protected List<Long> retrieveCrewShellDraftUserIDs(BOCrewShell crewShell) throws DAException, DAValidateException Retrieves the list of the IDs of theBOSchedulingUserobjects (i.e., users) to be excluded from the search. The users to be excluded are those which are associated, for the selectedDateday and OC (i.e., operation center), to anyBOCrewShellDraftCompositionobject (i.e., draft composition) related to anyBOCrewShellobject.- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the IDs of the
BOSchedulingUserobjects to be excluded from the search - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveCrewShellConfirmedUserIDs
protected List<Long> retrieveCrewShellConfirmedUserIDs(BOCrewShell crewShell) throws DAException, DAValidateException Retrieves the list of the IDs of theBOSchedulingUserobjects (i.e., users) to be excluded from the search. The users to be excluded are those which are associated, for the selectedDateday and OC (i.e., operation center), to anyBOCrewShellCompositionobject (i.e., confirmed composition) related to anyBOCrewShellobject.- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the IDs of the
BOSchedulingUserobjects to be excluded from the search - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveWorkingTeamIDs
protected List<Long> retrieveWorkingTeamIDs(BOCrewShell crewShell) throws DAValidateException, DAException Retrieves the list of the IDs of the activeBOWorkingTeamobjects (i.e., working teams or fixed teams), filtering them by OC (i.e., operation center). The list only containsBOWorkingTeamobjects whose cardinality is greater than one, or rather, it does not contain unary teams.- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the IDs of the active
BOWorkingTeamobjects (i.e., working teams or fixed teams) having cardinality greater than one - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveWorkingTeamShiftIDs
protected List<Long> retrieveWorkingTeamShiftIDs(BOCrewShell crewShell) throws DAValidateException, DAException Retrieves the list of the IDs of theBOTeamShiftobjects (i.e., working team shifts), filtering them byDateday and by retrievedBOWorkingTeamobjects.- Parameters:
crewShell- theBOCrewShellobject- Returns:
- workingTeamIDs the list of the IDs of the
BOTeamShiftobjects (i.e., working team shifts) - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveFixedTeamUserIDs
protected List<Long> retrieveFixedTeamUserIDs(BOCrewShell crewShell) throws DAValidateException, DAException Retrieves the list of the IDs of theBOSchedulingUserobjects (i.e., users) to be excluded from the search. The users to be excluded are those already assigned, for the selectedDateday and OC (i.e., operation center), to a givenBOTeamShiftResourceobject, provided it is active.- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the IDs of the
BOSchedulingUserobjects (i.e., fixed team users) - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveResourceWorkShifts
protected List<BOWorkShift> retrieveResourceWorkShifts(BOCrewShell crewShell) throws DAValidateException, DAException Retrieves the list of theBOWorkShiftobjects by filtering them byDateday and OC (i.e., operation center).- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the
BOWorkShiftobjects retrieved byDateday and OC (i.e., operation center) - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveCancelledBecauseInCrewShellWorkShifts
protected List<BOWorkShift> retrieveCancelledBecauseInCrewShellWorkShifts(BOCrewShell crewShell) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
retrieveSchedulingsByWorkShifts
protected List<BOScheduling> retrieveSchedulingsByWorkShifts(List<Long> workShiftIDs) throws DAValidateException, DAException Retrieves the list of the not cancelledBOSchedulingobjects by filtering them byBOWorkShiftobjects' IDs.- Parameters:
workShiftIDs- the list of theBOWorkShiftobjects retrieved byDateday and OC (i.e., operation center)- Returns:
- the list of the not cancelled
BOSchedulingobjects retrieved byBOWorkShiftobjects' IDs - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveUserWithAssignedSchedulingIDs
protected List<Long> retrieveUserWithAssignedSchedulingIDs(BOCrewShell crewShell) throws DAValidateException, DAException Retrieves the list of the IDs of theBOSchedulingUserobjects (i.e., users) to be excluded from the search. The users to be excluded are those which, for the selectedDateday and OC (i.e., operation center), have a givenBOWorkShiftobject associated with a not cancelledBOSchedulingobject, (or rather, the users which have a scheduling in their work shifts).- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the IDs of the users which, for the selected
Dateday and OC (i.e., operation center), have a givenBOWorkShiftobject associated with a not cancelledBOSchedulingobject - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveAlreadyAssignedUserIDs
protected List<Long> retrieveAlreadyAssignedUserIDs(BOCrewShell crewShell) throws DAValidateException, DAException Retrieves the combined list of the IDs of theBOSchedulingUserobjects (i.e., users) to be excluded from the search. The users to be excluded are those already assigned, for the selectedDateday and OC (i.e., operation center), to a givenBOTeamShiftResourceobject or a givenBOCrewShellobject. The users to be excluded are those which, for the selectedDateday and OC (i.e., operation center), have a givenBOWorkShiftobject associated with a not cancelledBOSchedulingobject, (or rather, the users which have a scheduling in their work shifts).- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the IDs of the
BOSchedulingUserobjects to be excluded from the search - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveUserOnShiftIDs
protected List<Long> retrieveUserOnShiftIDs(BOCrewShell crewShell) throws DAValidateException, DAException Retrieves the list of the IDs of theBOSchedulingUserobjects (i.e., users) which belong to the specified OC (i.e., operation center) and have an associatedBOWorkShiftobject (i.e., a shift) for the specifiedDateday.- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the IDs of the
BOSchedulingUserobjects (i.e., users) which belong to the specified OC (i.e., operation center) and have an associatedBOWorkShiftobject (i.e., a shift) for the specifiedDateday - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
retrieveRealUserIDs
protected List<Long> retrieveRealUserIDs(BOCrewShell crewShell) throws DAValidateException, DAException Retrieves the list of the IDs of the realBOSchedulingUserobjects (i.e., users) which belong to the specified OC (i.e., operation center).- Parameters:
crewShell- theBOCrewShellobject- Returns:
- the list of the IDs of the real
BOSchedulingUserobjects (i.e., users) which belong to the specified OC (i.e., operation center) - Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
applyUserOnShiftFilters
protected void applyUserOnShiftFilters(Map<String, Object> filters) throws DAValidateException, DAExceptionApplies the right SQL clauses if theInputCheckBoxcomponent having name="with_defined_shifts" is checked. Note that the component is checked by default.- Parameters:
filters- theMapobject containing the filters- Throws:
DAValidateException- if there is a data validation exceptionDAException- if a genericExceptionobject is thrown
-
getCrewShellWorkshift
protected Optional<BOCrewShellShift> getCrewShellWorkshift(Long crewShell, Date day) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getResourcesWithOverlappingCrewShellWorkshifts
protected List<Long> getResourcesWithOverlappingCrewShellWorkshifts(BOCrewShellShift crewShellWorkshift) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
getResourcesWithOverlappingNextDayWorkshifts
protected List<Long> getResourcesWithOverlappingNextDayWorkshifts(BOCrewShellShift crewShellWorkshift) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-