public abstract class AbstractCredentialsCommand extends Object implements AdHocCommand
Modifier and Type | Field and Description |
---|---|
protected AuthRepository |
authRepository |
protected static String |
FIELD_JID |
protected static String |
FIELD_PASSWORD |
protected static String |
FIELD_USERNAME |
protected Logger |
log |
Constructor and Description |
---|
AbstractCredentialsCommand() |
Modifier and Type | Method and Description |
---|---|
protected 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, getGroup, getName, getNode
protected static final String FIELD_JID
protected static final String FIELD_USERNAME
protected static final String FIELD_PASSWORD
protected final Logger log
@Inject protected AuthRepository authRepository
protected void checkIfCanModifyJID(AdhHocRequest request, BareJID jidToModify) throws AdHocCommandException
AdHocCommandException
public void execute(AdhHocRequest request, AdHocResponse response) throws AdHocCommandException
execute
in interface AdHocCommand
AdHocCommandException
public boolean isAllowedFor(JID jid)
isAllowedFor
in interface AdHocCommand
protected abstract void processForm(Form form, AdhHocRequest request, AdHocResponse response) throws TigaseDBException, AdHocCommandException
protected abstract void processNoForm(AdhHocRequest request, AdHocResponse response) throws TigaseDBException
TigaseDBException
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.