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 BundlingRuleDetail extends Container
Bundling rule detail page.
Since:
10.1
See Also:
GCApi:
controller
  • Field Details

  • Constructor Details

    • BundlingRuleDetail

      public BundlingRuleDetail()
  • 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
    • initWindow

      protected void initWindow()
    • preparePage

      protected void preparePage(BundlingRuleDetailInput pageInput) throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • onSaveBundlingRule

      public boolean onSaveBundlingRule(UIMessage uim)
      UI event handler to save the bundling rule.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • prepareBundlingRuleFilters

      protected List<BOBundlingRuleFilter> prepareBundlingRuleFilters(Long bundlingRuleId)
    • prepareBundlingRuleOrderings

      protected List<BOBundlingRuleOrdering> prepareBundlingRuleOrderings(Long bundlingRuleId)
    • saveRule

      protected void saveRule(BundlingRule rule) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • updatePage

      protected void updatePage() throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • onAddWorkOrderFilter

      public boolean onAddWorkOrderFilter(UIMessage uim)
      UI event handler to add a work order filter.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onSelectWorkOrderFilters

      public boolean onSelectWorkOrderFilters(HashGetter hg)
      UI event handler to select the work order filters.
      Parameters:
      hg - the HashGetter
      Returns:
      true to break the responsibility chain, false otherwise.
    • loadWorkOrderFiltersData

      protected void loadWorkOrderFiltersData(Collection<Long> woFilterIds) throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • onRemoveWorkOrderFilter

      public boolean onRemoveWorkOrderFilter(UIMessage uim)
      UI event handler to remove work order filter.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • loadOrderingsData

      protected void loadOrderingsData() throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • isTopologicalSortSelected

      protected boolean isTopologicalSortSelected()
      Checks if topological sorting is present in the current orderings.
      Returns:
      true if topological sorting is found, false otherwise
    • onEditOrderings

      public boolean onEditOrderings(UIMessage uim)
      UI event handler to edit the orderings.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • prepareSelectBundleOperationOrderingsDBViewFull

      protected DBView prepareSelectBundleOperationOrderingsDBViewFull()
    • onClose

      public boolean onClose(UIMessage uim)
      UI event handler the close function.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onProcessBundling

      public boolean onProcessBundling(UIMessage uim)
      UI event handler to ask the current user whether to process the bundling with the selected rule.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onConfirmProcessBundling

      public boolean onConfirmProcessBundling(UIMessage uim)
      UI event handler to confirm the bundling process with the selected rule and to execute the BundlingEvent.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onSelectActive

      public boolean onSelectActive(UIMessage uim)
      UI event handler to enable/disable the possibility to set "isDefault" on a BOBundlingRuleHeader when the "active" flag is changed.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onSelectManualExecution

      public boolean onSelectManualExecution(UIMessage uim)
      UI event handler to enable/disable the possibility to set "isDefault" on a BOBundlingRuleHeader when the "manualExecution" flag is changed.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • setIsDefaultReadonlyState

      protected void setIsDefaultReadonlyState()
      Sets the readonly state of the "isDefault" checkbox based on the "active" and "manualExecution" flags. The "isDefault" checkbox can only be set if both "active" and "manual execution" flags are true.
    • setTopologicalSortingEditability

      protected void setTopologicalSortingEditability(Boolean hasTopologicalSorting)
      Sets the editability of the topological sorting section based on whether topological sorting ordering is present in the selected orderings.
      Parameters:
      hasTopologicalSorting - true if topological sorting is present, false otherwise