|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arunta.app.bom.Smdr
public class Smdr
Bean which wraps information, which is useful to a Total Recall VR system, from SMDRs.
Total Recall VR systems use SMDR parsers to convert raw SMDRs (strings), which they receive from PBXes, into instances of this bean. Consult the Total Recall Administration and Installation documentation on to install and activate a SMDR Parser.
Clients can use the getter methods to obtain information. The setter methods, if used by clients, will have no effect on the SMDR represented by the instance of this bean.
Constructor Summary | |
---|---|
Smdr()
|
Method Summary | |
---|---|
java.lang.String |
getAgentName()
Agent name. |
java.lang.String |
getCalledNumber()
Called number. |
java.lang.String |
getCallingNumber()
Calling number. |
SmdrCallType |
getCallType()
Call type. |
java.util.Date |
getDateTimeAnswered()
Answer date and time. |
java.util.Date |
getDateTimeDialled()
Presented date and time. |
int |
getDurationAnswered()
Duration answered. |
boolean |
isAvailable(SmdrAttributeType type)
Test to determine if this instance of the bean has a valid value in the specified attribute. |
boolean |
isLastSmdr()
Last SMDR for this call. |
void |
setAgentName(java.lang.String agentName)
|
void |
setCalledNumber(java.lang.String calledNumber)
|
void |
setCallingNumber(java.lang.String callingNumber)
|
void |
setCallType(SmdrCallType callType)
|
void |
setDateTimeAnswered(java.util.Date dateTimeAnswered)
|
void |
setDateTimeDialled(java.util.Date dateTimeDialled)
|
void |
setDurationAnswered(int durationAnswered)
|
void |
setLastSmdr(boolean lastSmdr)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Smdr()
Method Detail |
---|
public boolean isAvailable(SmdrAttributeType type)
SMDR parsing can be rather complex. There is no one standard and different PBX manufacturers use different SMDR formats. In addition, not all SMDRs carry the information that can be stored in this bean. This test tells if an attribute has useful information which was extracted from the raw SMDR.
type
- One of the valid attributes.
true
if the specified attribute has a value which was
extracted from the SMDR. false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getCallingNumber()
null
if one was not present in the SMDR.public void setCallingNumber(java.lang.String callingNumber)
public java.lang.String getCalledNumber()
null
if one was not present in the SMDR.public void setCalledNumber(java.lang.String calledNumber)
public java.util.Date getDateTimeDialled()
null
if one was not present in the SMDR.public void setDateTimeDialled(java.util.Date dateTimeDialled)
public java.util.Date getDateTimeAnswered()
null
if one was not present in the SMDR.public void setDateTimeAnswered(java.util.Date dateTimeAnswered)
public SmdrCallType getCallType()
null
if one was not present in the SMDR.public void setCallType(SmdrCallType callType)
public int getDurationAnswered()
0
if one was not
present in the SMDR.public void setDurationAnswered(int durationAnswered)
public java.lang.String getAgentName()
null
if one was not present in the SMDR.public void setAgentName(java.lang.String agentName)
public boolean isLastSmdr()
Some PBXes generate multiple SMDRs during a call. This flag indicates if this SMDR is the last one in the set.
true
if this is the last SMDR in the set of SMDRs for
the call. false> otherwise.
public void setLastSmdr(boolean lastSmdr)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |