Package com.portal.app.ccare.comp
Class PSubscriberPrefsBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.ccare.comp.PSubscriberPrefsBeanImpl
- All Implemented Interfaces:
PSubscriberPrefsBean,PIACollectionBean,PControllerBean,Serializable,Remote,Unreferenced
public class PSubscriberPrefsBeanImpl
extends PIAComponentCollectionBean
implements PSubscriberPrefsBean
Implementation class for Subscriber Preferences Page
- See Also:
-
Field Summary
Fields inherited from class com.portal.bas.PControllerImpl
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddToModelHandle(HashMap<Integer, FList> subsPrefsRowMap, PModelHandle acModel) This method will add the preferences to the account modelvoidClears subsPrefsPoidMap hashmapvoiddeleteSubscriberPrefs(int row, Poid p) Deletes the Subscriber Preference associated with service poidBuilds servicenodes for account creation modeBuilds servicenodes for account maintenance modegetSubscriberPrefs(int row, Poid p) Returns the preferences associated with the service.Gets the preferences associated with service/account poidGets the /config/subscriber_preferences_mapvoidremoveType(FList prefs) Removes FldType details associated with the preferenceprotected FListsearchServices(Poid mAccountPoid) Returns the services associated with account poid.voidsetAccountDb(PModelHandle model) Sets the mAccountPoid, this poid will be used to read the db.voidsetSubscriberPrefs(int row, FList prefs, Poid poid) Sets the subscriber preference.updateLoginID(ArrayList<PSubscriberPrefsServicesNode> snodes, HashMap<Integer, String> serviceIndexToLoginMap) Populates the ServicePrefsNodes with the updated login info.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
-
PSubscriberPrefsBeanImpl
- Throws:
Exception
-
-
Method Details
-
setAccountDb
Sets the mAccountPoid, this poid will be used to read the db.- Specified by:
setAccountDbin interfacePSubscriberPrefsBean- Parameters:
model-
-
getServicesMaintenace
Builds servicenodes for account maintenance mode- Specified by:
getServicesMaintenacein interfacePSubscriberPrefsBean- Parameters:
model-- Returns:
- serviceNodes
-
getServicesAcctCreation
Builds servicenodes for account creation mode- Specified by:
getServicesAcctCreationin interfacePSubscriberPrefsBean- Parameters:
model-- Returns:
-
updateLoginID
public ArrayList<PSubscriberPrefsServicesNode> updateLoginID(ArrayList<PSubscriberPrefsServicesNode> snodes, HashMap<Integer, String> serviceIndexToLoginMap) Populates the ServicePrefsNodes with the updated login info.- Specified by:
updateLoginIDin interfacePSubscriberPrefsBean- Parameters:
snodes-serviceIndexToLoginMap-- Returns:
- ArrayList
-
addToModelHandle
This method will add the preferences to the account model- Specified by:
addToModelHandlein interfacePSubscriberPrefsBean- Parameters:
subsPrefsRowMap-acModel- , Account model- Returns:
- profileModel
-
clearSubsPrefsPoidMap
public void clearSubsPrefsPoidMap()Clears subsPrefsPoidMap hashmap- Specified by:
clearSubsPrefsPoidMapin interfacePSubscriberPrefsBean
-
getSubsPrefsPoidMap
Gets the preferences associated with service/account poid- Specified by:
getSubsPrefsPoidMapin interfacePSubscriberPrefsBean- Parameters:
p- , service/account poid
-
getSubscriberPrefs
Returns the preferences associated with the service.- Specified by:
getSubscriberPrefsin interfacePSubscriberPrefsBean- Parameters:
row- , table rowp- , service poid or account poid- Returns:
- outFlist, preferences associated with service
- Throws:
Exception
-
removeType
Removes FldType details associated with the preference- Parameters:
prefs-
-
deleteSubscriberPrefs
Deletes the Subscriber Preference associated with service poid- Specified by:
deleteSubscriberPrefsin interfacePSubscriberPrefsBean- Parameters:
row- , table rowp- , service poid or account poid
-
setSubscriberPrefs
Sets the subscriber preference.- Specified by:
setSubscriberPrefsin interfacePSubscriberPrefsBean- Parameters:
row- , table rowprefs- , FList which contains the new valuespoid- , profile poid- Throws:
Exception
-
readConfigPreferencesMap
Gets the /config/subscriber_preferences_map- Specified by:
readConfigPreferencesMapin interfacePSubscriberPrefsBean- Returns:
- outputFList, /config/subscriber_preferences_map object.
-
searchServices
Returns the services associated with account poid.- Parameters:
mAccountPoid- , Account poidconn- , cached context- Returns:
- flist, all the services purchased in the account
- Throws:
EBufException
-