public class PDiscountSharingController extends PSharingController
PSharingController class, which carries all
the business logic related to data for discount 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.db, id, mGroupType, mSharingType, sharingArrayField, sharingPoidField| Constructor and Description |
|---|
PDiscountSharingController()
Default constructor to initialize
mGroupType,
mSharingType, sharingArrayField
and sharingPoidField. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
extractGroupSharingsFromFList(PGroupData gData,
Enumeration sharingValueEnum,
HashMap indexMapping,
Poid accPoid)
This method will extract the discounts from the output flist
and stored the discounts into
PGroupData object. |
ArrayList |
getAllMemberServices(Poid[] acctPoids,
Poid parentServicePoid) |
ArrayList |
getAvailableSharingObjects(Poid servicePoid)
This method returns available discount(s) of the given service poid.
|
protected void |
prepareFListforAGroupMember(FList memFList,
PSharingItemData sid)
This method prepares the input flist for discounts which are
becoming members of group.
|
protected void |
prepareFListforGroupInfoSharings(FList sharingFList)
This will prepare an input flist for discounts
while getting the group information.
|
protected void |
prepareIndexMapping(HashMap indexMapping,
SparseArray sharingsArray)
This method will prepare the indexes hashmap for each
and every discount purchased by the account.
|
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, setPrioritiespublic PDiscountSharingController()
mGroupType,
mSharingType, sharingArrayField
and sharingPoidField.protected void prepareIndexMapping(HashMap indexMapping, SparseArray sharingsArray) throws EBufException
prepareIndexMapping in class PSharingControllerindexMapping - HashMapsharingsArray - SparseArray: The part of group output flist
having the discounts as group members.EBufExceptionprotected void prepareFListforGroupInfoSharings(FList sharingFList)
prepareFListforGroupInfoSharings in class PSharingControllersharingFList - FList the input flist.protected void extractGroupSharingsFromFList(PGroupData gData, Enumeration sharingValueEnum, HashMap indexMapping, Poid accPoid) throws EBufException
PGroupData object.extractGroupSharingsFromFList in class PSharingControllergData - 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 discounts index in sharing group with respect to the
node locationaccPoid - Poid the account poid.EBufExceptionprotected void prepareFListforAGroupMember(FList memFList, PSharingItemData sid)
prepareFListforAGroupMember in class PSharingControllermemFList - FList the input flist.sid - PSharingItemData the discount objects information
which becomming the member of a group.public ArrayList getAvailableSharingObjects(Poid servicePoid) throws SharingException
getAvailableSharingObjects in class PSharingControllerSharingExceptionpublic ArrayList getAllMemberServices(Poid[] acctPoids, Poid parentServicePoid) throws SharingException
SharingExceptionCopyright © 2003, 2023, Oracle and/or its affiliates.