public MaxImmSubFilter() { childrenFilter = new PresenceNode( "objectClass" ); childrenSearchControls = new SearchControls(); childrenSearchControls.setSearchScope( SearchControls.ONELEVEL_SCOPE ); }
public void addNamingListener( Name name, int scope, NamingListener namingListener ) throws NamingException { ExprNode filter = new PresenceNode( "objectClass" ); SearchControls controls = new SearchControls(); controls.setSearchScope( scope ); ( ( PartitionNexusProxy ) this.nexusProxy ).addNamingListener( this, buildTarget( name ), filter, controls, namingListener ); listeners.add( namingListener ); }
/** * @see javax.naming.Context#listBindings(javax.naming.Name) */ public NamingEnumeration listBindings( Name name ) throws NamingException { // Conduct a special one level search at base for all objects LdapDN base = buildTarget( name ); PresenceNode filter = new PresenceNode( "objectClass" ); SearchControls ctls = new SearchControls(); ctls.setSearchScope( SearchControls.ONELEVEL_SCOPE ); return nexusProxy.search( base, getEnvironment(), filter, ctls ); }
@Override public EntryFilteringCursor list( NextInterceptor nextInterceptor, ListOperationContext opContext ) throws Exception { EntryFilteringCursor cursor = nextInterceptor.search( new SearchOperationContext( opContext.getSession(), opContext.getDn(), opContext.getAliasDerefMode(), new PresenceNode( SchemaConstants.OBJECT_CLASS_AT_OID ), new SearchControls() ) ); cursor.addEntryFilter( Constants.DELETED_ENTRIES_FILTER ); return cursor; }
/** * Checks to see if an entry being renamed has a descendant that is an * administrative point. * * @param name the name of the entry which is used as the search base * @return true if name is an administrative point or one of its descendants * are, false otherwise * @throws NamingException if there are errors while searching the directory */ private boolean hasAdministrativeDescendant( LdapDN name ) throws NamingException { ExprNode filter = new PresenceNode( "administrativeRole" ); SearchControls controls = new SearchControls(); controls.setSearchScope( SearchControls.SUBTREE_SCOPE ); NamingEnumeration aps = nexus.search( name, factoryCfg.getEnvironment(), filter, controls ); if ( aps.hasMore() ) { aps.close(); return true; } return false; }
PresenceNode filter = new PresenceNode( "objectClass" ); return getNexusProxy().search( target, getEnvironment(), filter, ctls ); filter.addNode( new PresenceNode( attr.getID() ) ); continue;
baseDn.addAll( ss.getBase() ); ExprNode filter = new PresenceNode( oidRegistry.getOid( "objectclass" ) ); SearchControls controls = new SearchControls(); controls.setSearchScope( SearchControls.SUBTREE_SCOPE );
break; case( LeafNode.PRESENCE ): newLeaf = new PresenceNode( descendant.getOid() ); break; case( LeafNode.SUBSTRING ):
break; case( LeafNode.PRESENCE ): newLeaf = new PresenceNode( descendant.getOid() ); break; case( LeafNode.SUBSTRING ):
baseDn.addAll( ss.getBase() ); ExprNode filter = new PresenceNode( "2.5.4.0" ); // (objectClass=*) SearchControls controls = new SearchControls(); controls.setSearchScope( SearchControls.SUBTREE_SCOPE );
ExprNode filter = new PresenceNode( "objectclass" ); SearchControls controls = new SearchControls(); controls.setSearchScope( SearchControls.SUBTREE_SCOPE );
LdapDN oldBaseDn = ( LdapDN ) apName.clone(); oldBaseDn.addAll( ssOld.getBase() ); ExprNode filter = new PresenceNode( oidRegistry.getOid( "objectClass" ) ); SearchControls controls = new SearchControls(); controls.setSearchScope( SearchControls.SUBTREE_SCOPE );
LdapDN oldBaseDn = ( LdapDN ) apName.clone(); oldBaseDn.addAll( ssOld.getBase() ); ExprNode filter = new PresenceNode( oidRegistry.getOid( "objectClass" ) ); SearchControls controls = new SearchControls(); controls.setSearchScope( SearchControls.SUBTREE_SCOPE );
return new PresenceNode( attr );
ExprNode filter = new PresenceNode( oidRegistry.getOid( "objectclass" ) ); SearchControls controls = new SearchControls(); controls.setSearchScope( SearchControls.SUBTREE_SCOPE );
AliasDerefMode.DEREF_ALWAYS, new PresenceNode( SchemaConstants.OBJECT_CLASS_AT_OID ), ctrl ) );
ExprNode filter = new PresenceNode( oidRegistry.getOid( "objectclass" ) ); SearchControls controls = new SearchControls(); controls.setSearchScope( SearchControls.SUBTREE_SCOPE );
new PresenceNode( SchemaConstants.OBJECT_CLASS_AT_OID ), ctrl ) );
branch = new PresenceNode( ( ( PresentFilter ) codecFilter ).getAttributeDescription() );