public class PGroupData extends Object
Constructor and Description |
---|
PGroupData(Poid p)
Constructs an
PGroupData with the specified group piodp . |
PGroupData(Poid p,
boolean globalCSG)
Constructs an
PGroupData with the group poid and global charge sharing flag. |
Modifier and Type | Method and Description |
---|---|
void |
addSharing(String s)
This will add sharing name to the
sharing data structure.
|
boolean |
equals(Object obj)
Indicates whether some other group is same as this group?
|
String |
getAccountNumber()
Returns the account number.
|
String |
getBillUnitName()
Returns the bill unit name.
|
Poid |
getGroupOwner()
Returns the group owner poid.
|
String |
getGroupOwnerName()
Returns the group owner name.
|
Poid |
getGroupPoid()
Returns the group poid.
|
int |
getMemberCount()
Returns the member count.
|
String |
getName()
Returns the group name.
|
Poid |
getParentPoid()
Returns the parent poid.
|
String |
getPaymentMethod()
Returns the payment method.
|
int |
getSharingCount()
Returns the number of sharings(discounts/sponsors)
in a group.
|
ArrayList |
getSharingItems()
Returns the sharing items in a group.
|
ArrayList |
getSharingItemsAdded()
Returns the sharings which are added from
the group through
PSharingAvailableDialog . |
ArrayList |
getSharingItemsDeleted()
Returns the sharings which are deleted from
the group through
PSharingAvailableDialog . |
ArrayList |
getSharingItemsOriginal()
Returns the persisted sharing items in a group.
|
String |
getSharingRenderer()
Returns the render string to display
group sharing in multilines.
|
void |
initSharingItemsOriginal()
Initializes with groups persisted sharing items.
|
boolean |
isGlobalCSG()
Returns whether the group is Global Charge Sharing Group(CSG) or not.
|
void |
set(FList flist)
This will initialize the class variables
mParent , mGroupName
and mGroupOwner from the FList
flist . |
void |
setAccountNumber(String s)
This will set the account number.
|
void |
setBillUnitName(String name)
This will set the
mBillUnitName . |
void |
setGroupOwner(Poid p)
This will set the group owner.
|
void |
setGroupOwnerName(String s)
This will set the group owner name.
|
void |
setMemberCount(int i)
This will set member count
mMemberCount . |
void |
setName(String name)
This will set the group name.
|
void |
setParentPoid(Poid p)
This will set the group parent
mParent |
void |
setPaymentMethod(String s)
This will set the payment method
paymentMethod . |
void |
setSharingItems(ArrayList l)
This will set the sharing items which are ready to
save after modifying the group.
|
void |
setSharingItemsAdded(ArrayList list)
Set the additional sharings to add to the group
|
void |
setSharingItemsDeleted(ArrayList list)
Set the sharings which need to be deleted from the group
|
void |
sortPayFor()
This will sort all the sharings.
|
String |
toString()
Overriden method from Object.
|
public PGroupData(Poid p)
PGroupData
with the specified group piodp
.p
- Poid the group poidpublic PGroupData(Poid p, boolean globalCSG)
PGroupData
with the group poid and global charge sharing flag.p
- Poid the group poidglobalCSG
- boolean indicates whether the group is global CSG or notpublic boolean equals(Object obj)
public String toString()
public void set(FList flist) throws EBufException
mParent
, mGroupName
and mGroupOwner
from the FList
flist
.flist
- FList the flist with dataEBufException
public void setBillUnitName(String name)
mBillUnitName
.name
- String the bill unit namepublic void setPaymentMethod(String s)
paymentMethod
.s
- String the payment methodpublic void setMemberCount(int i)
mMemberCount
.i
- int member countpublic void setParentPoid(Poid p)
mParent
p
- Poid the parent poidpublic void setAccountNumber(String s)
s
- String the account number stringpublic void setGroupOwner(Poid p)
p
- Poid the group owner poid.public void setGroupOwnerName(String s)
s
- String the group owner namepublic void setName(String name)
name
- String the group namepublic String getName()
public String getAccountNumber()
public Poid getParentPoid()
public String getGroupOwnerName()
public Poid getGroupPoid()
public Poid getGroupOwner()
public String getPaymentMethod()
public String getBillUnitName()
public int getMemberCount()
public String getSharingRenderer()
public int getSharingCount()
public void addSharing(String s)
s
- Stringpublic void sortPayFor()
public ArrayList getSharingItems()
public ArrayList getSharingItemsOriginal()
initSharingItemsOriginal()
. Otherwise
this will throw an exception.public ArrayList getSharingItemsDeleted()
PSharingAvailableDialog
.
This is useful for Group Creation, Modification and View.public void setSharingItemsDeleted(ArrayList list)
list
- public ArrayList getSharingItemsAdded()
PSharingAvailableDialog
.
This is useful for Group Creation, Modification and View.public void setSharingItemsAdded(ArrayList list)
list
- public void setSharingItems(ArrayList l)
l
- ArrayListpublic void initSharingItemsOriginal()
public boolean isGlobalCSG()
Copyright © 2003, 2023, Oracle and/or its affiliates.