Class PAREventDisputesPageBeanImpl

java.lang.Object
com.portal.app.ccare.comp.PAbstractController
com.portal.app.ccare.comp.PAREventDisputesPageBeanImpl

public class PAREventDisputesPageBeanImpl extends PAbstractController
Controller class handling dispute and settlement The following opcodes are used by this controller:
  • PortalOp.AR_GET_DISPUTES
  • PortalOp.AR_GET_ITEM_DETAIL
  • PortalOp.BILL_ITEM_SETTLEMENT
  • Constructor Details

    • PAREventDisputesPageBeanImpl

      public PAREventDisputesPageBeanImpl()
  • Method Details

    • setModelHandle

      public void setModelHandle(PModelHandle pmh)
      Description copied from class: PAbstractController
      This method is for backward compatibility, and usefull while changing the existing Controllers. In the exisitng controller, setModelHandle method is used to set the PModelHadndle in the BAS base classes. This method can be override in the new controllers or exisitng controller
      Overrides:
      setModelHandle in class PAbstractController
      Parameters:
      pmh -
    • getModelHandle

      public PModelHandle getModelHandle()
      Description copied from class: PAbstractController
      This method is for backward compatibility, and usefull while changing the existing Controllers. In the exisitng controller, getModelHandle method is used to get the PModelHadndle in the BAS base classes. This method can be override in the new controllers or exisitng controller
      Overrides:
      getModelHandle in class PAbstractController
    • getDisputeTime

      public Date getDisputeTime(PModelHandle mHandle)
      gets the dispute time from the model handle, that is it fetches for FldEffectiveT from transferout array
      Parameters:
      mHandle - is the model handle from where the effective date will be fetched from.
      Returns:
      Date will be the dispute date
    • getEventPoidsFromModelHandle

      public ArrayList getEventPoidsFromModelHandle(PModelHandle mh) throws Exception
      returns event poid from the model handle
      Parameters:
      mh - PModelHandle
      Returns:
      ArrayList
      Throws:
      Exception
    • settleEventDisputes

      public PModelHandle settleEventDisputes(ArrayList arrList) throws Exception
      Call PortalOp.BILL_EVENT_SETTLEMENT settle given disputed bill item.
      Parameters:
      aList - An ArrayList containing these items:
      • bill item model handle
      • PAccountInfo object
      • program name
      • backdating date (or null)
      • tax flag
      • comments
      • resource table
      • percent flag(true/false)
      • reason code
      • domain type
      Returns:
      the poid of the settlement item
      Throws:
      Exception
    • isILDExists

      public boolean isILDExists(PModelHandle mhItem) throws Exception
      this methods returns true incase there is any open item dispute exists for the item poid
      Parameters:
      mhItem - PModelHandle will contain item poid.
      Returns:
      boolean true will be returned if Itel Level Dispute Exsists.
      Throws:
      Exception
    • getDisputeIconFlag

      public boolean getDisputeIconFlag()
      returns true if the icon has to be shown
      Returns:
      boolean
    • setDisputeIconFlag

      public void setDisputeIconFlag(boolean flag)
      sets true if the icon has to be shown
      Parameters:
      flag - boolean
    • getDisputeEventList

      public ArrayList getDisputeEventList()
      returns the disputed event poids
      Returns:
      ArrayList
    • getTableData

      public Vector getTableData(PAccountInfo actInfo, Object[] unDisputedEvents)
      Exceutes AR_RESOURCE_AGGREGATION opcode and returns the aggregated amount for the given event poids
      Parameters:
      actInfo - PAccountInfo
      unDisputedEvents - Object[], contains the list of event poids
      Returns:
      Vector
    • getUnDisputedEventsModel

      public PModelHandle getUnDisputedEventsModel(ArrayList list, PModelHandle model)
      creates a model handle out of the event poids
      Parameters:
      list - ArrayList will contain the list of event poids
      Returns:
      PModelHandle
    • getEventPoids

      public ArrayList getEventPoids(PModelHandle[] modelHanArr)
    • getDisputedUndisputedEvents

      public Vector getDisputedUndisputedEvents(ArrayList lst) throws Exception
      returns the disputed and non disputed event poids
      Parameters:
      lst - ArrayList will contain the list of event poids to which will be the input for search templet
      Returns:
      Vector
      Throws:
      Exception
    • disputeEvent

      public String disputeEvent(Object[] unDisputedEvents, ArrayList arrList) throws Exception
      Call PortalOp.AR_EVENT_DISPUTE dispute given bill item. Return a Comment string whether the dispute went through successfully or not.
      Parameters:
      unDisputedEvents - is the array of events to which the dispute will be opened
      arrList - An ArrayList containing the data for to open the the dispute
      Returns:
      Comment for disputed item(s)
      Throws:
      Exception
    • adjustEvent

      public String adjustEvent(Object[] unDisputedEvents, ArrayList arrList) throws Exception
      PCM_OP_AR_EVENT_ADJUSTMENT opcode will be called from this method
      Parameters:
      unDisputedEvents - Object[]
      arrList - ArrayList
      Returns:
      String
      Throws:
      Exception
    • getContext

      protected PCachedContext getContext() throws Exception
      Throws:
      Exception
    • getReasonCodes

      public ReasonCodeData[] getReasonCodes(int reasonType, Locale locale) throws Exception
      returns the reaon code for a given reason type and locale
      Parameters:
      reasonType - int
      locale - Locale
      Returns:
      ReasonCodeData[]
      Throws:
      Exception
    • getDisputeEventPoids

      public Set getDisputeEventPoids(ArrayList lst)
      search templet to find if event(s) is(are) in dispute or not.
      Parameters:
      lst - ArrayList
      Returns:
      Set
    • checkForSettlement

      public Set checkForSettlement(Object[] poidsArr)
      checks if there is any settlement has happened for the disputed events
      Parameters:
      poidsArr - Object[]
      Returns:
      Set
    • getResourceDescriptionIdTable

      public Hashtable getResourceDescriptionIdTable(PModelHandle mh)
      returns hashtable with resource ID's has values and resources descriptions as keys
      Parameters:
      mh - PModelHandle
      Returns:
      Hashtable