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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkIfCanModifyJID
(AdhHocRequest request, BareJID jidToModify) void
execute
(AdhHocRequest request, AdHocResponse response) boolean
isAllowedFor
(JID jid) protected abstract void
processForm
(Form form, AdhHocRequest request, AdHocResponse response) protected abstract void
processNoForm
(AdhHocRequest request, AdHocResponse response) 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
-
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:
execute
in interfaceAdHocCommand
- Throws:
AdHocCommandException
-
isAllowedFor
- Specified by:
isAllowedFor
in 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
-