public class SetCdrUserFieldAction extends AbstractManagerAction
Depending on the value of the append property the value is appended or overwritten.
The SetCDRUserFieldAction is implemented in
apps/app_setcdruserfield.c
Constructor and Description |
---|
SetCdrUserFieldAction()
Creates a new empty SetCdrUserFieldAction.
|
SetCdrUserFieldAction(String channel,
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(String channel,
String userField,
Boolean append)
Creates a new SetCDRUserFieldAction that sets the user field of the call
detail record for the given channel to the given value.
|
Modifier and Type | Method and Description |
---|---|
String |
getAction()
Returns the name of the action, i.e.
|
Boolean |
getAppend()
Returns if the value of the cdr user field is appended or overwritten.
|
String |
getChannel()
Returns the name of the channel to set the cdr user field on.
|
String |
getUserField()
Returns the value of the cdr user field to set or append.
|
void |
setAppend(Boolean append)
Set to true to append the value to the cdr user field or false to
overwrite.
|
void |
setChannel(String channel)
Sets the name of the channel to set the cdr user field on.
|
void |
setUserField(String userField)
Sets the value of the cdr user field to set or append.
|
getActionId, setActionId, toString
public SetCdrUserFieldAction()
public SetCdrUserFieldAction(String channel, String userField)
channel
- the name of the channeluserField
- the new value of the userfieldpublic SetCdrUserFieldAction(String channel, String userField, Boolean append)
channel
- the name of the channeluserField
- the new value of the userfieldappend
- true to append the value to the cdr user field or false to
overwritepublic String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public String getChannel()
public void setChannel(String channel)
This property is mandatory.
public String getUserField()
public void setUserField(String userField)
This property is mandatory.
public Boolean getAppend()
public void setAppend(Boolean append)
Copyright © 2004–2017. All rights reserved.