Package com.portal.app.cc.sharing
Class PChargeSharingController
java.lang.Object
com.portal.app.cc.sharing.PSharingController
com.portal.app.cc.sharing.PChargeSharingController
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.-
Field Summary
Fields inherited from class com.portal.app.cc.sharing.PSharingController
db, id, mGroupType, mSharingType, sharingArrayField, sharingPoidField
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor to initializemGroupType
,mSharingType
,sharingArrayField
andsharingPoidField
. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
extractGroupSharingsFromFList
(PGroupData gData, Enumeration sharingValueEnum, HashMap indexMapping, Poid accPoid) This method will extract the sponsors from the output flist and stored the sponsors intoPGroupData
object asPSharingItemData
object.getAvailableSharingObjects
(Poid servicePoid) This method returns available sponsor(s) of the given service poid.protected void
prepareFListforAGroupMember
(FList memFList, PSharingItemData d) This method prepares the input flist for sponsors which are becoming members of the group.protected void
prepareFListforGroupInfoSharings
(FList sharingFList) This will prepare an input flist for sponsors while getting the group information.protected void
prepareIndexMapping
(HashMap indexMapping, SparseArray sharingsArray) This method will prepare the indexes hashmap for each and every sponsor which is available.Methods inherited from class com.portal.app.cc.sharing.PSharingController
acceptParticipation, addMembersToCollectionGroup, addMembersToGroup, createGroup, deleteCollectionMembers, deleteGroups, deleteMembers, deleteMembersFromGroup, fillBillinfoData, fillPayinfoData, getAllMemberServices, getAllServices, getCollectionsGroupMembers, getCurrentAccountNo, getGlobalCSGMemberServices, getGroupInfo, getGroupMembers, getGroupMembersInfoArray, getGroupType, getMemberData, getOwnershipData, getParticipatingGroups, getServiceLoginAndType, isAccountHavingDiscounts, isAccountPoidTypeOnly, isGlobalCSG, isServicePoidTypeOnly, modifyGroup, search, search, searchWithInOperator, setPriorities
-
Constructor Details
-
PChargeSharingController
public PChargeSharingController()Default constructor to initializemGroupType
,mSharingType
,sharingArrayField
andsharingPoidField
.
-
-
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 classPSharingController
- Parameters:
indexMapping
- HashMapsharingsArray
- SparseArray: The part of group output flist having the sponsors as group members.- Throws:
EBufException
-
prepareFListforGroupInfoSharings
This will prepare an input flist for sponsors while getting the group information.- Specified by:
prepareFListforGroupInfoSharings
in classPSharingController
- Parameters:
sharingFList
- FList the input flist.
-
prepareFListforAGroupMember
This method prepares the input flist for sponsors which are becoming members of the group.- Specified by:
prepareFListforAGroupMember
in classPSharingController
- 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 intoPGroupData
object asPSharingItemData
object.- Specified by:
extractGroupSharingsFromFList
in classPSharingController
- Parameters:
gData
- PGroupData the group data which contains all the info related to sharing groupsharingValueEnum
- Enumeration the partial output flistindexMapping
- HashMap the indexed map to get the each and every sponsor index in sharing group with respect to the node locationaccPoid
- Poid the account poid.- Throws:
EBufException
-
getAvailableSharingObjects
This method returns available sponsor(s) of the given service poid.- Specified by:
getAvailableSharingObjects
in classPSharingController
- Throws:
SharingException
-