Package tigase.server.rtbl.adhoc
Class AbstractAdHocCommand
java.lang.Object
tigase.server.rtbl.adhoc.AbstractAdHocCommand
- All Implemented Interfaces:
AdHocCommand
- Direct Known Subclasses:
RTBLAddCommand
,RTBLDeleteCommand
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
assertNotEmpty
(String input, String message) void
execute
(AdhHocRequest request, AdHocResponse response) protected RTBLRepository
boolean
isAllowedFor
(JID jid) 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, getName, getNode
-
Constructor Details
-
AbstractAdHocCommand
public AbstractAdHocCommand()
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceAdHocCommand
- Throws:
AdHocCommandException
-
isAllowedFor
- Specified by:
isAllowedFor
in interfaceAdHocCommand
-
getRepository
-
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
-
assertNotEmpty
- Throws:
AdHocCommandException
-