/** * {@inheritDoc} */ @Override public SearchScope getScope() { return getDecorated().getScope(); }
/** * {@inheritDoc} */ @Override public SearchScope getScope() { return getDecorated().getScope(); }
/** * {@inheritDoc} */ @Override public SearchScope getScope() { return getDecorated().getScope(); }
/** * {@inheritDoc} */ @Override public SearchScope getScope() { return getDecorated().getScope(); }
public void handleSearch(Integer ctx, SearchRequest request, SearchResultHandler responseHandler, IntermediateResponseHandler intermediateResponseHandler) throws UnsupportedOperationException { if (request.getScope() == SearchScope.BASE_OBJECT && request.getName().isRootDN()) { logger.debug("LDAP Search: BASE_OBJECT"); responseHandler.handleEntry(Responses.newSearchResultEntry(rootEntry)); } else { // do the search // parameters: request.getName(), request.getScope(), request.getFilter() } responseHandler.handleResult(Responses.newResult(ResultCode.SUCCESS)); }
/** * Create a new instance of a NotiticationCriteria initialized with a search request * * @param schemaManager The SchemaManager instance * @param req The SearchRequest */ public NotificationCriteria( SchemaManager schemaManager, SearchRequest req ) { this.scope = req.getScope(); this.aliasDerefMode = req.getDerefAliases(); this.base = req.getBase(); this.filter = req.getFilter(); this.schemaManager = schemaManager; }
hash = hash * 17 + getDecorated().getScope().hashCode(); hash = hash * 17 + Long.valueOf( getDecorated().getSizeLimit() ).hashCode(); hash = hash * 17 + getDecorated().getTimeLimit();
hash = hash * 17 + getDecorated().getScope().hashCode(); hash = hash * 17 + Long.valueOf( getDecorated().getSizeLimit() ).hashCode(); hash = hash * 17 + getDecorated().getTimeLimit();
hash = hash * 17 + getDecorated().getScope().hashCode(); hash = hash * 17 + Long.valueOf( getDecorated().getSizeLimit() ).hashCode(); hash = hash * 17 + getDecorated().getTimeLimit();
/** * 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 ); }
if ( req.getScope() != scope )
if ( req.getScope() != scope )
if ( req.getScope() != scope )
boolean isBaseScope = req.getScope() == SearchScope.OBJECT; boolean isObjectClassFilter = false;
switch ( req.getScope() )
SearchScope scope = request.getScope(); if ( scope != null )
ldapUrl.setScope( req.getScope().getScope() ); referral.addLdapUrl( ldapUrl.toString() );
ldapUrl.setForceScopeRendering( true ); switch ( req.getScope() )
criteria.setBase( req.getBase() ); criteria.setFilter( req.getFilter() ); criteria.setScope( req.getScope() ); criteria.setEventMask( EventType.getEventTypes( psearch.getChangeTypes() ) ); getLdapServer().getDirectoryService().getEventService().addListener( persistentSearchListener, criteria );