/** * {@inheritDoc} */ @Override public List<String> getAttributes() { return getDecorated().getAttributes(); }
/** * {@inheritDoc} */ @Override public List<String> getAttributes() { return getDecorated().getAttributes(); }
/** * {@inheritDoc} */ @Override public List<String> getAttributes() { return getDecorated().getAttributes(); }
/** * {@inheritDoc} */ @Override public List<String> getAttributes() { return getDecorated().getAttributes(); }
/** * Build a set of OIDs from the list of attributes we have in the search request */ private Set<String> buildAttributeSet( SearchRequest request, SchemaManager schemaManager ) { Set<String> requestSet = new HashSet<String>(); // Build the set of attributeType from the attributes for ( String attribute : request.getAttributes() ) { try { AttributeType at = schemaManager.lookupAttributeTypeRegistry( attribute ); requestSet.add( at.getOid() ); } catch ( LdapException le ) { // Deal with special attributes : '*', '+' and '1.1' if ( attribute.equals( SchemaConstants.ALL_OPERATIONAL_ATTRIBUTES ) || attribute.equals( SchemaConstants.ALL_USER_ATTRIBUTES ) || attribute.equals( SchemaConstants.NO_ATTRIBUTE ) ) { requestSet.add( attribute ); } // Otherwise, don't add the attribute to the set } } return requestSet; }
public PersistentSearchListener( LdapSession session, SearchRequest req ) { this.session = session; this.req = req; req.addAbandonListener( this ); this.psearchControl = ( PersistentSearch ) req.getControls().get( PersistentSearch.OID ); filterCtx = new LookupOperationContext( session.getCoreSession(), req.getAttributes().toArray( Strings.EMPTY_STRING_ARRAY ) ); schemaManager = session.getCoreSession().getDirectoryService().getSchemaManager(); }
if ( req.getAttributes() == null && attributes != null && !attributes.isEmpty() ) if ( req.getAttributes() != null && attributes == null && !req.getAttributes().isEmpty() ) if ( req.getAttributes() != null && attributes != null ) if ( req.getAttributes().size() != attributes.size() ) if ( !req.getAttributes().contains( attribute ) )
if ( req.getAttributes() == null && attributes != null && !attributes.isEmpty() ) if ( req.getAttributes() != null && attributes == null && !req.getAttributes().isEmpty() ) if ( req.getAttributes() != null && attributes != null ) if ( req.getAttributes().size() != attributes.size() ) if ( !req.getAttributes().contains( attribute ) )
if ( req.getAttributes() == null && attributes != null && !attributes.isEmpty() ) if ( req.getAttributes() != null && attributes == null && !req.getAttributes().isEmpty() ) if ( req.getAttributes() != null && attributes != null ) if ( req.getAttributes().size() != attributes.size() ) if ( !req.getAttributes().contains( attribute ) )
try if ( !request.getAttributes().contains( SchemaConstants.ALL_OPERATIONAL_ATTRIBUTES ) )
/** * Handles a simple lookup, or a RootDSE lookup. * * @param session the LdapSession for which this search is conducted * @param req the search request on the RootDSE * @throws Exception if failures are encountered while searching */ private void handleLookup( LdapSession session, SearchRequest req ) throws Exception { Map<String, Control> controlMap = req.getControls(); Control[] controls = null; if ( controlMap != null ) { Collection<Control> controlValues = controlMap.values(); controls = new Control[controlValues.size()]; int pos = 0; for ( Control control : controlMap.values() ) { controls[pos++] = control; } } Entry entry = session.getCoreSession().lookup( req.getBase(), controls, req.getAttributes().toArray( new String[] {} ) ); session.getIoSession().write( generateResponse( session, req, entry ) ); // write the SearchResultDone message session.getIoSession().write( req.getResultResponse() ); }
if ( request.getAttributes() == null ) if ( previousSearchRequest.getAttributes() != null ) if ( previousSearchRequest.getAttributes() == null ) if ( request.getAttributes().size() != previousSearchRequest.getAttributes().size() )
hash = hash * 17 + ( getDecorated().getTypesOnly() ? 0 : 1 ); List<String> attributes = getDecorated().getAttributes(); if ( attributes != null )
hash = hash * 17 + ( getDecorated().getTypesOnly() ? 0 : 1 ); List<String> attributes = getDecorated().getAttributes(); if ( attributes != null )
hash = hash * 17 + ( getDecorated().getTypesOnly() ? 0 : 1 ); List<String> attributes = getDecorated().getAttributes(); if ( attributes != null )
/** * Creates a new instance of SearchOperationContext. * * @param session The session to use * @param searchRequest The SearchRequest to process */ public SearchOperationContext( CoreSession session, SearchRequest searchRequest ) { super( session, searchRequest.getBase(), searchRequest.getAttributes().toArray( StringConstants.EMPTY_STRINGS ) ); if ( session != null ) { setInterceptors( session.getDirectoryService().getInterceptors( OperationEnum.SEARCH ) ); } this.filter = searchRequest.getFilter(); this.abandoned = searchRequest.isAbandoned(); this.aliasDerefMode = searchRequest.getDerefAliases(); this.requestControls = searchRequest.getControls(); this.scope = searchRequest.getScope(); this.sizeLimit = searchRequest.getSizeLimit(); this.timeLimit = searchRequest.getTimeLimit(); this.typesOnly = searchRequest.getTypesOnly(); throwReferral = !requestControls.containsKey( ManageDsaIT.OID ); }
ldapUrl.setAttributes( req.getAttributes() ); ldapUrl.setScope( req.getScope().getScope() ); referral.addLdapUrl( ldapUrl.toString() ); ldapUrl.setAttributes( req.getAttributes() ); ldapUrl.setScope( req.getScope().getScope() ); referral.addLdapUrl( ldapUrl.toString() );
ldapUrl.setAttributes( req.getAttributes() ); ldapUrl.setScope( req.getScope().getScope() ); referral.addLdapUrl( ldapUrl.toString() );
List<String> attributes = request.getAttributes();