/** * {@inheritDoc} */ @Override public boolean contains( AttributeType attributeType, byte[]... values ) { if ( attributeType == null ) { return false; } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { return attribute.contains( values ); } else { return false; } }
/** * {@inheritDoc} */ @Override public boolean contains( AttributeType attributeType, String... values ) { if ( attributeType == null ) { return false; } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { return attribute.contains( values ); } else { return false; } }
/** * {@inheritDoc} */ @Override public boolean contains( AttributeType attributeType, String... values ) { if ( attributeType == null ) { return false; } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { return attribute.contains( values ); } else { return false; } }
/** * {@inheritDoc} */ @Override public boolean contains( AttributeType attributeType, byte[]... values ) { if ( attributeType == null ) { return false; } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { return attribute.contains( values ); } else { return false; } }
/** * {@inheritDoc} */ @Override public boolean contains( AttributeType attributeType, byte[]... values ) { if ( attributeType == null ) { return false; } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { return attribute.contains( values ); } else { return false; } }
/** * {@inheritDoc} */ @Override public boolean contains( AttributeType attributeType, Value... values ) { if ( attributeType == null ) { return false; } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { return attribute.contains( values ); } else { return false; } }
/** * {@inheritDoc} */ @Override public boolean contains( AttributeType attributeType, Value... values ) { if ( attributeType == null ) { return false; } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { return attribute.contains( values ); } else { return false; } }
/** * {@inheritDoc} */ @Override public boolean contains( AttributeType attributeType, String... values ) { if ( attributeType == null ) { return false; } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { return attribute.contains( values ); } else { return false; } }
/** * {@inheritDoc} */ @Override public boolean contains( AttributeType attributeType, Value... values ) { if ( attributeType == null ) { return false; } Attribute attribute = attributes.get( attributeType.getOid() ); if ( attribute != null ) { return attribute.contains( values ); } else { return false; } }
/** * {@inheritDoc} */ @Override public boolean contains( String upId, byte[]... values ) { if ( Strings.isEmpty( upId ) ) { return false; } String id = getId( upId ); if ( schemaManager != null ) { try { return contains( schemaManager.lookupAttributeTypeRegistry( id ), values ); } catch ( LdapException le ) { return false; } } Attribute attribute = attributes.get( id ); if ( attribute == null ) { return false; } return attribute.contains( values ); }
/** * {@inheritDoc} */ @Override public boolean contains( String upId, byte[]... values ) { if ( Strings.isEmpty( upId ) ) { return false; } String id = getId( upId ); if ( schemaManager != null ) { try { return contains( schemaManager.lookupAttributeTypeRegistry( id ), values ); } catch ( LdapException le ) { return false; } } Attribute attribute = attributes.get( id ); if ( attribute == null ) { return false; } return attribute.contains( values ); }
/** * {@inheritDoc} */ @Override public boolean contains( String upId, String... values ) { if ( Strings.isEmpty( upId ) ) { return false; } String id = getId( upId ); if ( schemaManager != null ) { try { return contains( schemaManager.lookupAttributeTypeRegistry( id ), values ); } catch ( LdapException le ) { return false; } } Attribute attribute = attributes.get( id ); if ( attribute == null ) { return false; } return attribute.contains( values ); }
public void subentryModified( ModifyOperationContext opContext, Entry entry ) throws LdapException { if ( !hasPrescriptiveTrigger( entry ) ) { return; } Dn normName = opContext.getDn(); List<Modification> mods = opContext.getModItems(); boolean isTriggerSpecModified = false; for ( Modification mod : mods ) { isTriggerSpecModified |= mod.getAttribute().contains( PRESCRIPTIVE_TRIGGER_ATTR ); } if ( isTriggerSpecModified ) { subentryDeleted( normName, entry ); subentryAdded( normName, entry ); } }
public void move( MoveOperationContext moveContext, Entry entry, boolean cascade ) throws LdapException { Attribute oc = entry.get( objectClassAT ); for ( Value value : oc ) { String oid = schemaManager.getObjectClassRegistry().getOidByName( value.getValue() ); if ( objectClass2synchronizerMap.containsKey( oid ) ) { RegistrySynchronizer synchronizer = objectClass2synchronizerMap.get( oid ); synchronizer.move( moveContext.getDn(), moveContext.getNewSuperior(), entry, cascade ); return; } } if ( oc.contains( MetaSchemaConstants.META_SCHEMA_OC ) ) { schemaSynchronizer.move( moveContext.getDn(), moveContext.getNewSuperior(), entry, cascade ); return; } throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM ); }
/** * Rename a Schema Object. * * @param renameContext The contect contaoning the rename informations * @param doCascadeModify unused * @throws LdapException If the rename failed */ public void rename( RenameOperationContext renameContext, boolean doCascadeModify ) throws LdapException { Entry originalEntry = ( ( ClonedServerEntry ) renameContext.getEntry() ).getOriginalEntry(); Attribute oc = originalEntry.get( objectClassAT ); for ( Value value : oc ) { String oid = schemaManager.getObjectClassRegistry().getOidByName( value.getValue() ); if ( objectClass2synchronizerMap.containsKey( oid ) ) { RegistrySynchronizer synchronizer = objectClass2synchronizerMap.get( oid ); synchronizer.rename( originalEntry, renameContext.getNewRdn(), doCascadeModify ); return; } } if ( oc.contains( MetaSchemaConstants.META_SCHEMA_OC ) ) { schemaSynchronizer.rename( originalEntry, renameContext.getNewRdn(), doCascadeModify ); return; } throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM ); }
public void moveAndRename( MoveAndRenameOperationContext moveAndRenameContext, Entry entry, boolean cascade ) throws LdapException { Attribute oc = entry.get( objectClassAT ); for ( Value value : oc ) { String oid = schemaManager.getObjectClassRegistry().getOidByName( value.getValue() ); if ( objectClass2synchronizerMap.containsKey( oid ) ) { RegistrySynchronizer synchronizer = objectClass2synchronizerMap.get( oid ); synchronizer.moveAndRename( moveAndRenameContext.getDn(), moveAndRenameContext.getNewSuperiorDn(), moveAndRenameContext.getNewRdn(), moveAndRenameContext.getDeleteOldRdn(), entry, cascade ); return; } } if ( oc.contains( MetaSchemaConstants.META_SCHEMA_OC ) ) { schemaSynchronizer.moveAndRename( moveAndRenameContext.getDn(), moveAndRenameContext.getNewSuperiorDn(), moveAndRenameContext.getNewRdn(), moveAndRenameContext.getDeleteOldRdn(), entry, cascade ); return; } throw new LdapUnwillingToPerformException( ResultCodeEnum.UNWILLING_TO_PERFORM ); } }