Package tigase.auth.adhoc
Class AbstractCredentialsCommand
java.lang.Object
tigase.auth.adhoc.AbstractCredentialsCommand
- All Implemented Interfaces:
AdHocCommand
- Direct Known Subclasses:
AddUserCredentials,DeleteUserCredentials,ShowUserCredentials
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckIfCanModifyJID(AdhHocRequest request, BareJID jidToModify) voidexecute(AdhHocRequest request, AdHocResponse response) booleanisAllowedFor(JID jid) protected abstract voidprocessForm(Form form, AdhHocRequest request, AdHocResponse response) protected abstract voidprocessNoForm(AdhHocRequest request, AdHocResponse response) 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
-
Field Details
-
FIELD_JID
- See Also:
-
FIELD_CREDENTIAL_ID
- See Also:
-
FIELD_USERNAME
Deprecated.- See Also:
-
FIELD_PASSWORD
- See Also:
-
log
-
authRepository
-
-
Constructor Details
-
AbstractCredentialsCommand
public AbstractCredentialsCommand()
-
-
Method Details
-
checkIfCanModifyJID
protected void checkIfCanModifyJID(AdhHocRequest request, BareJID jidToModify) throws AdHocCommandException - Throws:
AdHocCommandException
-
execute
- Specified by:
executein interfaceAdHocCommand- Throws:
AdHocCommandException
-
isAllowedFor
- Specified by:
isAllowedForin interfaceAdHocCommand
-
processForm
protected abstract void processForm(Form form, AdhHocRequest request, AdHocResponse response) throws TigaseDBException, AdHocCommandException -
processNoForm
protected abstract void processNoForm(AdhHocRequest request, AdHocResponse response) throws TigaseDBException - Throws:
TigaseDBException
-