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 TypeMethodDescriptionint
countServiceOfThisType
(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.int
Retrieves 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 serviceint
Given an /account object, retrieve the associated /service objectsGiven a /device object, retrieve the associated /service objectsint
getServiceType
(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 Accountboolean
isRequired
(PModelHandle serviceHandle) returns true if the service represented by givem serviceHandle is requiredvoid
Refresh the Cachevoid
refreshmServices
(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 FList
searchServices
(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 int
searchServices
(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.void
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.Methods inherited from class com.portal.bas.comp.PIAComponentCollectionBean
addChild, getCollectedData, getSelectionDataFor, removeChild
Methods 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, unreferenced
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
update
in classPIAComponentCollectionBean
- Parameters:
reason
-incoming
-- Throws:
RemoteException
- thrown for errors
-
refreshCache
Refresh the Cache- Specified by:
refreshCache
in interfacePServiceTableBean
- Throws:
RemoteException
-
getDeferredActionsPerService
Retrieves the Services- Specified by:
getDeferredActionsPerService
in interfacePServiceTableBean
- Parameters:
pm
- PModelHandle- Returns:
- int
- Throws:
RemoteException
-
refreshmServices
Refreshes the model handle with the selected services.- Specified by:
refreshmServices
in 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:
getDeferredActions
in 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:
getDevicesFromAccount
in interfacePServiceTableBean
- Parameters:
pm
- PModelHandle- Returns:
- PModelHandle[]
- Throws:
RemoteException
-
getServicesFromAccount
Given an /account object, retrieve the associated /service objects- Specified by:
getServicesFromAccount
in 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:
getCachedSubscrAndStandaloneSvcsFrmAccount
in 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:
getSubscrAndStandaloneSvcsFrmAccount
in interfacePServiceTableBean
- Parameters:
pm
- PModelHandle of Account Poid- Returns:
- PModelHandle[]
- Throws:
RemoteException
-
getServicesFromDevice
Given a /device object, retrieve the associated /service objects- Specified by:
getServicesFromDevice
in 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:
getPermittedDevicesForService
in 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:
getDevicesFromService
in 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:
isRequired
in interfacePServiceTableBean
- Throws:
RemoteException
-
getServiceLifeCycleState
get the life cycle obj for the service- Specified by:
getServiceLifeCycleState
in 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:
getServiceType
in 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:
getStandaloneServices
in 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:
getSubscriptionServices
in 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:
getSubscriptionGroups
in 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:
countServiceOfThisType
in 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:
getServices
in 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:
retrieveServiceDeviceData
in 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:
retrieveServiceDeviceData
in interfacePServiceTableBean
- Parameters:
pm
- PModelHandle- Returns:
- FList
- Throws:
RemoteException
-
getServiceAliases
Retrives the list of service aliases from the model handle- Specified by:
getServiceAliases
in interfacePServiceTableBean
- Parameters:
pm
- PModelhandle of selected service- Returns:
- vector containing list of aliases
- Throws:
RemoteException
-