public class PaymentGroupContainerImpl extends java.lang.Object implements PaymentGroupContainer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected static java.lang.String |
PAYMENT_GROUPS |
Constructor and Description |
---|
PaymentGroupContainerImpl(MutableRepositoryItem pRepositoryItem)
Constructs a PaymentGroupContainerImpl object.
|
Modifier and Type | Method and Description |
---|---|
void |
addPaymentGroup(PaymentGroup pPaymentGroup)
Add the PaymentGroup to the container.
|
void |
addPaymentGroup(PaymentGroup pPaymentGroup,
int pIndex)
Add the PaymentGroup to the container at the given index.
|
PaymentGroup |
getPaymentGroup(java.lang.String pPaymentGroupId)
Returns the PaymentGroup whose id is pPaymentGroupId.
|
int |
getPaymentGroupCount()
Returns the number of PaymentGroups in the container.
|
java.util.List |
getPaymentGroups()
Returns a List of PaymentGroups.
|
protected java.util.List |
getRepositoryItemList() |
void |
removeAllPaymentGroups()
Removes all the PaymentGroups
|
PaymentGroup |
removePaymentGroup(java.lang.String pPaymentGroupId)
Removes a PaymentGroup whose id is passed in.
|
public static java.lang.String CLASS_VERSION
protected static java.lang.String PAYMENT_GROUPS
public PaymentGroupContainerImpl(MutableRepositoryItem pRepositoryItem)
protected java.util.List getRepositoryItemList()
public java.util.List getPaymentGroups()
getPaymentGroups
in interface PaymentGroupContainer
public void addPaymentGroup(PaymentGroup pPaymentGroup) throws DuplicatePaymentGroupException, InvalidParameterException
addPaymentGroup
in interface PaymentGroupContainer
DuplicatePaymentGroupException
InvalidParameterException
public void addPaymentGroup(PaymentGroup pPaymentGroup, int pIndex) throws DuplicatePaymentGroupException, InvalidParameterException
addPaymentGroup
in interface PaymentGroupContainer
DuplicatePaymentGroupException
InvalidParameterException
public PaymentGroup removePaymentGroup(java.lang.String pPaymentGroupId) throws PaymentGroupNotFoundException, InvalidParameterException
removePaymentGroup
in interface PaymentGroupContainer
PaymentGroupNotFoundException
InvalidParameterException
public void removeAllPaymentGroups()
removeAllPaymentGroups
in interface PaymentGroupContainer
public PaymentGroup getPaymentGroup(java.lang.String pPaymentGroupId) throws PaymentGroupNotFoundException, InvalidParameterException
getPaymentGroup
in interface PaymentGroupContainer
PaymentGroupNotFoundException
InvalidParameterException
public int getPaymentGroupCount()
getPaymentGroupCount
in interface PaymentGroupContainer