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 poidSharingException
public 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 objectSharingException
public 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 objectSharingException
public final void deleteGroups(Poid[] groupPoids) throws SharingException
groupPoids
- Poid[] the array of group poids
for deleting the groups.SharingException
public final FList search(int FLAG, FList in) throws SharingException
FLAG
- int the search flagin
- FList the input flistSharingException
public 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.SharingException
public final void deleteCollectionMembers(Poid groupPoid, Poid[] memberBillUnitPoids) throws SharingException
groupPoid
- memberBillUnitPoids
- SharingException
public final void deleteMembers(Poid groupPoid, Poid[] account) throws SharingException
SharingException
protected final String getServiceLoginAndType(Poid servPoid) throws SharingException
servPoid
- Poid the service poidSharingException
public final void acceptParticipation(Hashtable alist, Hashtable rlist) throws SharingException
SharingException
public final void setPriorities(ArrayList alist, Poid acctPoid) throws SharingException
SharingException
public final ArrayList getMemberData(Poid acctObj) throws SharingException
SharingException
public final ArrayList<com.portal.app.cc.sharing.PGroupMemberData> getCollectionsGroupMembers(Poid groupPoid, Poid parentPoid) throws SharingException
groupPoid
- parentPoid
- SharingException
public final ArrayList<com.portal.app.cc.sharing.PGroupMemberData> getGroupMembers(Poid groupPoid) throws SharingException
SharingException
public ArrayList<Poid> getGlobalCSGMemberServices(Poid groupPoid) throws SharingException
groupPoid
- SharingException
public 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
SharingException
public String getCurrentAccountNo(Poid acctObj) throws EBufException
acctObj
- Poid an account poidEBufException
public final ArrayList getAllServices(Poid acctPoid) throws SharingException
acctPoid
- Poid an account poidSharingException
protected final void fillPayinfoData(com.portal.app.cc.sharing.PGroupOwnerElementData ownerElement) throws SharingException
PGroupOwnerElementData
.ownerElement
- PGroupOwnerElementDataSharingException
protected final void fillBillinfoData(com.portal.app.cc.sharing.PGroupOwnerElementData ownerElement, Poid acctPoid) throws SharingException
PGroupOwnerElementData
.ownerElement
- PGroupOwnerElementDataacctPoid
- Poid an account poidSharingException
public ArrayList getOwnershipData(Poid acctPoid) throws SharingException
acctPoid
- Poid an account poidSharingException
public ArrayList getGroupMembersInfoArray(Poid groupPoid) throws SharingException
groupPoid
- PoidSharingException
public boolean deleteMembersFromGroup(Poid groupPoid, Poid[] acctPoids, Poid[] servicePoids) throws SharingException
SharingException
public ArrayList getAllMemberServices(Poid[] acctPoids) throws SharingException
SharingException
public void addMembersToCollectionGroup(Poid groupPoid, Poid[] acctPoids, Poid[] billUnitPoids, Poid parentPoid) throws SharingException
groupPoid
- acctPoids
- billUnitPoids
- parentPoid
- SharingException
public void addMembersToGroup(Poid groupPoid, Poid[] acctPoids, Poid[] servicePoids) throws SharingException
SharingException
protected 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 poidsSharingException
public boolean isAccountHavingDiscounts(Poid acctPoid) throws SharingException
acctPoid
- PoidSharingException
protected abstract void prepareIndexMapping(HashMap indexMapping, SparseArray sharingsArray) throws EBufException
EBufException
protected 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
EBufException
public abstract ArrayList getAvailableSharingObjects(Poid servicePoid) throws SharingException
SharingException
Copyright © 2003, 2023, Oracle and/or its affiliates.