net.sf.asterisk.manager.action
Class SetCDRUserFieldAction

java.lang.Object
  extended by net.sf.asterisk.manager.action.AbstractManagerAction
      extended by net.sf.asterisk.manager.action.SetCDRUserFieldAction
All Implemented Interfaces:
java.io.Serializable, ManagerAction

public class SetCDRUserFieldAction
extends AbstractManagerAction

The SetCDRUserFieldAction causes the user field of the call detail record for the given channel to be changed.
Depending on the value of the append property the value is appended or overwritten.
The SetCDRUserFieldAction is implemented in apps/app_setcdruserfield.c

Version:
$Id: SetCDRUserFieldAction.java,v 1.4 2005/08/07 16:43:29 srt Exp $
Author:
srt
See Also:
Serialized Form

Constructor Summary
SetCDRUserFieldAction()
          Creates a new empty SetCDRUserFieldAction.
SetCDRUserFieldAction(java.lang.String channel, java.lang.String userField)
          Creates a new SetCDRUserFieldAction that sets the user field of the call detail record for the given channel to the given value.
SetCDRUserFieldAction(java.lang.String channel, java.lang.String userField, java.lang.Boolean append)
          Creates a new SetCDRUserFieldAction that sets the user field of the call detail record for the given channel to the given value.
 
Method Summary
 java.lang.String getAction()
          Returns the name of the action, i.e.
 java.lang.Boolean getAppend()
          Returns if the value of the cdr user field is appended or overwritten.
 java.lang.String getChannel()
          Returns the name of the channel to set the cdr user field on.
 java.lang.String getUserField()
          Returns the value of the cdr user field to set or append.
 void setAppend(java.lang.Boolean append)
          Set to true to append the value to the cdr user field or false to overwrite.
 void setChannel(java.lang.String channel)
          Sets the name of the channel to set the cdr user field on.
This property is mandatory.
 void setUserField(java.lang.String userField)
          Sets the value of the cdr user field to set or append.
This property is mandatory.
 
Methods inherited from class net.sf.asterisk.manager.action.AbstractManagerAction
getActionId, setActionId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetCDRUserFieldAction

public SetCDRUserFieldAction()
Creates a new empty SetCDRUserFieldAction.


SetCDRUserFieldAction

public SetCDRUserFieldAction(java.lang.String channel,
                             java.lang.String userField)
Creates a new SetCDRUserFieldAction that sets the user field of the call detail record for the given channel to the given value.

Parameters:
channel - the name of the channel
userField - the new value of the userfield
Since:
0.2

SetCDRUserFieldAction

public SetCDRUserFieldAction(java.lang.String channel,
                             java.lang.String userField,
                             java.lang.Boolean append)
Creates a new SetCDRUserFieldAction that sets the user field of the call detail record for the given channel to the given value.

Parameters:
channel - the name of the channel
userField - the new value of the userfield
append - true to append the value to the cdr user field or false to overwrite
Since:
0.2
Method Detail

getAction

public java.lang.String getAction()
Returns the name of the action, i.e. "SetCDRUserField".

Specified by:
getAction in interface ManagerAction
Specified by:
getAction in class AbstractManagerAction

getChannel

public java.lang.String getChannel()
Returns the name of the channel to set the cdr user field on.


setChannel

public void setChannel(java.lang.String channel)
Sets the name of the channel to set the cdr user field on.
This property is mandatory.


getUserField

public java.lang.String getUserField()
Returns the value of the cdr user field to set or append.


setUserField

public void setUserField(java.lang.String userField)
Sets the value of the cdr user field to set or append.
This property is mandatory.


getAppend

public java.lang.Boolean getAppend()
Returns if the value of the cdr user field is appended or overwritten.


setAppend

public void setAppend(java.lang.Boolean append)
Set to true to append the value to the cdr user field or false to overwrite.



Copyright © 2004-2005 Stefan Reuter. All Rights Reserved.