Package com.portal.app.ccare.comp
Class PSponsorGroupBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.ccare.comp.PSponsorGroupBeanImpl
- All Implemented Interfaces:
PSponsorGroupBean,PIACollectionBean,PControllerBean,Serializable,Remote,Unreferenced
Controller class for handling sponsorship within customer center.
- Version:
- %version: 17 % %date_modified: Tue Dec 11 11:57:23 2001 %
- See Also:
-
Field Summary
Fields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTYFields inherited from interface com.portal.app.ccare.comp.PSponsorGroupBean
ALL_RATES, FOLDS, INITIAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMembers(PModelHandle groups, int index, Vector data) Add the given list of members to the sponsor group.voidClear out all information stored in the cache for the sponsor groups.voidcreateGroup(PModelHandle account, String name) Create a sponsor group for the given account using the given name.voiddeleteGroup(PModelHandle groups, int index) Delete the sponsor group from the given account.voiddeleteMembers(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.Methods inherited from class com.portal.bas.comp.PIAComponentCollectionBean
addChild, getCollectedData, getSelectionDataFor, removeChild, updateMethods inherited from class com.portal.bas.PControllerImpl
addRemoteListener, closeSecContext, createClientException, distributeEventToListeners, fireModelChangeEvent, getAppController, getArrayRange, getContext, getField, getField, getField, getFieldWithRestriction, getFieldWithRestriction, getFieldWithRestriction, getModel, getRemoteListenerHandle, getSecContext, handleDistributeToListener, isLight, register, releaseContext, releaseRemoteListener, removeRemoteListener, setField, setField, setModel, unreferencedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.portal.bas.PControllerBean
addRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, isLight, register, releaseRemoteListener, removeRemoteListener, setModel
-
Constructor Details
-
PSponsorGroupBeanImpl
- Throws:
RemoteException
-
-
Method Details
-
getGroups
Returns PModelHandle which represents an array of sponsor groups which is owned by the given account.- Specified by:
getGroupsin interfacePSponsorGroupBean- 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.- Specified by:
getGroupPlansin interfacePSponsorGroupBean- 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.- Specified by:
getMembersin interfacePSponsorGroupBean- Parameters:
groups- the sponsor groupsindex- the selected group- Returns:
- sponsor group members
- Throws:
RemoteException
-
getRatePlans
Returns the rate plans for the given product.- Specified by:
getRatePlansin interfacePSponsorGroupBean- Parameters:
account- the current accountproduct- the name of the product- Returns:
- the list of rate plans
- Throws:
RemoteException
-
getProducts
public 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.- Specified by:
getProductsin interfacePSponsorGroupBean- 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.- Specified by:
createGroupin interfacePSponsorGroupBean- Parameters:
account- the current accountname- the name for the group- Throws:
RemoteException
-
deleteGroup
Delete the sponsor group from the given account.- Specified by:
deleteGroupin interfacePSponsorGroupBean- 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.- Specified by:
modifyGroupin interfacePSponsorGroupBean- 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.- Specified by:
addMembersin interfacePSponsorGroupBean- 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.- Specified by:
deleteMembersin interfacePSponsorGroupBean- Parameters:
groups- the list of sponsor groupsindex- the group to modifydata- the list of members to deletethe- list of members to delete- Throws:
RemoteException
-
clearGroupCache
public void clearGroupCache()Clear out all information stored in the cache for the sponsor groups.- Specified by:
clearGroupCachein interfacePSponsorGroupBean
-