Class CrewShellConfiguration

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Badgeable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

public class CrewShellConfiguration extends Container
Page used to manage the configuration of the BOCrewShell objects.
Since:
16.0
See Also:
GCApi:
controller
  • Field Details

  • Constructor Details

    • CrewShellConfiguration

      public CrewShellConfiguration()
  • Method Details

    • onOpen

      public void onOpen(Object o)
      Description copied from class: Container
      Method called when is executed the WindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object) of the Window that 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: "&params=KEY1,VAL1,KEY2,VAL2" or "&params=KEY1=VAL1,KEY2=VAL2"
      In that case it is possible to retrieve those params via the WindowManager.getRouteParams() method that returns an HashGetter with 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);
      Overrides:
      onOpen in class Container
      Parameters:
      o - Object received from the caller
    • prepareTabs

      protected void prepareTabs()
      Prepares the tabs of the page.
    • prepareCrewShellConfigurationTab

      protected void prepareCrewShellConfigurationTab()
      Prepares the first tab of the page.
    • prepareCrewShellActivationTab

      protected void prepareCrewShellActivationTab()
      Prepares the second tab of the page.
    • onSave

      public boolean onSave(UIMessage uim)
      UI event handler to save the BOCrewShellConfiguration object (i.e., the crew shell configuration).
      Parameters:
      uim - the UIMessage node
      Returns:
      true to break the responsibility chain, false otherwise
    • onConfirmOCsDeactivationForCrewShells

      public boolean onConfirmOCsDeactivationForCrewShells(UIMessage uim)
      UI event handler to confirm the activation or the deactivation of the BOCrewShell objects (i.e., crew shells) for each BOOperationCenter object (i.e., operation center).
      Parameters:
      uim - the UIMessage node
      Returns:
      true to break the responsibility chain, false otherwise
    • retrieveCrewShellConfigurations

      protected List<BOCrewShellConfiguration> retrieveCrewShellConfigurations()
      Retrieves the list containing the BOCrewShellConfiguration objects (i.e., the crew shell configurations).
      Returns:
      the list containing the crew shell configurations
    • setWorkShifts

      protected void setWorkShifts()
      Sets the works shifts in a DBView object.
    • retrieveOperationCenters

      protected List<BOOperationCenter> retrieveOperationCenters() throws DAValidateException, DAException
      Retrieves the list of all the BOOperationCenter objects (i.e., operation centers).
      Returns:
      the list of all the operation centers
      Throws:
      DAValidateException - if there is a data validation exception
      DAException - if a generic Exception object is thrown
    • retrieveActivatedOperationCentersIDs

      protected List<Long> retrieveActivatedOperationCentersIDs() throws DAException, DAValidateException
      Retrieves the list of all the BOCrewShellOperationCenter objects' IDs (i.e., the IDs of the operation centers which have been deactivated for the crew shells).
      Returns:
      the list of all the IDs of the operation centers which have been deactivated for the crew shells
      Throws:
      DAValidateException - if there is a data validation exception
      DAException - if a generic Exception object is thrown
    • setActivatedOperationCentersTable

      protected void setActivatedOperationCentersTable(List<BOOperationCenter> operationCenters, List<Long> activatedOperationCentersIDs)
      Sets the content of the TableViewDD right table (i.e., the table containing the activated operation centers).
      Parameters:
      operationCenters - the list containing all the BOOperationCenter objects (i.e., all the operation centers)
      activatedOperationCentersIDs - the list containing the IDs of all the BOCrewShellOperationCenter objects' IDs (i.e., the IDs of the operation centers which have been activated for the crew shells)
    • setDeactivatedOperationCentersTable

      protected void setDeactivatedOperationCentersTable(List<BOOperationCenter> operationCenters, List<Long> activatedOperationCentersIDs)
      Sets the content of the TableViewDD leftTable (i.e., the table containing the deactivated operation centers).
      Parameters:
      operationCenters - the list containing all the BOOperationCenter objects (i.e., all the operation centers)
      activatedOperationCentersIDs - the list containing the IDs of all the BOCrewShellOperationCenter objects' IDs (i.e., the IDs of the operation centers which have been activated for crew shells)
    • initCache

      protected void initCache()
      Initializes the BOCache objects for each business object.