Package com.portal.app.cc.sharing
Class PCollectionsSharingController
java.lang.Object
com.portal.app.cc.sharing.PSharingController
com.portal.app.cc.sharing.PCollectionsSharingController
This is extends
PCollectionsSharingController
class, which
carries all the business logic related to data for collection 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
,sharingArrayField
and -
Method Summary
Modifier and TypeMethodDescriptionvoid
createGroup
(PGroupData gData) This method will create a group by using passedPGroupData
.protected void
extractGroupSharingsFromFList
(PGroupData gData, Enumeration sharingValueEnum, HashMap indexMapping, Poid accPoid) getAvailableSharingObjects
(Poid servicePoid) getGroupInfo
(Poid groupPoid) This method gets the group related information from the server and fills it up in to the objectPGroupData
and returns that object.
getMembersInfo
(Poid memberPoid) This method gets the group related information from the server and fills it up in to the objectPGroupData
and returns that object.
getOwnershipData
(Poid acctPoid) This method gets the ownership data of Profile Sharing group depending on sharing mode.final void
modifyGroup
(PGroupData gData) This method used to modify the group by using passedPGroupData
.protected void
prepareFListforAGroupMember
(FList memFList, PSharingItemData d) protected void
prepareFListforGroupInfoSharings
(FList sharingFList) protected void
prepareIndexMapping
(HashMap indexMapping, SparseArray sharingsArray) Methods inherited from class com.portal.app.cc.sharing.PSharingController
acceptParticipation, addMembersToCollectionGroup, addMembersToGroup, deleteCollectionMembers, deleteGroups, deleteMembers, deleteMembersFromGroup, fillBillinfoData, fillPayinfoData, getAllMemberServices, getAllServices, getCollectionsGroupMembers, getCurrentAccountNo, getGlobalCSGMemberServices, getGroupMembers, getGroupMembersInfoArray, getGroupType, getMemberData, getParticipatingGroups, getServiceLoginAndType, isAccountHavingDiscounts, isAccountPoidTypeOnly, isGlobalCSG, isServicePoidTypeOnly, search, search, searchWithInOperator, setPriorities
-
Constructor Details
-
PCollectionsSharingController
public PCollectionsSharingController()Default constructor to initializemGroupType
,sharingArrayField
and
-
-
Method Details
-
getMembersInfo
This method gets the group related information from the server and fills it up in to the objectPGroupData
and returns that object.
- Parameters:
groupPoid
- Poid the group poid- Returns:
- PGroupData the group info object
- Throws:
SharingException
-
getGroupInfo
This method gets the group related information from the server and fills it up in to the objectPGroupData
and returns that object.
- Overrides:
getGroupInfo
in classPSharingController
- Parameters:
groupPoid
- Poid the group poid- Returns:
- PGroupData the group info object
- Throws:
SharingException
-
createGroup
This method will create a group by using passedPGroupData
. This will throwSharingException
if there is any problem while creating the group.- Overrides:
createGroup
in classPSharingController
- Parameters:
gData
- PGroupData the group information object- Throws:
SharingException
-
modifyGroup
This method used to modify the group by using passedPGroupData
. This will throwSharingException
when there is a problem while updating the group.- Overrides:
modifyGroup
in classPSharingController
- Parameters:
gData
- PGroupData the group information object- Throws:
SharingException
-
getOwnershipData
This method gets the ownership data of Profile Sharing group depending on sharing mode. This method populates the PGroupData datastructure.- Overrides:
getOwnershipData
in classPSharingController
- Parameters:
acctPoid
- Poid an account poid- Returns:
- ArrayList list of groups in an account
- Throws:
SharingException
-
prepareIndexMapping
protected void prepareIndexMapping(HashMap indexMapping, SparseArray sharingsArray) throws EBufException - Specified by:
prepareIndexMapping
in classPSharingController
- Throws:
EBufException
-
prepareFListforGroupInfoSharings
- Specified by:
prepareFListforGroupInfoSharings
in classPSharingController
-
prepareFListforAGroupMember
- Specified by:
prepareFListforAGroupMember
in classPSharingController
-
extractGroupSharingsFromFList
protected void extractGroupSharingsFromFList(PGroupData gData, Enumeration sharingValueEnum, HashMap indexMapping, Poid accPoid) throws EBufException - Specified by:
extractGroupSharingsFromFList
in classPSharingController
- Throws:
EBufException
-
getAvailableSharingObjects
- Specified by:
getAvailableSharingObjects
in classPSharingController
- Throws:
SharingException
-