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.mFList, mRemoteListeners, UPDATE_CLIENT, UPDATE_MODEL_CHANGE, UPDATE_NEW_MODEL, UPDATE_PROPERTY| Constructor and Description |
|---|
PAccountActivityBeanImpl()
Creates an account activity controller.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accountactivity(PModelHandle mH,
ResourceBundle bundle)
Deprecated.
As of Release 6.2, this method is deprecated and replaced by the
searchEvents(Map) method. |
Map |
getEvent(int index)
Returns a key to value map of the event at the given index location.
|
List |
getEvents()
Gets a list of the account's activity events.
|
Activity |
getEvents(int index)
Gets the event at the specified index.
|
List |
getIPTEvents()
Gets a list of the IPT events.
|
CallActivity |
getIPTEvents(int index)
Gets the IPT event at the specified index.
|
boolean |
getIsIPT()
Determines whether an IPT event is present.
|
Object |
getSelectionDataFor(String dataItem,
int index)
Used only for BAS
Swing 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 the
processResultEventFlist(PCachedContext, FList, Poid, Map) method, which is
called by the searchEvents(Map) method. |
protected void |
processResultEventFlist(PCachedContext ctx,
FList out,
Poid accountPoid,
Map eventInfo)
Calls
processEventElement(PCachedContext, FList, Map) to parse
an event's output flist. |
void |
searchEvents(Map eventInfo)
Retrieves the account POID from its cached
PModelHandle
and searches for an event. |
void |
setEndTime(Date endDate)
Sets the input date and time for "End billing Date."
|
void |
setEvents(Activity sResult)
Sets the event indexed property at index.
|
void |
setEvents(Map sResult)
Sets the mapped event indexed property at index.
|
void |
setIPTEvents(CallActivity sResult)
Sets the IPT event indexed property at index.
|
void |
setModelHandle(PModelHandle mH)
Establishes the model handle for this component.
|
void |
setStartTime(Date startDate)
Sets the input date and time for "Start billing Date."
|
void |
update(int reason,
Object data)
Used only for BAS
Swing clients. |
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, unreferencedpublic PAccountActivityBeanImpl()
throws RemoteException
RemoteException - thrown for errorspublic void setStartTime(Date startDate)
setStartTime in interface PAccountActivityBeanstartDate - the value to use for the fieldpublic void setEndTime(Date endDate)
setEndTime in interface PAccountActivityBeanendDate - the value to use for the fieldpublic void setModelHandle(PModelHandle mH) throws RemoteException
setModelHandle in interface PAccountActivityBeanmH - the PModelHandle for the accountRemoteException - thrown for errorspublic List getEvents()
getEvents in interface PAccountActivityBeanpublic Activity getEvents(int index)
getEvents in interface PAccountActivityBeanindex - the index for the event to retrieveActivity event.public Map getEvent(int index)
index - the event location to mapMap for the specified event.public void setEvents(Activity sResult)
sResult - the Activity event to addpublic void setEvents(Map sResult)
sResult - the mapped event to addpublic boolean getIsIPT()
getIsIPT in interface PAccountActivityBeanpublic List getIPTEvents()
getIPTEvents in interface PAccountActivityBeanpublic CallActivity getIPTEvents(int index)
getIPTEvents in interface PAccountActivityBeanindex - the index for the event to retrieveCallActivity event.public void setIPTEvents(CallActivity sResult)
sResult - the CallActivity event to addpublic void update(int reason,
Object data)
Swing clients.
Default behavior in this case is to do nothing.update in class PControllerImplreason - an integer constant that indicates the reason for the update
(UPDATE_NEW_MODEL, UPDATE_PROPERTY,
UPDATE_MODEL_CHANGE, or UPDATE_CLIENT)data - the data associated with updatepublic Object getSelectionDataFor(String dataItem, int index)
Swing clients.
Default behavior in this case is to do nothing
and return null.getSelectionDataFor in interface PControllerBeandataItem - the name of a data item. Must match the name of
an item changed by sending a PViewDataChangeEvent.index - an optional index into an array data itempublic void accountactivity(PModelHandle mH, ResourceBundle bundle) throws RemoteException
searchEvents(Map) method.processEventFlist(PCachedContext, FList, Poid) to
process the output flist.accountactivity in interface PAccountActivityBeanmH - the PModelHandle saved in
the session, along with its POIDbundle - the resource bundleRemoteException - thrown for a null context or an invalid field
descriptionprotected void processEventFlist(PCachedContext ctx, FList out, Poid accountPoid) throws RemoteException
processResultEventFlist(PCachedContext, FList, Poid, Map) method, which is
called by the searchEvents(Map) method.accountactivity(PModelHandle, ResourceBundle) method to parse
the output flist.ctx - the context to the connection manager (CM)out - the output flist passed from the opcodeaccountPoid - the POID that represents the accountRemoteException - 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.public void searchEvents(Map eventInfo) throws RemoteException
PModelHandle
and searches for an event. Calls the
processResultEventFlist(PCachedContext, FList, Poid, Map) method to
process the event's output flist.searchEvents in interface PAccountActivityBeaneventInfo - contains details about the event to be searchedRemoteException - thrown for a null context or invalid field descriptionsprotected void processResultEventFlist(PCachedContext ctx, FList out, Poid accountPoid, Map eventInfo) throws RemoteException
processEventElement(PCachedContext, FList, Map) to parse
an event's output flist. The parsed results are passed to
normalizeEventElementMap(Map) to parse multiple field instances
into distinct maps returned in a List. For example, if the output flist
for the event contains multiple FldBalImpact arrays, they
are parsed and normalized into separate maps, which are returned in a single
List object.ctx - the cached contextout - output from opcodeaccountPoid - the account's POIDeventInfo - a map containing information on the eventRemoteException - thrown for null POIDsprotected Map processEventElement(PCachedContext ctx, FList out, Map eventInfo) throws RemoteException
ctx - the cached contextout - the output flist from the opcodeeventInfo - a Map containing information on the eventMap 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 one FldBalImpacts,
this method returns unique Map identifiers for those entries
to pass to the normalizeEventElementMap(Map) method for normalization into
separate Map entries in a List returned for the event.RemoteExceptionprotected List normalizeEventElementMap(Map elementMap)
elementMap - a Map containing output flist information retrieved
from the event elementList containing the normalized maps.processEventElement(PCachedContext, FList, Map)Copyright © 2003, 2023, Oracle and/or its affiliates.