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