Class PAREventSearchPageBeanImpl

java.lang.Object
com.portal.bas.PControllerImpl
com.portal.app.ccare.comp.PAREventSearchPageBeanImpl
All Implemented Interfaces:
PControllerBean, Serializable, Remote, Unreferenced

public class PAREventSearchPageBeanImpl extends PControllerImpl
Controller class for obtaining Event related information Opcodes used PortalOp.BILL_POL_EVENT_SEARCH PortalOp.AR_RESOURCE_AGGREGATION
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • setDialogModelHandle

      public void setDialogModelHandle(PModelHandle pmh) throws RemoteException
      This method sets the PModelHandle for the Event search dialog.
      Parameters:
      pmh -
      Throws:
      RemoteException
    • getDialogModelHandle

      public PModelHandle getDialogModelHandle()
    • setResultsModelHandle

      public void setResultsModelHandle(PModelHandle pmh) throws RemoteException
      This method sets the PModelHandle for the Event search results table.
      Parameters:
      pmh -
      Throws:
      RemoteException
    • setDetailsModelHandle

      public void setDetailsModelHandle(PModelHandle pmh) throws RemoteException
      This method sets the PModelHandle for the Event details table. (popup dialog)
      Parameters:
      pmh -
      Throws:
      RemoteException
    • update

      public void update(int reason, Object data)
      Description copied from class: PControllerImpl
      The update method is called by various internal methods when the data has changed enough to require changing the client display. Must be overridden by a specific controller subclass.
      Specified by:
      update in class PControllerImpl
      Parameters:
      reason - an integer constant that indicates the reason for the update (UPDATE_NEW_MODEL, UPDATE_PROPERTY, UPDATE_MODEL_CHANGE, or UPDATE_CLIENT)
      data - the data associated with update
    • getSelectionDataFor

      public Object getSelectionDataFor(String dataItem, int index)
      Description copied from interface: PControllerBean
      Given the name of a display data item and an optional index, returns the information needed for a Selection event. The information returned is usually model data.
      Parameters:
      dataItem - the name of a data item. Must match the name of an item changed by sending a PViewDataChangeEvent.
      index - an optional index into an array data item
      Returns:
      Usually, a model handle or array of model handles.
    • getResultsModelHandle

      public PModelHandle getResultsModelHandle()
    • getDetailsModelHandle

      public PModelHandle getDetailsModelHandle()
    • getAccountPoid

      public Poid getAccountPoid()
    • getBillinfoPoid

      public Poid getBillinfoPoid()
    • getBillPoid

      public Poid getBillPoid()
    • getServicePoid

      public Poid getServicePoid()
    • getItemPoid

      public Poid getItemPoid()
    • getStartDate

      public Date getStartDate()
    • getEndDate

      public Date getEndDate()
    • getEventDetails

      public FList getEventDetails()
      This method returns the result of startEventDetailsSearch as an FList
      Returns:
      FList
    • startEventDetailsSearch

      public void startEventDetailsSearch(PModelHandle eventMH, HashMap criteria) throws RemoteException
      This method searches for the Currecny invalid input: '&' Non-Currency resource details of an Event
      Parameters:
      criteria - Search crieria
      pmh - PModelHandle for the selected Event
      Throws:
      RemoteException
    • startEventResultsSearch

      public void startEventResultsSearch(HashMap criteria, boolean inc_childs, int threshold) throws RemoteException
      This method performs Event search. this will filter out all non currency balance impacts of an event.
      Parameters:
      criteria - the Search crieria
      inc_childs - the flag indicating whether events of Chils accounts should also be searched
      threshold - Threshold value
      Throws:
      RemoteException
    • startEventResultsSearchForCC

      public void startEventResultsSearchForCC(HashMap criteria, boolean inc_childs, int threshold) throws RemoteException
      BILL_GET_ITEM_EVENT_CHARGE_DISCOUNT is called to fetch the events based on the search criteria.
      Parameters:
      criteria -
      inc_childs -
      threshold -
      Throws:
      RemoteException
    • getEventSearchResults

      public ArrayList getEventSearchResults() throws RemoteException
      The results of Event search operation is returned in an ArrayList form returns Arraylist
      Throws:
      RemoteException
    • getMultiRUMDetails

      public PModelHandle getMultiRUMDetails(FList event) throws EBufException
      This method returns the Multi-RUM details of the given event
      Parameters:
      event - The event Flist
      Returns:
      PModelHandle
      Throws:
      EBufException
    • isMultiRUM

      public boolean isMultiRUM(PModelHandle model)
      This method returns true if the given event has Multi-RUM impact
      Parameters:
      model - The PModelHandle of the event
      Returns:
      boolean
    • getEventSearchResultsCount

      public int getEventSearchResultsCount()
      If the resutls count of Event Search Operation is greater than than the threshold value set through Preference Page. then this method returns the actual results count. Otherwise it returns zero.
    • getDateFormat

      public SimpleDateFormat getDateFormat(Poid eventPoid)
      Set Date Format with Timezone of the event
      Parameters:
      eventPoid -
      Returns:
      SimpleDateFormat
    • getTimeZoneFromServer

      public static TimeZone getTimeZoneFromServer(Poid eventPoid)
      Get the timezone configured in the server, if there is no timezone listed in server than get the default timezone configured in the infranet.properties or get the local system timezone.
      Parameters:
      eventPoid - Event id poid.
      Returns:
      timezone of either one : 1. timezone_id of server or 2. rated_timezone of server or 3. timezone mentioned in infranet.properties or 4. local system timezone