Package tigase.xmpp.impl.push

# Class PushNotifications.AbstractAdhocCommand

java.lang.Object
tigase.xmpp.impl.push.PushNotifications.AbstractAdhocCommand

All Implemented Interfaces:
  `AdHocCommand`

Direct Known Subclasses:
  `PushNotifications.DisableDeviceAdHocCommand`, `PushNotifications.ListDevicesAdhocCommand`

Enclosing class:
  PushNotifications

protected abstract static class PushNotifications.AbstractAdhocCommand extends Object implements AdHocCommand

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `AbstractAdhocCommand(String node, String name)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected String`
  `assertNotEmpty(String input, String message)`
  `void`
  `execute(AdhHocRequest request, AdHocResponse response)`
  `SessionManager`
  `getComponent()`
  `String`
  `getName()`
  `String`
  `getNode()`
  `AbstractPushNotifications`
  `getPushNotifications()`
  `boolean`
  `isAllowedFor(JID jid)`
  `protected boolean`
  `isEmpty(String input)`
  `protected abstract Form`
  `prepareForm(AdhHocRequest request, AdHocResponse response)`
  `protected abstract Form`
  `submitForm(AdhHocRequest request, AdHocResponse response, Form form)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface tigase.component.adhoc.AdHocCommand

  `execute, getGroup`

- ## Constructor Details

  - ### AbstractAdhocCommand

    protected AbstractAdhocCommand(String node, String name)

- ## Method Details

  - ### getName

    public String getName()
    Specified by:
      `getName` in interface `AdHocCommand`

  - ### getNode

    public String getNode()
    Specified by:
      `getNode` in interface `AdHocCommand`

  - ### execute

    public void execute(AdhHocRequest request, AdHocResponse response) throws AdHocCommandException
    Specified by:
      `execute` in interface `AdHocCommand`
    Throws:
      `AdHocCommandException`

  - ### prepareForm

    protected abstract Form prepareForm(AdhHocRequest request, AdHocResponse response) throws AdHocCommandException
    Throws:
      `AdHocCommandException`

  - ### submitForm

    protected abstract Form submitForm(AdhHocRequest request, AdHocResponse response, Form form) throws AdHocCommandException
    Throws:
      `AdHocCommandException`

  - ### isEmpty

    protected boolean isEmpty(String input)

  - ### assertNotEmpty

    protected String assertNotEmpty(String input, String message) throws AdHocCommandException
    Throws:
      `AdHocCommandException`

  - ### isAllowedFor

    public boolean isAllowedFor(JID jid)
    Specified by:
      `isAllowedFor` in interface `AdHocCommand`

  - ### getComponent

    public SessionManager getComponent()

  - ### getPushNotifications

    public AbstractPushNotifications getPushNotifications()