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, removeChild
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addRemoteListener, getArrayRange, getModel, getRemoteListenerHandle, isLight, register, releaseRemoteListener, removeRemoteListener, setModel
public PServiceTableBeanImpl() throws RemoteException
RemoteException
public void update(int reason, Object incoming) throws RemoteException
update
in class PIAComponentCollectionBean
reason
- incoming
- RemoteException
- thrown for errorspublic void refreshCache() throws RemoteException
refreshCache
in interface PServiceTableBean
RemoteException
public int getDeferredActionsPerService(PModelHandle pm) throws RemoteException
getDeferredActionsPerService
in interface PServiceTableBean
pm
- PModelHandleRemoteException
public void refreshmServices(PModelHandle model)
refreshmServices
in interface PServiceTableBean
model
- public Vector getDeferredActions() throws RemoteException
getDeferredActions
in interface PServiceTableBean
RemoteException
public PModelHandle[] getDevicesFromAccount(PModelHandle pm) throws RemoteException
getDevicesFromAccount
in interface PServiceTableBean
pm
- PModelHandleRemoteException
public PModelHandle[] getServicesFromAccount(PModelHandle pm) throws RemoteException
getServicesFromAccount
in interface PServiceTableBean
pm
- update
- . If set, always go to Portal and retrieve the dataRemoteException
public PModelHandle[] getCachedSubscrAndStandaloneSvcsFrmAccount()
getCachedSubscrAndStandaloneSvcsFrmAccount
in interface PServiceTableBean
public PModelHandle[] getSubscrAndStandaloneSvcsFrmAccount(PModelHandle pm) throws RemoteException
getSubscrAndStandaloneSvcsFrmAccount
in interface PServiceTableBean
pm
- PModelHandle of Account PoidRemoteException
public PModelHandle[] getServicesFromDevice(PModelHandle pm) throws RemoteException
getServicesFromDevice
in interface PServiceTableBean
pm
- The device objectRemoteException
public List getPermittedDevicesForService(String serviceType) throws RemoteException
getPermittedDevicesForService
in interface PServiceTableBean
serviceType
- The service type for which the permitted device types are
retrieved.RemoteException
public PModelHandle[] getDevicesFromService(PModelHandle pm) throws RemoteException
getDevicesFromService
in interface PServiceTableBean
pm
- The service objectRemoteException
public boolean isRequired(PModelHandle serviceHandle) throws RemoteException
isRequired
in interface PServiceTableBean
RemoteException
public LifeCycleStates getServiceLifeCycleState(Poid serv) throws RemoteException
getServiceLifeCycleState
in interface PServiceTableBean
RemoteException
protected FList searchServices(PCachedContext conn, com.portal.pcm.fields.FldResults fResults, Poid mAccountPoid) throws EBufException
conn
- PCachedContext instancefResults
- FldResults instanceEBufException
protected int searchServices(PCachedContext conn, com.portal.pcm.fields.FldResults fResults, Poid mAccountPoid, int threshold) throws EBufException
conn
- PCachedContext instancefResults
- FldResults instanceEBufException
public int getServicesCount()
public int getServiceType(Poid svcPoid)
getServiceType
in interface PServiceTableBean
svcPoid
- The Poid os ServiceRemoteException
public ArrayList getStandaloneServices()
getStandaloneServices
in interface PServiceTableBean
RemoteException
public ArrayList getSubscriptionServices()
getSubscriptionServices
in interface PServiceTableBean
RemoteException
public HashMap getSubscriptionGroups()
getSubscriptionGroups
in interface PServiceTableBean
public int countServiceOfThisType(PModelHandle accountModel, String type) throws RemoteException
countServiceOfThisType
in interface PServiceTableBean
accountModel
- The PModelHandle of the Accounttype
- Type of the Service search for viz. /service/telcoRemoteException
public PModelHandle[] getServices() throws RemoteException
getServices
in interface PServiceTableBean
RemoteException
public FList retrieveServiceDeviceData(PModelHandle pm) throws RemoteException
retrieveServiceDeviceData
in interface PServiceTableBean
pm
- PModelHandleRemoteException
public FList retrieveServiceDeviceData(PModelHandle pm, ArrayList selectedServicePoids) throws RemoteException
retrieveServiceDeviceData
in interface PServiceTableBean
pm
- PModelHandleRemoteException
public Vector<Vector> getServiceAliases(PModelHandle pm) throws RemoteException
getServiceAliases
in interface PServiceTableBean
pm
- PModelhandle of selected serviceRemoteException
Copyright © 2003, 2023, Oracle and/or its affiliates.