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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringassertNotEmpty(String input, String message) voidexecute(AdhHocRequest request, AdHocResponse response) protected RTBLRepositorybooleanisAllowedFor(JID jid) protected abstract FormprepareForm(AdhHocRequest request, AdHocResponse response) protected abstract FormsubmitForm(AdhHocRequest request, AdHocResponse response, Form form) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.component.adhoc.AdHocCommand
execute, getGroup, getName, getNode, isAllowedFor, isForSelf
-
Constructor Details
-
AbstractAdHocCommand
public AbstractAdHocCommand()
-
-
Method Details
-
execute
- Specified by:
executein interfaceAdHocCommand- Throws:
AdHocCommandException
-
isAllowedFor
- Specified by:
isAllowedForin 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
-