Class MicroclusterAssociation

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
Direct Known Subclasses:
MicroclusterAggregates, OperationCenterComposition, SchedulingAreas

public abstract class MicroclusterAssociation extends Container
See Also:
  • Field Details

    • tableAssociatedMicrocluster

      protected TableView tableAssociatedMicrocluster
    • tableSearchResult

      protected TableView tableSearchResult
    • searchForm

      protected Form searchForm
    • openObject

      protected Object openObject
    • lastSearchFilter

      protected HashGetter lastSearchFilter
    • AREA_TYPE_FREE

      protected static final Long AREA_TYPE_FREE
    • AREA_TYPE_OCCUPIED

      protected static final Long AREA_TYPE_OCCUPIED
    • AREA_TYPE_ALL

      protected static final Long AREA_TYPE_ALL
    • MICROCLUSTER_DBV_FIELD

      protected static final String MICROCLUSTER_DBV_FIELD
      Used for pass data to map page
      See Also:
    • COUNTER

      protected static final String COUNTER
      See Also:
    • USED_BY

      protected static final String USED_BY
      See Also:
    • SELECTED

      protected static final String SELECTED
      See Also:
  • Constructor Details

    • MicroclusterAssociation

      public MicroclusterAssociation()
  • 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()
    • setupWindow

      protected abstract void setupWindow()
      Define window style
    • onChangeContry

      public boolean onChangeContry(UIMessage uim)
    • applyDistrictRule

      protected void applyDistrictRule()
    • refreshTables

      protected void refreshTables()
      Method for refresh the displayed data that load current associated microclusters from db and launch the search query
    • loadCurrentAssociations

      protected void loadCurrentAssociations()
      Fill the table of currently associated microclusters
    • readDBAssociations

      protected abstract DBView readDBAssociations() throws DAException, DAValidateException
      Read the current microcluster associations from db
      Returns:
      Throws:
      DAException
      DAValidateException
    • preapareEmptyTable

      protected void preapareEmptyTable()
      Fill the table of search result with an empty DBView
    • onQuery

      public boolean onQuery(UIMessage uim)
    • doQuery

      protected void doQuery(HashGetter filters)
    • getSearchDBV

      protected abstract DBView getSearchDBV(HashGetter filters) throws DAException, DAValidateException
      Search microclusters on db applying user filters
      Throws:
      DAException
      DAValidateException
    • onMapDetails

      public boolean onMapDetails(UIMessage uim)
      Opens map page with the selected microclusters
      Parameters:
      uim - the uim
      Returns:
      true, if successful
    • getMicroclusterDetails

      protected abstract DBView getMicroclusterDetails(HashGetter cluster) throws DAException, DAValidateException
      Prepare the microcluster DBView used for opening the map page.
      Parameters:
      cluster - the cluster
      Returns:
      the microcluster details
      Throws:
      DAException - the DA exception
      DAValidateException - the DA validate exception
    • onRestoreFromMap

      public void onRestoreFromMap(Object o)
    • restorePageFromMap

      protected abstract void restorePageFromMap(Object o)
      Called when the user returns on this page from map page.
      Parameters:
      o - the o
    • onSelectNewMicrocluster

      public boolean onSelectNewMicrocluster(UIMessage uim)
      Selection event for search results table Avoid the selection of microclsuters already assigned.
      Parameters:
      uim - the uim
      Returns:
      true, if successful
    • onSelectAllMicrocluster

      public boolean onSelectAllMicrocluster(UIMessage uim)
    • onAssociateSelected

      public boolean onAssociateSelected(UIMessage uim)
      Try to associate selected macroclusters.
      Parameters:
      uim - the uim
      Returns:
      true, if successful
    • associateCluster

      protected abstract void associateCluster(HashGetter cluster) throws DAException, DAValidateException
      Associate a single macrocluster.
      Parameters:
      cluster - the cluster
      Throws:
      DAException - the DA exception
      DAValidateException - the DA validate exception
    • onDisassociateSelected

      public boolean onDisassociateSelected(UIMessage uim)
      Try to disassociate selected macroclusters.
      Parameters:
      uim - the uim
      Returns:
      true, if successful
    • disassociateCluster

      protected abstract void disassociateCluster(HashGetter cluster) throws DAException, DAValidateException
      Disassociate a single macrocluster.
      Parameters:
      cluster - the cluster
      Throws:
      DAException - the DA exception
      DAValidateException - the DA validate exception