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 TypeMethodDescriptionvoidaccountactivity(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.booleangetIsIPT()Determines whether an IPT event is present.getSelectionDataFor(String dataItem, int index) Used only for BASSwingclients.protected ListnormalizeEventElementMap(Map elementMap) Normalizes the event element map.protected MapprocessEventElement(PCachedContext ctx, FList out, Map eventInfo) Parses event array elements in the output flist, removing entries that do not have a balance impact.protected voidprocessEventFlist(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 voidprocessResultEventFlist(PCachedContext ctx, FList out, Poid accountPoid, Map eventInfo) CallsprocessEventElement(PCachedContext, FList, Map)to parse an event's output flist.voidsearchEvents(Map eventInfo) Retrieves the account POID from its cachedPModelHandleand searches for an event.voidsetEndTime(Date endDate) Sets the input date and time for "End billing Date."voidSets the event indexed property at index.voidSets the mapped event indexed property at index.voidsetIPTEvents(CallActivity sResult) Sets the IPT event indexed property at index.voidEstablishes the model handle for this component.voidsetStartTime(Date startDate) Sets the input date and time for "Start billing Date."voidUsed only for BASSwingclients.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:
setStartTimein interfacePAccountActivityBean- Parameters:
startDate- the value to use for the field
-
setEndTime
Sets the input date and time for "End billing Date."- Specified by:
setEndTimein interfacePAccountActivityBean- Parameters:
endDate- the value to use for the field
-
setModelHandle
Establishes the model handle for this component.- Specified by:
setModelHandlein interfacePAccountActivityBean- Parameters:
mH- thePModelHandlefor the account- Throws:
RemoteException- thrown for errors
-
getEvents
Gets a list of the account's activity events.- Specified by:
getEventsin interfacePAccountActivityBean- Returns:
- A list of events.
-
getEvents
Gets the event at the specified index.- Specified by:
getEventsin interfacePAccountActivityBean- Parameters:
index- the index for the event to retrieve- Returns:
- The
Activityevent.
-
getEvent
Returns a key to value map of the event at the given index location.- Parameters:
index- the event location to map- Returns:
- A
Mapfor the specified event.
-
setEvents
Sets the event indexed property at index.- Parameters:
sResult- theActivityevent 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:
getIsIPTin interfacePAccountActivityBean- Returns:
- True if this is an IPT event; false otherwise.
-
getIPTEvents
Gets a list of the IPT events.- Specified by:
getIPTEventsin interfacePAccountActivityBean- Returns:
- A list of the IPT events.
-
getIPTEvents
Gets the IPT event at the specified index.- Specified by:
getIPTEventsin interfacePAccountActivityBean- Parameters:
index- the index for the event to retrieve- Returns:
- The IPT
CallActivityevent.
-
setIPTEvents
Sets the IPT event indexed property at index.- Parameters:
sResult- theCallActivityevent to add
-
update
Used only for BASSwingclients. Default behavior in this case is to do nothing.- Specified by:
updatein 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 BASSwingclients. Default behavior in this case is to do nothing and return null.- Specified by:
getSelectionDataForin 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:
accountactivityin interfacePAccountActivityBean- Parameters:
mH- thePModelHandlesaved 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 cachedPModelHandleand searches for an event. Calls theprocessResultEventFlist(PCachedContext, FList, Poid, Map)method to process the event's output flist.- Specified by:
searchEventsin 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 multipleFldBalImpactarrays, they are parsed and normalized into separate maps, which are returned in a singleListobject.- 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- aMapcontaining information on the event- Returns:
- A
Mapcontaining 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 uniqueMapidentifiers for those entries to pass to thenormalizeEventElementMap(Map)method for normalization into separateMapentries in aListreturned 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- aMapcontaining output flist information retrieved from the event element- Returns:
- A
Listcontaining the normalized maps. - Since:
- Release 6.2
- See Also:
-
searchEvents(Map)method.