public void removeAttributes( AttributeType... attributes ) { clonedEntry.removeAttributes( attributes ); }
public void removeAttributes( String... attributes ) { clonedEntry.removeAttributes( attributes ); }
/** * Remove a list of Attributes from the LdifEntry * * @param ids The Attributes to remove */ public void removeAttribute( String... ids ) { if ( entry.containsAttribute( ids ) ) { entry.removeAttributes( ids ); } }
/** * Remove a list of Attributes from the LdifEntry * * @param ids The Attributes to remove */ public void removeAttribute( String... ids ) { if ( entry.containsAttribute( ids ) ) { entry.removeAttributes( ids ); } }
/** * Remove a list of Attributes from the LdifEntry * * @param ids The Attributes to remove */ public void removeAttribute( String... ids ) { if ( entry.containsAttribute( ids ) ) { entry.removeAttributes( ids ); } }
/** * 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 ); } }
/** * {@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 ); } }
modifiedEntry.removeAttributes( entryDnAT );
entry.removeAttributes( modificationId ); entry.removeAttributes( modifiedAttr.getUpId() ); entry.removeAttributes( modificationId );
entry.removeAttributes( modificationId ); entry.removeAttributes( modifiedAttr.getUpId() ); entry.removeAttributes( modificationId );
entry.removeAttributes( entryDnAT );
remoteEntry.removeAttributes( MOD_IGNORE_AT ); localEntry.removeAttributes( MOD_IGNORE_AT );
entry.removeAttributes(OU); entry.add(OU, modifiedGroup.getFullName()); entry.removeAttributes(SHADOW_INACTIVE); entry.add(SHADOW_INACTIVE, modifiedGroup.isActive() ? "0" : "1"); entry.removeAttributes(UNIQUE_MEMBER);
&& ( serverEntry.get( SchemaConstants.OBJECT_CLASS_AT ).size() == 0 ) ) serverEntry.removeAttributes( SchemaConstants.OBJECT_CLASS_AT );
private void appendRecursive( PartitionTxn partitionTxn, String id, int nbSibbling ) throws Exception { // Start with the root Cursor<IndexEntry<ParentIdAndRdn, String>> cursor = rdnIdx.forwardCursor( partitionTxn ); IndexEntry<ParentIdAndRdn, String> startingPos = new IndexEntry<>(); startingPos.setKey( new ParentIdAndRdn( id, ( Rdn[] ) null ) ); cursor.before( startingPos ); int countChildren = 0; while ( cursor.next() && ( countChildren < nbSibbling ) ) { IndexEntry<ParentIdAndRdn, String> element = cursor.get(); String childId = element.getId(); Entry entry = fetch( partitionTxn, childId ); // Remove the EntryDn entry.removeAttributes( SchemaConstants.ENTRY_DN_AT ); appendLdif( entry ); countChildren++; // And now, the children int nbChildren = element.getKey().getNbChildren(); if ( nbChildren > 0 ) { appendRecursive( partitionTxn, childId, nbChildren ); } } cursor.close(); }
targetEntry.removeAttributes( id );
targetEntry.removeAttributes( id );
targetEntry.removeAttributes( id );
targetEntry.removeAttributes( id );
respEntry.getEntry().removeAttributes( SchemaConstants.USER_PASSWORD_AT );