Class EntryFilteringWrapperCursor

  • All Implemented Interfaces:
    Closeable, AutoCloseable, Iterable<org.apache.directory.api.ldap.model.entry.Entry>, org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>, org.apache.directory.server.core.api.filtering.EntryFilteringCursor

    public class EntryFilteringWrapperCursor
    extends org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>
    implements org.apache.directory.server.core.api.filtering.EntryFilteringCursor
    • Constructor Summary

      Constructors 
      Constructor Description
      EntryFilteringWrapperCursor​(org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry> entries, org.apache.directory.server.core.api.interceptor.context.SearchOperationContext operationContext)  
    • Constructor Detail

      • EntryFilteringWrapperCursor

        public EntryFilteringWrapperCursor​(org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry> entries,
                                           org.apache.directory.server.core.api.interceptor.context.SearchOperationContext operationContext)
    • Method Detail

      • addEntryFilter

        public boolean addEntryFilter​(org.apache.directory.server.core.api.filtering.EntryFilter filter)
        Specified by:
        addEntryFilter in interface org.apache.directory.server.core.api.filtering.EntryFilteringCursor
      • getEntryFilters

        public List<org.apache.directory.server.core.api.filtering.EntryFilter> getEntryFilters()
        Specified by:
        getEntryFilters in interface org.apache.directory.server.core.api.filtering.EntryFilteringCursor
      • getOperationContext

        public org.apache.directory.server.core.api.interceptor.context.SearchOperationContext getOperationContext()
        Specified by:
        getOperationContext in interface org.apache.directory.server.core.api.filtering.EntryFilteringCursor
      • before

        public void before​(org.apache.directory.api.ldap.model.entry.Entry attributes)
                    throws org.apache.directory.api.ldap.model.exception.LdapException,
                           org.apache.directory.api.ldap.model.cursor.CursorException
        Specified by:
        before in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • after

        public void after​(org.apache.directory.api.ldap.model.entry.Entry attributes)
                   throws org.apache.directory.api.ldap.model.exception.LdapException,
                          org.apache.directory.api.ldap.model.cursor.CursorException
        Specified by:
        after in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • beforeFirst

        public void beforeFirst()
                         throws org.apache.directory.api.ldap.model.exception.LdapException,
                                org.apache.directory.api.ldap.model.cursor.CursorException
        Specified by:
        beforeFirst in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • afterLast

        public void afterLast()
                       throws org.apache.directory.api.ldap.model.exception.LdapException,
                              org.apache.directory.api.ldap.model.cursor.CursorException
        Specified by:
        afterLast in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • first

        public boolean first()
                      throws org.apache.directory.api.ldap.model.exception.LdapException,
                             org.apache.directory.api.ldap.model.cursor.CursorException
        Specified by:
        first in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • last

        public boolean last()
                     throws org.apache.directory.api.ldap.model.exception.LdapException,
                            org.apache.directory.api.ldap.model.cursor.CursorException
        Specified by:
        last in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • previous

        public boolean previous()
                         throws org.apache.directory.api.ldap.model.exception.LdapException,
                                org.apache.directory.api.ldap.model.cursor.CursorException
        Specified by:
        previous in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • available

        public boolean available()
        Specified by:
        available in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
      • close

        public void close()
                   throws IOException
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Overrides:
        close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>
        Throws:
        IOException
      • close

        public void close​(Exception cause)
                   throws IOException
        Specified by:
        close in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
        Overrides:
        close in class org.apache.directory.api.ldap.model.cursor.AbstractCursor<org.apache.directory.api.ldap.model.entry.Entry>
        Throws:
        IOException
      • next

        public boolean next()
                     throws org.apache.directory.api.ldap.model.exception.LdapException,
                            org.apache.directory.api.ldap.model.cursor.CursorException
        Specified by:
        next in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
        Throws:
        org.apache.directory.api.ldap.model.exception.LdapException
        org.apache.directory.api.ldap.model.cursor.CursorException
      • get

        public org.apache.directory.api.ldap.model.entry.Entry get()
                                                            throws org.apache.directory.api.ldap.model.cursor.InvalidCursorPositionException
        Specified by:
        get in interface org.apache.directory.api.ldap.model.cursor.Cursor<org.apache.directory.api.ldap.model.entry.Entry>
        Throws:
        org.apache.directory.api.ldap.model.cursor.InvalidCursorPositionException