public abstract class PSharingController extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
db |
protected long |
id |
protected String |
mGroupType |
protected String |
mSharingType |
protected ArrayField |
sharingArrayField |
protected PoidField |
sharingPoidField |
| Constructor and Description |
|---|
PSharingController() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptParticipation(Hashtable alist,
Hashtable rlist) |
void |
addMembersToCollectionGroup(Poid groupPoid,
Poid[] acctPoids,
Poid[] billUnitPoids,
Poid parentPoid)
Adds members to collection group.
|
void |
addMembersToGroup(Poid groupPoid,
Poid[] acctPoids,
Poid[] servicePoids) |
void |
createGroup(PGroupData gData)
This method will create a group by using passed
PGroupData. |
void |
deleteCollectionMembers(Poid groupPoid,
Poid[] memberBillUnitPoids)
Deletes the members from the collection group.
|
void |
deleteGroups(Poid[] groupPoids)
This method will delete an existing groups.
|
void |
deleteMembers(Poid groupPoid,
Poid[] account) |
boolean |
deleteMembersFromGroup(Poid groupPoid,
Poid[] acctPoids,
Poid[] servicePoids) |
protected abstract void |
extractGroupSharingsFromFList(PGroupData gData,
Enumeration sharingValueEnum,
HashMap indexMapping,
Poid accPoid) |
protected void |
fillBillinfoData(com.portal.app.cc.sharing.PGroupOwnerElementData ownerElement,
Poid acctPoid)
This will fetch the bill info data from the server and
updates the
PGroupOwnerElementData. |
protected void |
fillPayinfoData(com.portal.app.cc.sharing.PGroupOwnerElementData ownerElement)
This will get the payinfo data from the server and updates
the passed
PGroupOwnerElementData. |
ArrayList |
getAllMemberServices(Poid[] acctPoids) |
ArrayList |
getAllServices(Poid acctPoid)
This method will return the list of the services in an account.
|
abstract ArrayList |
getAvailableSharingObjects(Poid servicePoid) |
ArrayList<com.portal.app.cc.sharing.PGroupMemberData> |
getCollectionsGroupMembers(Poid groupPoid,
Poid parentPoid)
Prepares input flist for COLLECTIONS_GROUP_GET_BILLINFO opcode to get the details
of member billunits associated with the Collection group
|
String |
getCurrentAccountNo(Poid acctObj)
This method will return the account number for the
passed account poid.
|
ArrayList<Poid> |
getGlobalCSGMemberServices(Poid groupPoid)
Returns the member services associated with the global charge sharing group
|
PGroupData |
getGroupInfo(Poid groupPoid)
This method gets the group related information from the
server and fills it up in to the object
PGroupData |
ArrayList<com.portal.app.cc.sharing.PGroupMemberData> |
getGroupMembers(Poid groupPoid) |
ArrayList |
getGroupMembersInfoArray(Poid groupPoid)
getGroupMembersInfoArray This will return the members in the group
|
String |
getGroupType()
This will return the type of sharing.
|
ArrayList |
getMemberData(Poid acctObj) |
ArrayList |
getOwnershipData(Poid acctPoid)
This method gets the ownership data of Charge/Discount
Sharing group depending on sharing mode.
|
ArrayList |
getParticipatingGroups(Poid acctObj) |
protected String |
getServiceLoginAndType(Poid servPoid)
This method will return the formatted service login
and type for the passed service poid.
|
boolean |
isAccountHavingDiscounts(Poid acctPoid)
Searches for the Discount Object in the Account if the Account contains any discount either
account level or service level returns true else false
|
static boolean |
isAccountPoidTypeOnly(Poid poid) |
boolean |
isGlobalCSG(Poid groupPoid)
Indicates whether the passed group is global charge sharing group or not.
|
static boolean |
isServicePoidTypeOnly(Poid poid) |
void |
modifyGroup(PGroupData gData)
This method used to modify the group by using passed
PGroupData. |
protected abstract void |
prepareFListforAGroupMember(FList memFList,
PSharingItemData d) |
protected abstract void |
prepareFListforGroupInfoSharings(FList sharingFList) |
protected abstract void |
prepareIndexMapping(HashMap indexMapping,
SparseArray sharingsArray) |
FList |
search(int FLAG,
FList in)
This method will invoke search opcode with passed input
flist and flag.
|
FList |
search(int Flag,
FList in,
boolean isServiceSearch)
This method will invoke search opcode with passed input
flist and flag.
|
protected ArrayList |
searchWithInOperator(String preTemplate,
String postTemplate,
FList inPutFList,
Object[] poids)
This method will invoke search opcode by using in operator.
|
void |
setPriorities(ArrayList alist,
Poid acctPoid) |
protected long db
protected long id
protected String mGroupType
protected String mSharingType
protected ArrayField sharingArrayField
protected PoidField sharingPoidField
public String getGroupType()
public PGroupData getGroupInfo(Poid groupPoid) throws SharingException
PGroupData
and returns that object.groupPoid - Poid the group poidSharingExceptionpublic void createGroup(PGroupData gData) throws SharingException
PGroupData.
This will throw SharingException if there is
any problem while creating the group.gData - PGroupData the group information objectSharingExceptionpublic void modifyGroup(PGroupData gData) throws SharingException
PGroupData. This will throw
SharingException when there is a problem
while updating the group.gData - PGroupData the group information objectSharingExceptionpublic final void deleteGroups(Poid[] groupPoids) throws SharingException
groupPoids - Poid[] the array of group poids
for deleting the groups.SharingExceptionpublic final FList search(int FLAG, FList in) throws SharingException
FLAG - int the search flagin - FList the input flistSharingExceptionpublic final FList search(int Flag, FList in, boolean isServiceSearch) throws SharingException
Flag - int the search flagin - FList the input flistisServiceSearch - boolean Pass as true if you have base object "/service" in your search template.
if true passed then serviceSearch() method of PortalContext will be called otherwise
normal opcode() method will be called. This is to avoid the timesten limitation of not returning search results
when only "/service" found in the template.SharingExceptionpublic final void deleteCollectionMembers(Poid groupPoid, Poid[] memberBillUnitPoids) throws SharingException
groupPoid - memberBillUnitPoids - SharingExceptionpublic final void deleteMembers(Poid groupPoid, Poid[] account) throws SharingException
SharingExceptionprotected final String getServiceLoginAndType(Poid servPoid) throws SharingException
servPoid - Poid the service poidSharingExceptionpublic final void acceptParticipation(Hashtable alist, Hashtable rlist) throws SharingException
SharingExceptionpublic final void setPriorities(ArrayList alist, Poid acctPoid) throws SharingException
SharingExceptionpublic final ArrayList getMemberData(Poid acctObj) throws SharingException
SharingExceptionpublic final ArrayList<com.portal.app.cc.sharing.PGroupMemberData> getCollectionsGroupMembers(Poid groupPoid, Poid parentPoid) throws SharingException
groupPoid - parentPoid - SharingExceptionpublic final ArrayList<com.portal.app.cc.sharing.PGroupMemberData> getGroupMembers(Poid groupPoid) throws SharingException
SharingExceptionpublic ArrayList<Poid> getGlobalCSGMemberServices(Poid groupPoid) throws SharingException
groupPoid - SharingExceptionpublic boolean isGlobalCSG(Poid groupPoid)
groupPoid - Poid charge sharing group poidpublic static boolean isAccountPoidTypeOnly(Poid poid)
public static boolean isServicePoidTypeOnly(Poid poid)
public final ArrayList getParticipatingGroups(Poid acctObj) throws SharingException
SharingExceptionpublic String getCurrentAccountNo(Poid acctObj) throws EBufException
acctObj - Poid an account poidEBufExceptionpublic final ArrayList getAllServices(Poid acctPoid) throws SharingException
acctPoid - Poid an account poidSharingExceptionprotected final void fillPayinfoData(com.portal.app.cc.sharing.PGroupOwnerElementData ownerElement)
throws SharingException
PGroupOwnerElementData.ownerElement - PGroupOwnerElementDataSharingExceptionprotected final void fillBillinfoData(com.portal.app.cc.sharing.PGroupOwnerElementData ownerElement,
Poid acctPoid)
throws SharingException
PGroupOwnerElementData.ownerElement - PGroupOwnerElementDataacctPoid - Poid an account poidSharingExceptionpublic ArrayList getOwnershipData(Poid acctPoid) throws SharingException
acctPoid - Poid an account poidSharingExceptionpublic ArrayList getGroupMembersInfoArray(Poid groupPoid) throws SharingException
groupPoid - PoidSharingExceptionpublic boolean deleteMembersFromGroup(Poid groupPoid, Poid[] acctPoids, Poid[] servicePoids) throws SharingException
SharingExceptionpublic ArrayList getAllMemberServices(Poid[] acctPoids) throws SharingException
SharingExceptionpublic void addMembersToCollectionGroup(Poid groupPoid, Poid[] acctPoids, Poid[] billUnitPoids, Poid parentPoid) throws SharingException
groupPoid - acctPoids - billUnitPoids - parentPoid - SharingExceptionpublic void addMembersToGroup(Poid groupPoid, Poid[] acctPoids, Poid[] servicePoids) throws SharingException
SharingExceptionprotected ArrayList searchWithInOperator(String preTemplate, String postTemplate, FList inPutFList, Object[] poids) throws SharingException
preTemplate - String the template before in operatorpostTemplate - String the template after the in operatorinPutFList - FList the input flistpoids - Object[] array of poidsSharingExceptionpublic boolean isAccountHavingDiscounts(Poid acctPoid) throws SharingException
acctPoid - PoidSharingExceptionprotected abstract void prepareIndexMapping(HashMap indexMapping, SparseArray sharingsArray) throws EBufException
EBufExceptionprotected abstract void prepareFListforGroupInfoSharings(FList sharingFList)
protected abstract void prepareFListforAGroupMember(FList memFList, PSharingItemData d)
protected abstract void extractGroupSharingsFromFList(PGroupData gData, Enumeration sharingValueEnum, HashMap indexMapping, Poid accPoid) throws EBufException
EBufExceptionpublic abstract ArrayList getAvailableSharingObjects(Poid servicePoid) throws SharingException
SharingExceptionCopyright © 2003, 2023, Oracle and/or its affiliates.