com.arunta.app.bom
Class Smdr

java.lang.Object
  extended by com.arunta.app.bom.Smdr
All Implemented Interfaces:
java.io.Serializable

public class Smdr
extends java.lang.Object
implements java.io.Serializable

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.

See Also:
Serialized Form

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

Smdr

public Smdr()
Method Detail

isAvailable

public boolean isAvailable(SmdrAttributeType type)
Test to determine if this instance of the bean has a valid value in the specified attribute.

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.

Parameters:
type - One of the valid attributes.
Returns:
true if the specified attribute has a value which was extracted from the SMDR. false otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getCallingNumber

public java.lang.String getCallingNumber()
Calling number.

Returns:
Returns the calling number extracted from the SMDR or null if one was not present in the SMDR.

setCallingNumber

public void setCallingNumber(java.lang.String callingNumber)

getCalledNumber

public java.lang.String getCalledNumber()
Called number.

Returns:
Returns the called number extracted from the SMDR or null if one was not present in the SMDR.

setCalledNumber

public void setCalledNumber(java.lang.String calledNumber)

getDateTimeDialled

public java.util.Date getDateTimeDialled()
Presented date and time.

Returns:
Returns the presented date and time extracted from the SMDR or null if one was not present in the SMDR.

setDateTimeDialled

public void setDateTimeDialled(java.util.Date dateTimeDialled)

getDateTimeAnswered

public java.util.Date getDateTimeAnswered()
Answer date and time.

Returns:
Returns the answer date and time extracted from the SMDR or null if one was not present in the SMDR.

setDateTimeAnswered

public void setDateTimeAnswered(java.util.Date dateTimeAnswered)

getCallType

public SmdrCallType getCallType()
Call type.

Returns:
Returns the call type extracted from the SMDR or null if one was not present in the SMDR.

setCallType

public void setCallType(SmdrCallType callType)

getDurationAnswered

public int getDurationAnswered()
Duration answered.

Returns:
Returns the duration, in seconds, of the call from the point it was answered to the point it ended. Or 0 if one was not present in the SMDR.

setDurationAnswered

public void setDurationAnswered(int durationAnswered)

getAgentName

public java.lang.String getAgentName()
Agent name.

Returns:
Returns the name of the agent extracted from the SMDR or null if one was not present in the SMDR.

setAgentName

public void setAgentName(java.lang.String agentName)

isLastSmdr

public boolean isLastSmdr()
Last SMDR for this call.

Some PBXes generate multiple SMDRs during a call. This flag indicates if this SMDR is the last one in the set.

Returns:
true if this is the last SMDR in the set of SMDRs for the call. false> otherwise.

setLastSmdr

public void setLastSmdr(boolean lastSmdr)


Copyright ©, 2005-2012 Prolancer Pty Ltd, Sydney Australia.