Examples of SimpleFilter


Examples of org.apache.jetspeed.security.mapping.ldap.filter.SimpleFilter

        userAttrDefs.add(GIVEN_NAME_DEF);

        userSearchConfig = new LDAPEntityDAOConfiguration();
        userSearchConfig.setBaseDN("o=sevenSeas");
        userSearchConfig.setSearchDN("");
        userSearchConfig.setSearchFilter(new SimpleFilter(
                "(objectClass=inetOrgPerson)"));
        userSearchConfig.setLdapIdAttribute("uid");
        userSearchConfig.setAttributeDefinitions(userAttrDefs);
        userSearchConfig.setEntityType("user");
        userSearchConfig.setObjectClasses("inetOrgPerson,organizationalPerson,person,top");

        SpringLDAPEntityDAO userDAO = new SpringLDAPEntityDAO(userSearchConfig);
        userDAO.setLdapTemplate(ldapTemplate);

        // setting up role DAO

        roleAttrDefs = new HashSet<AttributeDef>();
        roleAttrDefs.addAll(basicAttrDefs);
        roleAttrDefs.add(DESCRIPTION_ATTR_DEF);

        LDAPEntityDAOConfiguration roleSearchConfig = new LDAPEntityDAOConfiguration();
        roleSearchConfig.setBaseDN("o=sevenSeas");
        roleSearchConfig.setSearchDN("ou=Roles,o=Jetspeed");
        roleSearchConfig.setSearchFilter(new SimpleFilter(
                "(objectClass=groupOfUniqueNames)"));
        roleSearchConfig.setLdapIdAttribute("cn");
        roleSearchConfig.setAttributeDefinitions(roleAttrDefs);
        roleSearchConfig.setEntityType("role");
        roleSearchConfig.setObjectClasses("groupOfUniqueNames,extensibleObject");

        SpringLDAPEntityDAO roleDAO = new SpringLDAPEntityDAO(roleSearchConfig);
        roleDAO.setLdapTemplate(ldapTemplate);

        groupAttrDefs = new HashSet<AttributeDef>();
        groupAttrDefs.addAll(basicAttrDefs);
        groupAttrDefs.add(DESCRIPTION_ATTR_DEF);
        groupAttrDefs.add(UNIQUEMEMBER_ATTR_DEF);

        LDAPEntityDAOConfiguration groupSearchConfig = new LDAPEntityDAOConfiguration();
        groupSearchConfig.setBaseDN("o=sevenSeas");
        groupSearchConfig.setSearchDN("ou=Groups,o=Jetspeed");
        groupSearchConfig.setSearchFilter(new SimpleFilter(
                "(objectClass=groupOfUniqueNames)"));
        groupSearchConfig.setLdapIdAttribute("cn");
        groupSearchConfig.setAttributeDefinitions(groupAttrDefs);
        groupSearchConfig.setEntityType("group");
        groupSearchConfig.setObjectClasses("groupOfUniqueNames,extensibleObject");
View Full Code Here

Examples of org.apache.karaf.features.internal.resolver.SimpleFilter

    @SuppressWarnings("unchecked")
    private static <T extends Resource> Set<T> collectDependencies(T resource, CapabilitySet capSet) {
        Set<T> result = new LinkedHashSet<T>();
        for (Requirement requirement : resource.getRequirements(null)) {
            String filter = requirement.getDirectives().get(Constants.FILTER_DIRECTIVE);
            SimpleFilter sf = (filter != null)
                    ? SimpleFilter.parse(filter)
                    : new SimpleFilter(null, null, SimpleFilter.MATCH_ALL);
            for (Capability cap : capSet.match(sf, true)) {
                result.add((T) cap.getResource());
            }
        }
        return result;
View Full Code Here

Examples of org.apache.maven.plugins.shade.filter.SimpleFilter

                    getLog().info( "No artifact matching filter " + filter.getArtifact() );

                    continue;
                }

                simpleFilters.add( new SimpleFilter( jars, filter.getIncludes(), filter.getExcludes() ) );
            }
        }

        filters.addAll( simpleFilters );
View Full Code Here

Examples of org.apache.maven.plugins.shade.filter.SimpleFilter

                    getLog().info( "No artifact matching filter " + filter.getArtifact() );

                    continue;
                }

                simpleFilters.add( new SimpleFilter( jars, filter.getIncludes(), filter.getExcludes() ) );
            }
        }

        filters.addAll( simpleFilters );
View Full Code Here

Examples of org.apache.maven.plugins.shade.filter.SimpleFilter

                    getLog().info( "No artifact matching filter " + filter.getArtifact() );

                    continue;
                }

                simpleFilters.add( new SimpleFilter( jars, filter.getIncludes(), filter.getExcludes() ) );
            }
        }

        filters.addAll( simpleFilters );
View Full Code Here

Examples of org.apache.maven.plugins.shade.filter.SimpleFilter

                    getLog().info( "No artifact matching filter " + filter.getArtifact() );

                    continue;
                }

                simpleFilters.add( new SimpleFilter( jars, filter.getIncludes(), filter.getExcludes() ) );
            }
        }

        filters.addAll( simpleFilters );
View Full Code Here

Examples of org.apache.maven.plugins.shade.filter.SimpleFilter

                    getLog().info( "No artifact matching filter " + filter.getArtifact() );

                    continue;
                }

                simpleFilters.add( new SimpleFilter( jars, filter.getIncludes(), filter.getExcludes() ) );
            }
        }

        filters.addAll( simpleFilters );
View Full Code Here

Examples of org.apache.maven.plugins.shade.filter.SimpleFilter

                    getLog().info( "No artifact matching filter " + filter.getArtifact() );

                    continue;
                }

                simpleFilters.add( new SimpleFilter( jars, filter.getIncludes(), filter.getExcludes() ) );
            }
        }

        filters.addAll( simpleFilters );
View Full Code Here

Examples of org.jboss.test.messaging.core.SimpleFilter

   // Channel tests -------------------------------------------------
  

   public void testWithFilter()
   {
      Filter f = new SimpleFilter(3);
           
      PagingFilteredQueue queue = new PagingFilteredQueue("queue1", 1, ms, pm, true, false, -1, f);
     
      Message m1 = new CoreMessage(1, false, 0, 0, (byte)0, null, null);
      Message m2 = new CoreMessage(2, false, 0, 0, (byte)0, null, null);
View Full Code Here

Examples of org.jboss.test.messaging.core.SimpleFilter

     
      try
      {     
         postOffice = createPostOffice();
        
         SimpleFilter filter = new SimpleFilter(2);
     
         PagingFilteredQueue queue1 =
            new PagingFilteredQueue("queue1", channelIDManager.getID(), ms, pm, true, false,
                                    -1, filter);
        
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.