Package com.portal.app.ccare.comp
Class PServiceTableBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.bas.comp.PIAComponentCollectionBean
com.portal.app.ccare.comp.PServiceTableBeanImpl
- All Implemented Interfaces:
PServiceTableBean,PIACollectionBean,PControllerBean,Serializable,Remote,Unreferenced
Controller class for the service table. This class retrieves all of the
services for a particular account and resets that array of services as the
primary model handle for the associated view component. So as far as the view
is concerned, it gets a /account object sent in as its PModelHandle but
before any components in the view see that account object it is converted
into a service array.
This class can also be used to retrieve the number of deferred actions for each service.
This class can also be used to retrieve the number of deferred actions for each service.
- Version:
- %version: 9.2 % %date_modified: Mon Jun 17 12:04:38 2002 %
- Author:
- kapono
- 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
ConstructorsConstructorDescriptionUsed for retrieving service data via a custom search opcode (235). -
Method Summary
Modifier and TypeMethodDescriptionintcountServiceOfThisType(PModelHandle accountModel, String type) To count the total no of Services of particular kind ( Like clause is used ) in an AccountReturns the cached subscription invalid input: '&' stand alone service objects.Retrieves the number of deferred actions for each service.intRetrieves the ServicesGiven an /account object, retrieve the associated /device objectsGiven a /service object, retrieve the associated /device objectsgetPermittedDevicesForService(String serviceType) Retrieves the list of permitted devices for the specified service type.Retrives the list of service aliases from the model handlegetServiceLifeCycleState(Poid serv) get the life cycle obj for the serviceintGiven an /account object, retrieve the associated /service objectsGiven a /device object, retrieve the associated /service objectsintgetServiceType(Poid svcPoid) Checks whether the Service Poid belongs to a Subscription service or Member service or Stand alone serviceRetrieves all the standalone Services of the selected AccountGiven an /account object, retrieve the associated Subscription invalid input: '&' stand alone service objects The returned array does not have the details of Member services.Retrieves all the Subscription Services invalid input: '&' its associated Member services of the selected AccountRetrieves all the subscription Services of the selected AccountbooleanisRequired(PModelHandle serviceHandle) returns true if the service represented by givem serviceHandle is requiredvoidRefresh the CachevoidrefreshmServices(PModelHandle model) Refreshes the model handle with the selected services.Retrieves the list of all the services and devices of the account using search opcode and caching to HashMapretrieveServiceDeviceData(PModelHandle pm, ArrayList selectedServicePoids) Retrieves the list of all the services and devices of the account using search opcode and caching to HashMapprotected FListsearchServices(PCachedContext conn, FldResults fResults, Poid mAccountPoid) Returns an Flist with an array of results as per the search criteria This method calls the PCM_OP_SEARCH opcode to get the services for the account The search template in the input flist can be changed to get the desired services as per the requirement.protected intsearchServices(PCachedContext conn, FldResults fResults, Poid mAccountPoid, int threshold) Returns an Flist with an array of results as per the search criteria This method calls the PCM_OP_SEARCH opcode to get the services for the account The search template in the input flist can be changed to get the desired services as per the requirement.voidCalled when a new account object is made available for display This method currently uses search opcode 235 to retrieve the services for the given account.Methods inherited from class com.portal.bas.comp.PIAComponentCollectionBean
addChild, getCollectedData, getSelectionDataFor, removeChildMethods 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
-
PServiceTableBeanImpl
Used for retrieving service data via a custom search opcode (235).- Throws:
RemoteException
-
-
Method Details
-
update
Called when a new account object is made available for display This method currently uses search opcode 235 to retrieve the services for the given account.- Overrides:
updatein classPIAComponentCollectionBean- Parameters:
reason-incoming-- Throws:
RemoteException- thrown for errors
-
refreshCache
Refresh the Cache- Specified by:
refreshCachein interfacePServiceTableBean- Throws:
RemoteException
-
getDeferredActionsPerService
Retrieves the Services- Specified by:
getDeferredActionsPerServicein interfacePServiceTableBean- Parameters:
pm- PModelHandle- Returns:
- int
- Throws:
RemoteException
-
refreshmServices
Refreshes the model handle with the selected services.- Specified by:
refreshmServicesin interfacePServiceTableBean- Parameters:
model-
-
getDeferredActions
Retrieves the number of deferred actions for each service. The order of the items in the returned Vector will match the order of services in the array (of the PModelHandle).- Specified by:
getDeferredActionsin interfacePServiceTableBean- Returns:
- A Vector containing the number of deferred actions for each service.
- Throws:
RemoteException
-
getDevicesFromAccount
Given an /account object, retrieve the associated /device objects- Specified by:
getDevicesFromAccountin interfacePServiceTableBean- Parameters:
pm- PModelHandle- Returns:
- PModelHandle[]
- Throws:
RemoteException
-
getServicesFromAccount
Given an /account object, retrieve the associated /service objects- Specified by:
getServicesFromAccountin interfacePServiceTableBean- Parameters:
pm-update- . If set, always go to Portal and retrieve the data- Throws:
RemoteException
-
getCachedSubscrAndStandaloneSvcsFrmAccount
Returns the cached subscription invalid input: '&' stand alone service objects. The returned array does not have the details of Member services. This method is called to populate the parent Service Nodes of JTreeTable in Service tab.- Specified by:
getCachedSubscrAndStandaloneSvcsFrmAccountin interfacePServiceTableBean- Returns:
- PModelHandle[]
-
getSubscrAndStandaloneSvcsFrmAccount
Given an /account object, retrieve the associated Subscription invalid input: '&' stand alone service objects The returned array does not have the details of Member services. This method is called to populate the parent Service Nodes of JTreeTable in Servie tab.- Specified by:
getSubscrAndStandaloneSvcsFrmAccountin interfacePServiceTableBean- Parameters:
pm- PModelHandle of Account Poid- Returns:
- PModelHandle[]
- Throws:
RemoteException
-
getServicesFromDevice
Given a /device object, retrieve the associated /service objects- Specified by:
getServicesFromDevicein interfacePServiceTableBean- Parameters:
pm- The device object- Returns:
- An array of services associated with the given device
- Throws:
RemoteException
-
getPermittedDevicesForService
Retrieves the list of permitted devices for the specified service type.- Specified by:
getPermittedDevicesForServicein interfacePServiceTableBean- Parameters:
serviceType- The service type for which the permitted device types are retrieved.- Returns:
- The list of device types.
- Throws:
RemoteException
-
getDevicesFromService
Given a /service object, retrieve the associated /device objects- Specified by:
getDevicesFromServicein interfacePServiceTableBean- Parameters:
pm- The service object- Returns:
- An array of devices associated with the given service
- Throws:
RemoteException
-
isRequired
returns true if the service represented by givem serviceHandle is required- Specified by:
isRequiredin interfacePServiceTableBean- Throws:
RemoteException
-
getServiceLifeCycleState
get the life cycle obj for the service- Specified by:
getServiceLifeCycleStatein interfacePServiceTableBean- Throws:
RemoteException
-
searchServices
protected FList searchServices(PCachedContext conn, FldResults fResults, Poid mAccountPoid) throws EBufException Returns an Flist with an array of results as per the search criteria This method calls the PCM_OP_SEARCH opcode to get the services for the account The search template in the input flist can be changed to get the desired services as per the requirement.- Parameters:
conn- PCachedContext instancefResults- FldResults instance- Returns:
- Output Flist with results array
- Throws:
EBufException
-
searchServices
protected int searchServices(PCachedContext conn, FldResults fResults, Poid mAccountPoid, int threshold) throws EBufException Returns an Flist with an array of results as per the search criteria This method calls the PCM_OP_SEARCH opcode to get the services for the account The search template in the input flist can be changed to get the desired services as per the requirement.- Parameters:
conn- PCachedContext instancefResults- FldResults instance- Returns:
- Output Flist with results array
- Throws:
EBufException
-
getServicesCount
public int getServicesCount() -
getServiceType
Checks whether the Service Poid belongs to a Subscription service or Member service or Stand alone service- Specified by:
getServiceTypein interfacePServiceTableBean- Parameters:
svcPoid- The Poid os Service- Returns:
- An integer Values; 0=>stand alone service; 1=> Subscription group service ; 2=> member service
- Throws:
RemoteException
-
getStandaloneServices
Retrieves all the standalone Services of the selected Account- Specified by:
getStandaloneServicesin interfacePServiceTableBean- Returns:
- An ArrayList which contains the Poids of all Stand Alone Services
- Throws:
RemoteException
-
getSubscriptionServices
Retrieves all the subscription Services of the selected Account- Specified by:
getSubscriptionServicesin interfacePServiceTableBean- Returns:
- An ArrayList which contains the Poids of all Subscription Services
- Throws:
RemoteException
-
getSubscriptionGroups
Retrieves all the Subscription Services invalid input: '&' its associated Member services of the selected Account- Specified by:
getSubscriptionGroupsin interfacePServiceTableBean- Returns:
- A HashMap which contains the Poids of all Subscription Services as Keys invalid input: '&' an ArrayList which contains Poids of all Member Services as Value.
-
countServiceOfThisType
To count the total no of Services of particular kind ( Like clause is used ) in an Account- Specified by:
countServiceOfThisTypein interfacePServiceTableBean- Parameters:
accountModel- The PModelHandle of the Accounttype- Type of the Service search for viz. /service/telco- Returns:
- An integer
- Throws:
RemoteException
-
getServices
- Specified by:
getServicesin interfacePServiceTableBean- Throws:
RemoteException
-
retrieveServiceDeviceData
Retrieves the list of all the services and devices of the account using search opcode and caching to HashMap- Specified by:
retrieveServiceDeviceDatain interfacePServiceTableBean- Parameters:
pm- PModelHandle- Returns:
- FList
- Throws:
RemoteException
-
retrieveServiceDeviceData
public FList retrieveServiceDeviceData(PModelHandle pm, ArrayList selectedServicePoids) throws RemoteException Retrieves the list of all the services and devices of the account using search opcode and caching to HashMap- Specified by:
retrieveServiceDeviceDatain interfacePServiceTableBean- Parameters:
pm- PModelHandle- Returns:
- FList
- Throws:
RemoteException
-
getServiceAliases
Retrives the list of service aliases from the model handle- Specified by:
getServiceAliasesin interfacePServiceTableBean- Parameters:
pm- PModelhandle of selected service- Returns:
- vector containing list of aliases
- Throws:
RemoteException
-