public class DatabaseDelCommand extends AbstractAgiCommand
Returns 1 if successful, 0 otherwise.
| Constructor and Description |
|---|
DatabaseDelCommand(String family)
Creates a new DatabaseDelCommand to delete a family.
|
DatabaseDelCommand(String family,
String keyTree)
Creates a new DatabaseDelCommand to delete a keytree.
|
| Modifier and Type | Method and Description |
|---|---|
String |
buildCommand()
Returns a string suitable to be sent to asterisk.
|
String |
getFamily()
Returns the family (or family of the keytree) to delete.
|
String |
getKeyTree()
Returns the the keytree to delete.
|
void |
setFamily(String family)
Sets the family (or family of the keytree) to delete.
|
void |
setKeyTree(String keyTree)
Sets the keytree to delete.
|
escapeAndQuote, escapeAndQuote, setAsteriskVersion, toStringpublic DatabaseDelCommand(String family)
family - the family to delete.public String getFamily()
public void setFamily(String family)
family - the family (or family of the keytree) to delete.public String getKeyTree()
public void setKeyTree(String keyTree)
keyTree - the keytree to delete.public String buildCommand()
AgiCommandbuildCommand in interface AgiCommandbuildCommand in class AbstractAgiCommandCopyright © 2004–2022. All rights reserved.