Examples of EntryFilter


Examples of org.apache.directory.server.core.filtering.EntryFilter

        if ( searchCtls.getTimeLimit() + searchCtls.getCountLimit() > 0 )
        {
            // this will be the last filter added so other filters before it must
            // have passed/approved of the entry to be returned back to the client
            // so the candidate we have is going to be returned for sure
            cursor.addEntryFilter( new EntryFilter()
            {
                final long startTime = System.currentTimeMillis();
                int count = 0; // with prefetch we've missed one which is ok since 1 is the minimum

                public boolean accept( SearchingOperationContext operation, ClonedServerEntry entry )
View Full Code Here

Examples of org.apache.directory.server.core.filtering.EntryFilter

        if ( !enabled )
        {
            return cursor;
        }

        cursor.addEntryFilter( new EntryFilter() {
            public boolean accept( SearchingOperationContext operation, ClonedServerEntry result ) throws Exception
            {
                return DefaultAuthorizationInterceptor.this.isSearchable( operation, result );
            }
        } );
View Full Code Here

Examples of org.apache.directory.server.core.filtering.EntryFilter

        if ( !enabled )
        {
            return cursor;
        }

        cursor.addEntryFilter( new EntryFilter()
        {
            public boolean accept( SearchingOperationContext operation, ClonedServerEntry entry ) throws Exception
            {
                return DefaultAuthorizationInterceptor.this.isSearchable( operation, entry );
            }
View Full Code Here

Examples of org.apache.directory.server.core.filtering.EntryFilter

       
        public EntryFilteringCursor search( NextInterceptor next, SearchOperationContext opContext ) throws Exception
        {
            EntryFilteringCursor cursor = next.search( opContext );
            cursor.addEntryFilter( new EntryFilter() {
                public boolean accept( SearchingOperationContext operation, ClonedServerEntry result ) throws Exception
                {
                    if ( delayMillis != null )
                    {
                        Thread.sleep( delayMillis );
View Full Code Here

Examples of org.apache.directory.server.core.filtering.EntryFilter

       
        public EntryFilteringCursor search( NextInterceptor next, SearchOperationContext searchContext ) throws LdapException
        {
            EntryFilteringCursor cursor = next.search( searchContext );
            cursor.addEntryFilter( new EntryFilter() {
                public boolean accept( SearchingOperationContext operation, Entry result ) throws Exception
                {
                    if ( delayMillis != null )
                    {
                        Thread.sleep( delayMillis );
View Full Code Here

Examples of org.springframework.boot.loader.archive.Archive.EntryFilter

  }

  @Override
  protected List<Archive> getClassPathArchives() throws Exception {
    List<Archive> archives = new ArrayList<Archive>(
        this.archive.getNestedArchives(new EntryFilter() {
          @Override
          public boolean matches(Entry entry) {
            return isNestedArchive(entry);
          }
        }));
View Full Code Here

Examples of org.springframework.boot.loader.archive.Archive.EntryFilter

    Archive parent = createArchive();
    if (root.startsWith("/") || parent.getUrl().equals(this.home.toURI().toURL())) {
      // If home dir is same as parent archive, no need to add it twice.
      return null;
    }
    EntryFilter filter = new PrefixMatchingArchiveFilter(root);
    if (parent.getNestedArchives(filter).isEmpty()) {
      return null;
    }
    // If there are more archives nested in this subdirectory (root) then create a new
    // virtual archive for them, and have it added to the classpath
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.