Package com.portal.app.ccare.comp
Interface PSponsorGroupBean
- All Superinterfaces:
Remote
- All Known Implementing Classes:
PSponsorGroupBeanImpl
Generic interface for handling sponsorship within customer center.
- Version:
- %version: 8 % %date_modified: Thu Oct 18 15:24:42 2001 %
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Indicates that all sponsored rate plans are used for the product.static final int
Indicates that the sponsored rate plans is a fold.static final int
Indicates that the sponsored rate plan is guaranteed.static final int
Inital state for sponsorship flag. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMembers
(PModelHandle groups, int index, Vector data) Add the given list of members to the sponsor group.void
Clear out all information stored in the cache for the sponsor groups.void
createGroup
(PModelHandle account, String name) Create a sponsor group for the given account using the given name.void
deleteGroup
(PModelHandle groups, int index) Delete the sponsor group from the given account.void
deleteMembers
(PModelHandle groups, int index, Vector data) Remove the given list of members from the sponsor group.getGroupPlans
(PModelHandle groups, int index) Returns the rate plans associated with the sponsor group for the given index.getGroups
(PModelHandle account) Returns PModelHandle which represents an array of sponsor groups which is owned by the given account.getMembers
(PModelHandle groups, int index) Returns the members associated with the sponsor group for the given index.String[]
getProducts
(PModelHandle account, PScopeEntryPoint brandInfo, boolean force) Get the list of products using the database information in the given account.getRatePlans
(PModelHandle account, String product) Returns the rate plans for the given product.modifyGroup
(PModelHandle groups, int index, Vector data) Update the sponsor group with the new product/rate plan information.
-
Field Details
-
INITIAL
static final int INITIALInital state for sponsorship flag.- See Also:
-
ALL_RATES
static final int ALL_RATESIndicates that all sponsored rate plans are used for the product.- See Also:
-
GUARANTEE
static final int GUARANTEEIndicates that the sponsored rate plan is guaranteed.- See Also:
-
FOLDS
static final int FOLDSIndicates that the sponsored rate plans is a fold.- See Also:
-
-
Method Details
-
getGroups
Returns PModelHandle which represents an array of sponsor groups which is owned by the given account.- Parameters:
account
- the sponsor group owner account- Returns:
- sponsor group data
- Throws:
RemoteException
-
getGroupPlans
Returns the rate plans associated with the sponsor group for the given index.- Parameters:
groups
- the sponsor groupsindex
- of selected group- Returns:
- sponsor group rate plans
- Throws:
RemoteException
-
getMembers
Returns the members associated with the sponsor group for the given index.- Parameters:
groups
- the sponsor groupsindex
- of selected group- Returns:
- sponsor group members
- Throws:
RemoteException
-
getRatePlans
Returns the rate plans for the given product.- Parameters:
account
- the current accountproduct
- the name of the product- Returns:
- the list of rate plans
- Throws:
RemoteException
-
getProducts
String[] getProducts(PModelHandle account, PScopeEntryPoint brandInfo, boolean force) throws RemoteException Get the list of products using the database information in the given account. A static cache is used to store the products.- Parameters:
account
- the current accountbrandInfo
- the current brand or null if branding is disabledforce
- if true, redo a lookup of the product list from the db- Returns:
- an array of product names
- Throws:
RemoteException
-
createGroup
Create a sponsor group for the given account using the given name.- Parameters:
account
- the current accountname
- the name for the group- Throws:
RemoteException
-
deleteGroup
Delete the sponsor group from the given account.- Parameters:
groups
- the list of sponsor groupsindex
- the group to delete- Throws:
RemoteException
-
modifyGroup
Update the sponsor group with the new product/rate plan information.- Parameters:
groups
- the list of sponsor groupsindex
- the group to modifythe
- modified group data (products and rate plans)- Returns:
- the modifed group
- Throws:
RemoteException
-
addMembers
Add the given list of members to the sponsor group.- Parameters:
groups
- the list of sponsor groupsindex
- the group to modifythe
- list of members to add- Throws:
RemoteException
-
deleteMembers
Remove the given list of members from the sponsor group.- Parameters:
groups
- the list of sponsor groupsindex
- the group to modifydata
- the list of members to delete- Throws:
RemoteException
-
clearGroupCache
void clearGroupCache()Clear out all information stored in the cache for the sponsor groups.
-