org.apache.directory.server.core.api.interceptor.Interceptor Java Examples

The following examples show how to use org.apache.directory.server.core.api.interceptor.Interceptor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultOperationManager.java    From MyVirtualDirectory with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Entry getRootDse( GetRootDseOperationContext getRootDseContext ) throws LdapException
{
    if ( IS_DEBUG )
    {
        OPERATION_LOG.debug( ">> GetRootDseOperation : {}", getRootDseContext );
    }

    long opStart = 0L;

    if ( IS_TIME )
    {
        opStart = System.nanoTime();
    }

    ensureStarted();

    Interceptor head = directoryService.getInterceptor( getRootDseContext.getNextInterceptor() );

    Entry root = head.getRootDse( getRootDseContext );

    if ( IS_DEBUG )
    {
        OPERATION_LOG.debug( "<< getRootDseOperation successful" );
    }

    if ( IS_TIME )
    {
        OPERATION_TIME.debug( "GetRootDSE operation took " + ( System.nanoTime() - opStart ) + " ns" );
    }

    return root;
}
 
Example #2
Source File: DefaultOperationManager.java    From MyVirtualDirectory with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public void unbind( UnbindOperationContext unbindContext ) throws LdapException
{
    if ( IS_DEBUG )
    {
        OPERATION_LOG.debug( ">> UnbindOperation : {}", unbindContext );
    }

    long opStart = 0L;

    if ( IS_TIME )
    {
        opStart = System.nanoTime();
    }

    ensureStarted();

    try
    {
        // Call the Unbind method
        Interceptor head = directoryService.getInterceptor( unbindContext.getNextInterceptor() );

        head.unbind( unbindContext );
    }
    finally
    {
    }

    if ( IS_DEBUG )
    {
        OPERATION_LOG.debug( "<< UnbindOperation successful" );
    }

    if ( IS_TIME )
    {
        OPERATION_TIME.debug( "Unbind operation took " + ( System.nanoTime() - opStart ) + " ns" );
    }
}
 
Example #3
Source File: DefaultOperationManager.java    From MyVirtualDirectory with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Entry getRootDse( GetRootDseOperationContext getRootDseContext ) throws LdapException
{
    if ( IS_DEBUG )
    {
        OPERATION_LOG.debug( ">> GetRootDseOperation : {}", getRootDseContext );
    }

    long opStart = 0L;

    if ( IS_TIME )
    {
        opStart = System.nanoTime();
    }

    ensureStarted();

    Interceptor head = directoryService.getInterceptor( getRootDseContext.getNextInterceptor() );

    Entry root = head.getRootDse( getRootDseContext );

    if ( IS_DEBUG )
    {
        OPERATION_LOG.debug( "<< getRootDseOperation successful" );
    }

    if ( IS_TIME )
    {
        OPERATION_TIME.debug( "GetRootDSE operation took " + ( System.nanoTime() - opStart ) + " ns" );
    }

    return root;
}
 
Example #4
Source File: DefaultOperationManager.java    From MyVirtualDirectory with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public void unbind( UnbindOperationContext unbindContext ) throws LdapException
{
    if ( IS_DEBUG )
    {
        OPERATION_LOG.debug( ">> UnbindOperation : {}", unbindContext );
    }

    long opStart = 0L;

    if ( IS_TIME )
    {
        opStart = System.nanoTime();
    }

    ensureStarted();

    try
    {
        // Call the Unbind method
        Interceptor head = directoryService.getInterceptor( unbindContext.getNextInterceptor() );

        head.unbind( unbindContext );
    }
    finally
    {
    }

    if ( IS_DEBUG )
    {
        OPERATION_LOG.debug( "<< UnbindOperation successful" );
    }

    if ( IS_TIME )
    {
        OPERATION_TIME.debug( "Unbind operation took " + ( System.nanoTime() - opStart ) + " ns" );
    }
}
 
Example #5
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void addAfter(String interceptorName, Interceptor interceptor) {
    wrapped.addAfter(interceptorName, interceptor);
}
 
Example #6
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void addLast(Interceptor interceptor) throws LdapException {
    wrapped.addLast(interceptor);
}
 
Example #7
Source File: DefaultOperationManager.java    From MyVirtualDirectory with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
public void bind( BindOperationContext bindContext ) throws LdapException
{
    if ( IS_DEBUG )
    {
        OPERATION_LOG.debug( ">> BindOperation : {}", bindContext );
    }

    long opStart = 0L;

    if ( IS_TIME )
    {
        opStart = System.nanoTime();
    }

    ensureStarted();

    // Call the Delete method
    Interceptor head = directoryService.getInterceptor( bindContext.getNextInterceptor() );

    lockRead();

    try
    {
        head.bind( bindContext );
    }
    finally
    {
        unlockRead();
    }

    if ( IS_DEBUG )
    {
        OPERATION_LOG.debug( "<< BindOperation successful" );
    }

    if ( IS_TIME )
    {
        OPERATION_TIME.debug( "Bind operation took " + ( System.nanoTime() - opStart ) + " ns" );
    }
}
 
Example #8
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void addFirst(Interceptor interceptor) throws LdapException {
    wrapped.addFirst(interceptor);
}
 
Example #9
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void setInterceptors(List<Interceptor> interceptors) {
    wrapped.setInterceptors(interceptors);
}
 
Example #10
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public Interceptor getInterceptor(String interceptorName) {
    return wrapped.getInterceptor(interceptorName);
}
 
Example #11
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public List<Interceptor> getInterceptors() {
    return wrapped.getInterceptors();
}
 
Example #12
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public Interceptor getInterceptor(String interceptorName) {
    return wrapped.getInterceptor(interceptorName);
}
 
Example #13
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void addAfter(String interceptorName, Interceptor interceptor) {
    wrapped.addAfter(interceptorName, interceptor);
}
 
Example #14
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void addLast(Interceptor interceptor) throws LdapException {
    wrapped.addLast(interceptor);
}
 
Example #15
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void addFirst(Interceptor interceptor) throws LdapException {
    wrapped.addFirst(interceptor);
}
 
Example #16
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void setInterceptors(List<Interceptor> interceptors) {
    wrapped.setInterceptors(interceptors);
}
 
Example #17
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public List<Interceptor> getInterceptors() {
    return wrapped.getInterceptors();
}
 
Example #18
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public Interceptor getInterceptor(String interceptorName) {
    return wrapped.getInterceptor(interceptorName);
}
 
Example #19
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void addAfter(String interceptorName, Interceptor interceptor) {
    wrapped.addAfter(interceptorName, interceptor);
}
 
Example #20
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void addLast(Interceptor interceptor) throws LdapException {
    wrapped.addLast(interceptor);
}
 
Example #21
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void addFirst(Interceptor interceptor) throws LdapException {
    wrapped.addFirst(interceptor);
}
 
Example #22
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void setInterceptors(List<Interceptor> interceptors) {
    wrapped.setInterceptors(interceptors);
}
 
Example #23
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public List<Interceptor> getInterceptors() {
    return wrapped.getInterceptors();
}
 
Example #24
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public Interceptor getInterceptor(String interceptorName) {
    return wrapped.getInterceptor(interceptorName);
}
 
Example #25
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void addAfter(String interceptorName, Interceptor interceptor) {
    wrapped.addAfter(interceptorName, interceptor);
}
 
Example #26
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void addLast(Interceptor interceptor) throws LdapException {
    wrapped.addLast(interceptor);
}
 
Example #27
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void addFirst(Interceptor interceptor) throws LdapException {
    wrapped.addFirst(interceptor);
}
 
Example #28
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void setInterceptors(List<Interceptor> interceptors) {
    wrapped.setInterceptors(interceptors);
}
 
Example #29
Source File: InMemoryDirectoryServiceFactory.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public List<Interceptor> getInterceptors() {
    return wrapped.getInterceptors();
}
 
Example #30
Source File: DefaultOperationManager.java    From MyVirtualDirectory with Apache License 2.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
public Entry lookup( LookupOperationContext lookupContext ) throws LdapException
{
    if ( IS_DEBUG )
    {
        OPERATION_LOG.debug( ">> LookupOperation : {}", lookupContext );
    }

    long opStart = 0L;

    if ( IS_TIME )
    {
        opStart = System.nanoTime();
    }

    ensureStarted();

    Interceptor head = directoryService.getInterceptor( lookupContext.getNextInterceptor() );

    Entry entry = null;

    lockRead();

    try
    {
        entry = head.lookup( lookupContext );
    }
    finally
    {
        unlockRead();
    }

    if ( IS_DEBUG )
    {
        OPERATION_LOG.debug( "<< LookupOperation successful" );
    }

    if ( IS_TIME )
    {
        OPERATION_TIME.debug( "Lookup operation took " + ( System.nanoTime() - opStart ) + " ns" );
    }

    return entry;
}