/** * Write the new entry on disk. It does not exist, as this has been checked * by the ExceptionInterceptor. */ private void addEntry( Entry entry ) throws LdapException { // Remove the EntryDN entry.removeAttributes( entryDnAT ); try { FileWriter fw = new FileWriter( getFile( entry.getDn(), CREATE ) ); fw.write( LdifUtils.convertToLdif( entry ) ); fw.close(); } catch ( IOException ioe ) { throw new LdapOperationException( ioe.getMessage(), ioe ); } }
throw new LdapOperationException( e.getMessage(), e ); throw new LdapOperationException( ioe.getMessage(), ioe );
/** * {@inheritDoc} */ @Override public void modify( ModifyOperationContext modifyContext ) throws LdapException { PartitionTxn partitionTxn = modifyContext.getTransaction(); synchronized ( lock ) { try { Entry modifiedEntry = super.modify( partitionTxn, modifyContext.getDn(), modifyContext.getModItems().toArray( new Modification[] {} ) ); // Remove the EntryDN modifiedEntry.removeAttributes( entryDnAT ); modifyContext.setAlteredEntry( modifiedEntry ); } catch ( Exception e ) { throw new LdapOperationException( e.getMessage(), e ); } dirty = true; rewritePartitionData( partitionTxn ); } }
throw new LdapOperationException( ResultCodeEnum.CONSTRAINT_VIOLATION, "invalid reuse of password present in password history" );
throw new LdapOperationException( e.getMessage(), e );
throw new LdapOperationException( e.getMessage(), e );
throw new LdapOperationException( e.getMessage(), e );
throw new LdapOperationException( ResultCodeEnum.OTHER, I18n.err( I18n.ERR_04120_TLS_HANDSHAKE_ERROR ) );
throw new LdapOperationException( e.getMessage(), e ); throw new LdapOperationException( e.getMessage(), e );
throw new LdapOperationException( result.getResultCode(), result.getDiagnosticMessage() );
throw new LdapOperationException( result.getResultCode(), result.getDiagnosticMessage() );
throw new LdapOperationException( ResultCodeEnum.OTHER, I18n.err( I18n.ERR_04120_TLS_HANDSHAKE_ERROR ) );
throw new LdapOperationException( ResultCodeEnum.OTHER, I18n.err( I18n.ERR_04120_TLS_HANDSHAKE_ERROR ) );
throw new LdapOperationException( result.getResultCode(), result.getDiagnosticMessage() );
throw new LdapOperationException( e.getMessage(), e );
throw new LdapOperationException( e.getMessage(), e );
throw new LdapOperationException( e.getMessage(), e );
throw new LdapOperationException( e.getMessage(), e );
throw new LdapOperationException( e.getMessage(), e );
throw new LdapOperationException( ResultCodeEnum.CONSTRAINT_VIOLATION, e.getMessage(), e );