public class PServiceTableBeanImpl extends PIAComponentCollectionBean implements PServiceTableBean
mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY| Constructor and Description |
|---|
PServiceTableBeanImpl()
Used for retrieving service data via a custom search opcode (235).
|
| Modifier and Type | Method and Description |
|---|---|
int |
countServiceOfThisType(PModelHandle accountModel,
String type)
To count the total no of Services of particular kind ( Like clause is
used ) in an Account
|
PModelHandle[] |
getCachedSubscrAndStandaloneSvcsFrmAccount()
Returns the cached subscription & stand alone service objects.
|
Vector |
getDeferredActions()
Retrieves the number of deferred actions for each service.
|
int |
getDeferredActionsPerService(PModelHandle pm)
Retrieves the Services
|
PModelHandle[] |
getDevicesFromAccount(PModelHandle pm)
Given an /account object, retrieve the associated /device objects
|
PModelHandle[] |
getDevicesFromService(PModelHandle pm)
Given a /service object, retrieve the associated /device objects
|
List |
getPermittedDevicesForService(String serviceType)
Retrieves the list of permitted devices for the specified service type.
|
Vector<Vector> |
getServiceAliases(PModelHandle pm)
Retrives the list of service aliases from the model handle
|
LifeCycleStates |
getServiceLifeCycleState(Poid serv)
get the life cycle obj for the service
|
PModelHandle[] |
getServices() |
int |
getServicesCount() |
PModelHandle[] |
getServicesFromAccount(PModelHandle pm)
Given an /account object, retrieve the associated /service objects
|
PModelHandle[] |
getServicesFromDevice(PModelHandle pm)
Given a /device object, retrieve the associated /service objects
|
int |
getServiceType(Poid svcPoid)
Checks whether the Service Poid belongs to a Subscription service or
Member service or Stand alone service
|
ArrayList |
getStandaloneServices()
Retrieves all the standalone Services of the selected Account
|
PModelHandle[] |
getSubscrAndStandaloneSvcsFrmAccount(PModelHandle pm)
Given an /account object, retrieve the associated Subscription & stand alone service objects
The returned array does not have the details of Member services.
|
HashMap |
getSubscriptionGroups()
Retrieves all the Subscription Services & its associated Member services
of the selected Account
|
ArrayList |
getSubscriptionServices()
Retrieves all the subscription Services of the selected Account
|
boolean |
isRequired(PModelHandle serviceHandle)
returns true if the service represented by givem serviceHandle is
required
|
void |
refreshCache()
Refresh the Cache
|
void |
refreshmServices(PModelHandle model)
Refreshes the model handle with the selected services.
|
FList |
retrieveServiceDeviceData(PModelHandle pm)
Retrieves the list of all the services and devices of the account using
search opcode and caching to HashMap
|
FList |
retrieveServiceDeviceData(PModelHandle pm,
ArrayList selectedServicePoids)
Retrieves the list of all the services and devices of the account
using search opcode and caching to HashMap
|
protected FList |
searchServices(PCachedContext conn,
com.portal.pcm.fields.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,
com.portal.pcm.fields.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 |
update(int reason,
Object incoming)
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.
|
addChild, getCollectedData, getSelectionDataFor, removeChildaddRemoteListener, 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, unreferencedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, isLight, register, releaseRemoteListener, removeRemoteListener, setModelpublic PServiceTableBeanImpl()
throws RemoteException
RemoteExceptionpublic void update(int reason,
Object incoming)
throws RemoteException
update in class PIAComponentCollectionBeanreason - incoming - RemoteException - thrown for errorspublic void refreshCache()
throws RemoteException
refreshCache in interface PServiceTableBeanRemoteExceptionpublic int getDeferredActionsPerService(PModelHandle pm) throws RemoteException
getDeferredActionsPerService in interface PServiceTableBeanpm - PModelHandleRemoteExceptionpublic void refreshmServices(PModelHandle model)
refreshmServices in interface PServiceTableBeanmodel - public Vector getDeferredActions() throws RemoteException
getDeferredActions in interface PServiceTableBeanRemoteExceptionpublic PModelHandle[] getDevicesFromAccount(PModelHandle pm) throws RemoteException
getDevicesFromAccount in interface PServiceTableBeanpm - PModelHandleRemoteExceptionpublic PModelHandle[] getServicesFromAccount(PModelHandle pm) throws RemoteException
getServicesFromAccount in interface PServiceTableBeanpm - update - . If set, always go to Portal and retrieve the dataRemoteExceptionpublic PModelHandle[] getCachedSubscrAndStandaloneSvcsFrmAccount()
getCachedSubscrAndStandaloneSvcsFrmAccount in interface PServiceTableBeanpublic PModelHandle[] getSubscrAndStandaloneSvcsFrmAccount(PModelHandle pm) throws RemoteException
getSubscrAndStandaloneSvcsFrmAccount in interface PServiceTableBeanpm - PModelHandle of Account PoidRemoteExceptionpublic PModelHandle[] getServicesFromDevice(PModelHandle pm) throws RemoteException
getServicesFromDevice in interface PServiceTableBeanpm - The device objectRemoteExceptionpublic List getPermittedDevicesForService(String serviceType) throws RemoteException
getPermittedDevicesForService in interface PServiceTableBeanserviceType - The service type for which the permitted device types are
retrieved.RemoteExceptionpublic PModelHandle[] getDevicesFromService(PModelHandle pm) throws RemoteException
getDevicesFromService in interface PServiceTableBeanpm - The service objectRemoteExceptionpublic boolean isRequired(PModelHandle serviceHandle) throws RemoteException
isRequired in interface PServiceTableBeanRemoteExceptionpublic LifeCycleStates getServiceLifeCycleState(Poid serv) throws RemoteException
getServiceLifeCycleState in interface PServiceTableBeanRemoteExceptionprotected FList searchServices(PCachedContext conn, com.portal.pcm.fields.FldResults fResults, Poid mAccountPoid) throws EBufException
conn - PCachedContext instancefResults - FldResults instanceEBufExceptionprotected int searchServices(PCachedContext conn, com.portal.pcm.fields.FldResults fResults, Poid mAccountPoid, int threshold) throws EBufException
conn - PCachedContext instancefResults - FldResults instanceEBufExceptionpublic int getServicesCount()
public int getServiceType(Poid svcPoid)
getServiceType in interface PServiceTableBeansvcPoid - The Poid os ServiceRemoteExceptionpublic ArrayList getStandaloneServices()
getStandaloneServices in interface PServiceTableBeanRemoteExceptionpublic ArrayList getSubscriptionServices()
getSubscriptionServices in interface PServiceTableBeanRemoteExceptionpublic HashMap getSubscriptionGroups()
getSubscriptionGroups in interface PServiceTableBeanpublic int countServiceOfThisType(PModelHandle accountModel, String type) throws RemoteException
countServiceOfThisType in interface PServiceTableBeanaccountModel - The PModelHandle of the Accounttype - Type of the Service search for viz. /service/telcoRemoteExceptionpublic PModelHandle[] getServices() throws RemoteException
getServices in interface PServiceTableBeanRemoteExceptionpublic FList retrieveServiceDeviceData(PModelHandle pm) throws RemoteException
retrieveServiceDeviceData in interface PServiceTableBeanpm - PModelHandleRemoteExceptionpublic FList retrieveServiceDeviceData(PModelHandle pm, ArrayList selectedServicePoids) throws RemoteException
retrieveServiceDeviceData in interface PServiceTableBeanpm - PModelHandleRemoteExceptionpublic Vector<Vector> getServiceAliases(PModelHandle pm) throws RemoteException
getServiceAliases in interface PServiceTableBeanpm - PModelhandle of selected serviceRemoteExceptionCopyright © 2003, 2023, Oracle and/or its affiliates.