Class PChargeSharingController

java.lang.Object
com.portal.app.cc.sharing.PSharingController
com.portal.app.cc.sharing.PChargeSharingController

public class PChargeSharingController extends PSharingController
This is extends PSharingController class, which carries all the business logic related to data for charge sharing. The opcode calls are done in this class. The controller separation logic is implemented in this controller so that this controller can be customized.
  • Constructor Details

    • PChargeSharingController

      public PChargeSharingController()
      Default constructor to initialize mGroupType, mSharingType, sharingArrayField and sharingPoidField.
  • Method Details

    • prepareIndexMapping

      protected void prepareIndexMapping(HashMap indexMapping, SparseArray sharingsArray) throws EBufException
      This method will prepare the indexes hashmap for each and every sponsor which is available. This will maintain key as sponsor poid.
      Specified by:
      prepareIndexMapping in class PSharingController
      Parameters:
      indexMapping - HashMap
      sharingsArray - SparseArray: The part of group output flist having the sponsors as group members.
      Throws:
      EBufException
    • prepareFListforGroupInfoSharings

      protected void prepareFListforGroupInfoSharings(FList sharingFList)
      This will prepare an input flist for sponsors while getting the group information.
      Specified by:
      prepareFListforGroupInfoSharings in class PSharingController
      Parameters:
      sharingFList - FList the input flist.
    • prepareFListforAGroupMember

      protected void prepareFListforAGroupMember(FList memFList, PSharingItemData d)
      This method prepares the input flist for sponsors which are becoming members of the group.
      Specified by:
      prepareFListforAGroupMember in class PSharingController
      Parameters:
      memFList - FList the input flist.
      sid - PSharingItemData the sponsors objects information which becomming the member of a group.
    • extractGroupSharingsFromFList

      protected void extractGroupSharingsFromFList(PGroupData gData, Enumeration sharingValueEnum, HashMap indexMapping, Poid accPoid) throws EBufException
      This method will extract the sponsors from the output flist and stored the sponsors into PGroupData object as PSharingItemData object.
      Specified by:
      extractGroupSharingsFromFList in class PSharingController
      Parameters:
      gData - PGroupData the group data which contains all the info related to sharing group
      sharingValueEnum - Enumeration the partial output flist
      indexMapping - HashMap the indexed map to get the each and every sponsor index in sharing group with respect to the node location
      accPoid - Poid the account poid.
      Throws:
      EBufException
    • getAvailableSharingObjects

      public ArrayList getAvailableSharingObjects(Poid servicePoid) throws SharingException
      This method returns available sponsor(s) of the given service poid.
      Specified by:
      getAvailableSharingObjects in class PSharingController
      Throws:
      SharingException