Package com.portal.web.comp
Class PAccountActivityBeanImpl
java.lang.Object
com.portal.bas.PControllerImpl
com.portal.web.comp.PAccountActivityBeanImpl
- All Implemented Interfaces:
PControllerBean
,PAccountActivityBean
,Serializable
,Remote
,Unreferenced
public class PAccountActivityBeanImpl
extends PControllerImpl
implements PAccountActivityBean, Serializable
PAccountActivityBeanImpl
is a controller that retrieves
the events associated with an account's POID and processes the output
flist for the events.- Version:
- %version: 16 % %date_modified: Mon Jan 21 14:03:31 2002 %
- Author:
- sujata
- 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 TypeMethodDescriptionvoid
accountactivity
(PModelHandle mH, ResourceBundle bundle) Deprecated.getEvent
(int index) Returns a key to value map of the event at the given index location.Gets a list of the account's activity events.getEvents
(int index) Gets the event at the specified index.Gets a list of the IPT events.getIPTEvents
(int index) Gets the IPT event at the specified index.boolean
getIsIPT()
Determines whether an IPT event is present.getSelectionDataFor
(String dataItem, int index) Used only for BASSwing
clients.protected List
normalizeEventElementMap
(Map elementMap) Normalizes the event element map.protected Map
processEventElement
(PCachedContext ctx, FList out, Map eventInfo) Parses event array elements in the output flist, removing entries that do not have a balance impact.protected void
processEventFlist
(PCachedContext ctx, FList out, Poid accountPoid) Deprecated.As of Release 6.2, this method is deprecated and replaced by theprocessResultEventFlist(PCachedContext, FList, Poid, Map)
method, which is called by thesearchEvents(Map)
method.protected void
processResultEventFlist
(PCachedContext ctx, FList out, Poid accountPoid, Map eventInfo) CallsprocessEventElement(PCachedContext, FList, Map)
to parse an event's output flist.void
searchEvents
(Map eventInfo) Retrieves the account POID from its cachedPModelHandle
and searches for an event.void
setEndTime
(Date endDate) Sets the input date and time for "End billing Date."void
Sets the event indexed property at index.void
Sets the mapped event indexed property at index.void
setIPTEvents
(CallActivity sResult) Sets the IPT event indexed property at index.void
Establishes the model handle for this component.void
setStartTime
(Date startDate) Sets the input date and time for "Start billing Date."void
Used only for BASSwing
clients.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
-
Constructor Details
-
PAccountActivityBeanImpl
Creates an account activity controller.- Throws:
RemoteException
- thrown for errors
-
-
Method Details
-
setStartTime
Sets the input date and time for "Start billing Date."- Specified by:
setStartTime
in interfacePAccountActivityBean
- Parameters:
startDate
- the value to use for the field
-
setEndTime
Sets the input date and time for "End billing Date."- Specified by:
setEndTime
in interfacePAccountActivityBean
- Parameters:
endDate
- the value to use for the field
-
setModelHandle
Establishes the model handle for this component.- Specified by:
setModelHandle
in interfacePAccountActivityBean
- Parameters:
mH
- thePModelHandle
for the account- Throws:
RemoteException
- thrown for errors
-
getEvents
Gets a list of the account's activity events.- Specified by:
getEvents
in interfacePAccountActivityBean
- Returns:
- A list of events.
-
getEvents
Gets the event at the specified index.- Specified by:
getEvents
in interfacePAccountActivityBean
- Parameters:
index
- the index for the event to retrieve- Returns:
- The
Activity
event.
-
getEvent
Returns a key to value map of the event at the given index location.- Parameters:
index
- the event location to map- Returns:
- A
Map
for the specified event.
-
setEvents
Sets the event indexed property at index.- Parameters:
sResult
- theActivity
event to add
-
setEvents
Sets the mapped event indexed property at index.- Parameters:
sResult
- the mapped event to add
-
getIsIPT
public boolean getIsIPT()Determines whether an IPT event is present.- Specified by:
getIsIPT
in interfacePAccountActivityBean
- Returns:
- True if this is an IPT event; false otherwise.
-
getIPTEvents
Gets a list of the IPT events.- Specified by:
getIPTEvents
in interfacePAccountActivityBean
- Returns:
- A list of the IPT events.
-
getIPTEvents
Gets the IPT event at the specified index.- Specified by:
getIPTEvents
in interfacePAccountActivityBean
- Parameters:
index
- the index for the event to retrieve- Returns:
- The IPT
CallActivity
event.
-
setIPTEvents
Sets the IPT event indexed property at index.- Parameters:
sResult
- theCallActivity
event to add
-
update
Used only for BASSwing
clients. Default behavior in this case is to do nothing.- Specified by:
update
in classPControllerImpl
- Parameters:
reason
- an integer constant that indicates the reason for the update (UPDATE_NEW_MODEL
,UPDATE_PROPERTY
,UPDATE_MODEL_CHANGE
, orUPDATE_CLIENT
)data
- the data associated withupdate
-
getSelectionDataFor
Used only for BASSwing
clients. Default behavior in this case is to do nothing and return null.- Specified by:
getSelectionDataFor
in interfacePControllerBean
- Parameters:
dataItem
- the name of a data item. Must match the name of an item changed by sending aPViewDataChangeEvent
.index
- an optional index into an array data item- Returns:
- Usually, a model handle or array of model handles.
-
accountactivity
Deprecated.As of Release 6.2, this method is deprecated and replaced by thesearchEvents(Map)
method.Retrieves activity information for the account and callsprocessEventFlist(PCachedContext, FList, Poid)
to process the output flist.- Specified by:
accountactivity
in interfacePAccountActivityBean
- Parameters:
mH
- thePModelHandle
saved in the session, along with its POIDbundle
- the resource bundle- Throws:
RemoteException
- thrown for a null context or an invalid field description
-
processEventFlist
protected void processEventFlist(PCachedContext ctx, FList out, Poid accountPoid) throws RemoteException Deprecated.As of Release 6.2, this method is deprecated and replaced by theprocessResultEventFlist(PCachedContext, FList, Poid, Map)
method, which is called by thesearchEvents(Map)
method.This method is called by theaccountactivity(PModelHandle, ResourceBundle)
method to parse the output flist.- Parameters:
ctx
- the context to the connection manager (CM)out
- the output flist passed from the opcodeaccountPoid
- the POID that represents the account- Throws:
RemoteException
- thrown if null values are passed for account activity, balance impact, or POID, or if no fields are present. Also thrown if there is no call activity passed in for an IPT account.
-
searchEvents
Retrieves the account POID from its cachedPModelHandle
and searches for an event. Calls theprocessResultEventFlist(PCachedContext, FList, Poid, Map)
method to process the event's output flist.- Specified by:
searchEvents
in interfacePAccountActivityBean
- Parameters:
eventInfo
- contains details about the event to be searched- Throws:
RemoteException
- thrown for a null context or invalid field descriptions- Since:
- Release 6.2
-
processResultEventFlist
protected void processResultEventFlist(PCachedContext ctx, FList out, Poid accountPoid, Map eventInfo) throws RemoteException CallsprocessEventElement(PCachedContext, FList, Map)
to parse an event's output flist. The parsed results are passed tonormalizeEventElementMap(Map)
to parse multiple field instances into distinct maps returned in aList
. For example, if the output flist for the event contains multipleFldBalImpact
arrays, they are parsed and normalized into separate maps, which are returned in a singleList
object.- Parameters:
ctx
- the cached contextout
- output from opcodeaccountPoid
- the account's POIDeventInfo
- a map containing information on the event- Throws:
RemoteException
- thrown for null POIDs- Since:
- Release 6.2
-
processEventElement
protected Map processEventElement(PCachedContext ctx, FList out, Map eventInfo) throws RemoteException Parses event array elements in the output flist, removing entries that do not have a balance impact.- Parameters:
ctx
- the cached contextout
- the output flist from the opcodeeventInfo
- aMap
containing information on the event- Returns:
- A
Map
containing event information retrieved from this element in the output flist. If there are multiple entries for a field in the output flist, for example, more than oneFldBalImpacts
, this method returns uniqueMap
identifiers for those entries to pass to thenormalizeEventElementMap(Map)
method for normalization into separateMap
entries in aList
returned for the event. - Throws:
RemoteException
- Since:
- Release 6.2
-
normalizeEventElementMap
Normalizes the event element map. During this process, if there were multiple entries for a field in the event's output flist, the map will be split into a list of seperate maps representing the distinct entries.- Parameters:
elementMap
- aMap
containing output flist information retrieved from the event element- Returns:
- A
List
containing the normalized maps. - Since:
- Release 6.2
- See Also:
-
searchEvents(Map)
method.