Class AbstractLDAPProcessor<T extends com.unboundid.ldap.protocol.ProtocolOp>
java.lang.Object
tigase.ldap.processors.AbstractLDAPProcessor<T>
- Type Parameters:
T- Class of the request that is supported
- All Implemented Interfaces:
LDAPProcessor<T>
- Direct Known Subclasses:
BindRequestProcessor, SearchRequestProcessor
public abstract class AbstractLDAPProcessor<T extends com.unboundid.ldap.protocol.ProtocolOp>
extends Object
implements LDAPProcessor<T>
Class contains helper methods often used by LDAPProcessor implementations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanAccessToUserData(LDAPSession session, tigase.xmpp.jid.BareJID user) protected voidcheckAuthorization(LDAPSession session) protected tigase.db.AuthRepositoryprotected tigase.db.UserRepositoryprotected booleanisAdmin(tigase.xmpp.jid.BareJID jid) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LDAPProcessor
canHandle, getSupportedProtocolOp, process
-
Constructor Details
-
AbstractLDAPProcessor
public AbstractLDAPProcessor()
-
-
Method Details
-
getAuthRepository
protected tigase.db.AuthRepository getAuthRepository() -
getUserRepository
protected tigase.db.UserRepository getUserRepository() -
checkAuthorization
- Throws:
com.unboundid.ldap.sdk.LDAPException
-
canAccessToUserData
-
isAdmin
protected boolean isAdmin(tigase.xmpp.jid.BareJID jid)
-