/** * {@inheritDoc} */ @Override public void unbind( UnbindRequest unbindRequest ) throws LdapException { UnbindOperationContext unbindContext = new UnbindOperationContext( this, unbindRequest ); OperationManager operationManager = directoryService.getOperationManager(); operationManager.unbind( unbindContext ); }
/** * @see Object#toString() */ public String toString() { return "UnbindContext for Dn '" + getDn().getName() + "'"; } }
UnbindOperationContext opCtx = new UnbindOperationContext( getSession() ); opCtx.addRequestControls( JndiUtils.fromJndiControls( getDirectoryService().getLdapCodecService(), requestControls ) ); opCtx.getResponseControls() );
/** * Creates a new instance of UnbindOperationContext. * * @param session The session to use * @param unbindRequest The UnbindRequest to process */ public UnbindOperationContext( CoreSession session, UnbindRequest unbindRequest ) { super( session, session.getEffectivePrincipal().getDn() ); setRequestControls( unbindRequest.getControls() ); setInterceptors( session.getDirectoryService().getInterceptors( OperationEnum.UNBIND ) ); }
/** * Creates a new instance of UnbindOperationContext. * * @param session The session to use */ public UnbindOperationContext( CoreSession session ) { super( session, session.getEffectivePrincipal().getDn() ); setInterceptors( session.getDirectoryService().getInterceptors( OperationEnum.UNBIND ) ); }
/** * {@inheritDoc} */ @Override public void unbind() throws LdapException { UnbindOperationContext unbindContext = new UnbindOperationContext( this ); OperationManager operationManager = directoryService.getOperationManager(); operationManager.unbind( unbindContext ); }
/** * {@inheritDoc} */ @Override public void unbind( UnbindOperationContext unbindContext ) throws LdapException { Dn unbindContextDn = unbindContext.getDn(); if ( !Dn.isNullOrEmpty( unbindContextDn ) ) { Partition partition = getPartition( unbindContext.getDn() ); partition.unbind( unbindContext ); } }