/** * Fetch the rootDSE entry * * @param target Should be empty * @return The RootDSE entry * @throws Exception If we can't fetch the RootDSE entry */ protected Entry doGetRootDseOperation( Dn target ) throws Exception { GetRootDseOperationContext getRootDseContext = new GetRootDseOperationContext( session, target ); getRootDseContext.addRequestControls( convertControls( true, requestControls ) ); // do not reset request controls since this is not an external // operation and not do bother setting the response controls either OperationManager operationManager = service.getOperationManager(); return operationManager.getRootDse( getRootDseContext ); }
/** * @see Object#toString() */ public String toString() { return "GetRootDseContext with Dn '" + getDn().getName() + "'"; } }
/** * Creates a new instance of GetRootDseOperationContext. * * @param session The session to use * @param dn The entry Dn used to get the rootDse */ public GetRootDseOperationContext( CoreSession session, Dn dn ) { super( session, dn ); if ( session != null ) { setInterceptors( session.getDirectoryService().getInterceptors( OperationEnum.GET_ROOT_DSE ) ); } }
GetRootDseOperationContext getRootDseContext = new GetRootDseOperationContext( searchContext.getSession() ); getRootDseContext.setPartition( searchContext.getPartition() ); getRootDseContext.setTransaction( searchContext.getTransaction() );
/** * Creates a new instance of GetRootDseOperationContext. * * @param session The session to use */ public GetRootDseOperationContext( CoreSession session ) { super( session ); if ( session != null ) { setInterceptors( session.getDirectoryService().getInterceptors( OperationEnum.GET_ROOT_DSE ) ); } }