Search in sources :

Example 6 with Form

use of org.jivesoftware.smackx.xdata.Form in project Smack by igniterealtime.

the class ServiceAdministrationManager method deleteUser.

public void deleteUser(Set<EntityBareJid> jidsToDelete) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
    RemoteCommand command = deleteUser();
    command.execute();
    Form answerForm = command.getForm().createAnswerForm();
    FormField accountJids = answerForm.getField("accountjids");
    accountJids.addValues(JidUtil.toStringList(jidsToDelete));
    command.next(answerForm);
    assert (command.isCompleted());
}
Also used : Form(org.jivesoftware.smackx.xdata.Form) RemoteCommand(org.jivesoftware.smackx.commands.RemoteCommand) FormField(org.jivesoftware.smackx.xdata.FormField)

Aggregations

Form (org.jivesoftware.smackx.xdata.Form)6 FormField (org.jivesoftware.smackx.xdata.FormField)3 RemoteCommand (org.jivesoftware.smackx.commands.RemoteCommand)2 XMPPErrorException (org.jivesoftware.smack.XMPPException.XMPPErrorException)1 XMPPError (org.jivesoftware.smack.packet.XMPPError)1 Action (org.jivesoftware.smackx.commands.AdHocCommand.Action)1 AdHocCommandData (org.jivesoftware.smackx.commands.packet.AdHocCommandData)1 DiscoverInfo (org.jivesoftware.smackx.disco.packet.DiscoverInfo)1 ConfigureForm (org.jivesoftware.smackx.pubsub.ConfigureForm)1 FormNode (org.jivesoftware.smackx.pubsub.FormNode)1 WorkgroupForm (org.jivesoftware.smackx.workgroup.ext.forms.WorkgroupForm)1 DataForm (org.jivesoftware.smackx.xdata.packet.DataForm)1