Package com.portal.app.cc.sharing
Class PGroupData
java.lang.Object
com.portal.app.cc.sharing.PGroupData
This class stores all the data related to a group.
-
Constructor Summary
ConstructorsConstructorDescriptionPGroupData
(Poid p) Constructs anPGroupData
with the specified group piodp
.PGroupData
(Poid p, boolean globalCSG) Constructs anPGroupData
with the group poid and global charge sharing flag. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSharing
(String s) This will add sharing name to the sharing data structure.boolean
Indicates whether some other group is same as this group?Returns the account number.Returns the bill unit name.Returns the group owner poid.Returns the group owner name.Returns the group poid.int
Returns the member count.getName()
Returns the group name.Returns the parent poid.Returns the payment method.int
Returns the number of sharings(discounts/sponsors) in a group.Returns the sharing items in a group.Returns the sharings which are added from the group throughPSharingAvailableDialog
.Returns the sharings which are deleted from the group throughPSharingAvailableDialog
.Returns the persisted sharing items in a group.Returns the render string to display group sharing in multilines.void
Initializes with groups persisted sharing items.boolean
Returns whether the group is Global Charge Sharing Group(CSG) or not.void
This will initialize the class variablesmParent
,mGroupName
andmGroupOwner
from the FListflist
.void
This will set the account number.void
setBillUnitName
(String name) This will set themBillUnitName
.void
This will set the group owner.void
This will set the group owner name.void
setMemberCount
(int i) This will set member countmMemberCount
.void
This will set the group name.void
This will set the group parentmParent
void
This will set the payment methodpaymentMethod
.void
This will set the sharing items which are ready to save after modifying the group.void
Set the additional sharings to add to the groupvoid
Set the sharings which need to be deleted from the groupvoid
This will sort all the sharings.toString()
Overriden method from Object.
-
Constructor Details
-
PGroupData
Constructs anPGroupData
with the specified group piodp
.- Parameters:
p
- Poid the group poid
-
PGroupData
Constructs anPGroupData
with the group poid and global charge sharing flag.- Parameters:
p
- Poid the group poidglobalCSG
- boolean indicates whether the group is global CSG or not
-
-
Method Details
-
equals
Indicates whether some other group is same as this group? -
toString
Overriden method from Object. Returns the name of the group. -
set
This will initialize the class variablesmParent
,mGroupName
andmGroupOwner
from the FListflist
.- Parameters:
flist
- FList the flist with data- Throws:
EBufException
-
setBillUnitName
This will set themBillUnitName
.- Parameters:
name
- String the bill unit name
-
setPaymentMethod
This will set the payment methodpaymentMethod
.- Parameters:
s
- String the payment method
-
setMemberCount
public void setMemberCount(int i) This will set member countmMemberCount
.- Parameters:
i
- int member count
-
setParentPoid
This will set the group parentmParent
- Parameters:
p
- Poid the parent poid
-
setAccountNumber
This will set the account number.- Parameters:
s
- String the account number string
-
setGroupOwner
This will set the group owner.- Parameters:
p
- Poid the group owner poid.
-
setGroupOwnerName
This will set the group owner name.- Parameters:
s
- String the group owner name
-
setName
This will set the group name.- Parameters:
name
- String the group name
-
getName
Returns the group name.- Returns:
- String
-
getAccountNumber
Returns the account number.- Returns:
- String the account number string
-
getParentPoid
Returns the parent poid.- Returns:
- Poid
-
getGroupOwnerName
Returns the group owner name.- Returns:
- String
-
getGroupPoid
Returns the group poid.- Returns:
- Poid
-
getGroupOwner
Returns the group owner poid.- Returns:
- Poid
-
getPaymentMethod
Returns the payment method.- Returns:
- String
-
getBillUnitName
Returns the bill unit name.- Returns:
- String
-
getMemberCount
public int getMemberCount()Returns the member count.- Returns:
- int
-
getSharingRenderer
Returns the render string to display group sharing in multilines.- Returns:
- String
-
getSharingCount
public int getSharingCount()Returns the number of sharings(discounts/sponsors) in a group.- Returns:
- int
-
addSharing
This will add sharing name to the sharing data structure.- Parameters:
s
- String
-
sortPayFor
public void sortPayFor()This will sort all the sharings. -
getSharingItems
Returns the sharing items in a group. This is useful for Group Creation, Modification and View.- Returns:
- ArrayList
-
getSharingItemsOriginal
Returns the persisted sharing items in a group. This is useful for Group Creation, Modification. Make sure call this method only after calling theinitSharingItemsOriginal()
. Otherwise this will throw an exception.- Returns:
- ArrayList
-
getSharingItemsDeleted
Returns the sharings which are deleted from the group throughPSharingAvailableDialog
. This is useful for Group Creation, Modification and View.- Returns:
- ArrayList
-
setSharingItemsDeleted
Set the sharings which need to be deleted from the group- Parameters:
list
-
-
getSharingItemsAdded
Returns the sharings which are added from the group throughPSharingAvailableDialog
. This is useful for Group Creation, Modification and View.- Returns:
- ArrayList
-
setSharingItemsAdded
Set the additional sharings to add to the group- Parameters:
list
-
-
setSharingItems
This will set the sharing items which are ready to save after modifying the group. This is useful for Group Creation, Modification and View.- Parameters:
l
- ArrayList
-
initSharingItemsOriginal
public void initSharingItemsOriginal()Initializes with groups persisted sharing items. This should be called from the controller immediately after this object is constructed. -
isGlobalCSG
public boolean isGlobalCSG()Returns whether the group is Global Charge Sharing Group(CSG) or not.- Returns:
- true means global CSG
-