attribute.remove( values );
attribute.remove( values );
/** * Unregisters an ContextPartition with this BackendManager. Called for each * registered Backend right befor it is to be stopped. This prevents * protocol server requests from reaching the Backend and effectively puts * the ContextPartition's naming context offline. * * Operations against the naming context should result in an LDAP BUSY * result code in the returnValue if the naming context is not online. * * @param partition ContextPartition component to unregister with this * BackendNexus. * @throws Exception if there are problems unregistering the partition */ private void unregister( Partition partition ) throws LdapException { Attribute namingContexts = rootDse.get( SchemaConstants.NAMING_CONTEXTS_AT ); if ( namingContexts != null ) { namingContexts.remove( partition.getSuffixDn().getName() ); } partitions.remove( partition.getSuffixDn().getName() ); }
attribute.remove( values );
attribute.remove( values );
attribute.remove( values );
attribute.remove( values );
attribute.remove( values );
attribute.remove( values );
attribute.remove( values );
/** * Update the list of modifications with a modification associated with a specific * role, if it's requested. */ private void getOperationalModForReplace( boolean hasRole, AttributeType attributeType, Entry entry, Dn oldDn, Dn newDn, List<Modification> modifications ) throws LdapInvalidAttributeValueException { String oldDnStr = oldDn.getName(); String newDnStr = newDn.getName(); if ( hasRole ) { Attribute operational = entry.get( attributeType ).clone(); if ( operational == null ) { operational = new DefaultAttribute( attributeType, newDnStr ); } else { operational.remove( oldDnStr ); operational.add( newDnStr ); } modifications.add( new DefaultModification( ModificationOperation.REPLACE_ATTRIBUTE, operational ) ); } }
private void removeMemberFromRoleOrGroup(final CoreSession session, final String dn, final String memberDN, final String attributeName) throws LdapException { final Entry entry = session.lookup(new Dn(dn), attributeName); final Attribute attribute = entry.get(attributeName); if (attribute != null) { attribute.remove(memberDN); final ModifyRequestImpl modifyRequestImpl = new ModifyRequestImpl(); modifyRequestImpl.setName(entry.getDn()); modifyRequestImpl.replace(attribute); session.modify(modifyRequestImpl); } }
public void widgetSelected( SelectionEvent e ) { StructuredSelection selection = ( StructuredSelection ) contextEntryTableViewer.getSelection(); if ( !selection.isEmpty() ) { AttributeValueObject attributeValueObject = ( AttributeValueObject ) selection.getFirstElement(); Attribute attribute = contextEntry.get( attributeValueObject.getAttribute() ); if ( attribute != null ) { attribute.remove( attributeValueObject.getValue() ); contextEntryTableViewer.refresh(); resizeContextEntryTableColumnsToFit(); masterDetailsBlock.setEditorDirty(); dirty = true; } } } };
public void widgetSelected( SelectionEvent e ) { StructuredSelection selection = ( StructuredSelection ) contextEntryTableViewer.getSelection(); if ( !selection.isEmpty() ) { AttributeValueObject attributeValueObject = ( AttributeValueObject ) selection.getFirstElement(); Attribute attribute = contextEntry.get( attributeValueObject.getAttribute() ); if ( attribute != null ) { attribute.remove( attributeValueObject.getValue() ); contextEntryTableViewer.refresh(); resizeContextEntryTableColumnsToFit(); masterDetailsBlock.setEditorDirty(); dirty = true; } } } };
public void widgetSelected( SelectionEvent e ) { StructuredSelection selection = ( StructuredSelection ) contextEntryTableViewer.getSelection(); if ( !selection.isEmpty() ) { AttributeValueObject attributeValueObject = ( AttributeValueObject ) selection.getFirstElement(); Attribute attribute = contextEntry.get( attributeValueObject.getAttribute() ); if ( attribute != null ) { attribute.remove( attributeValueObject.getValue() ); contextEntryTableViewer.refresh(); resizeContextEntryTableColumnsToFit(); masterDetailsBlock.setEditorDirty(); dirty = true; } } } };
public void widgetSelected( SelectionEvent e ) { StructuredSelection selection = ( StructuredSelection ) contextEntryTableViewer.getSelection(); if ( !selection.isEmpty() ) { AttributeValueObject attributeValueObject = ( AttributeValueObject ) selection.getFirstElement(); Attribute attribute = contextEntry.get( attributeValueObject.getAttribute() ); if ( attribute != null ) { attribute.remove( attributeValueObject.getValue() ); contextEntryTableViewer.refresh(); resizeContextEntryTableColumnsToFit(); masterDetailsBlock.setEditorDirty(); dirty = true; } } } };
for ( Value value : mod.getAttribute() ) ocFinalState.remove( value.getValue() );
existing.remove( value );
if ( attribute != null ) attribute.remove( oldValue );
if ( attribute != null ) attribute.remove( oldValue );