public class SchemaChecker extends Object
Constructor and Description |
---|
SchemaChecker() |
Modifier and Type | Method and Description |
---|---|
static void |
preventRdnChangeOnModifyRemove(org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.entry.ModificationOperation mod,
org.apache.directory.shared.ldap.entry.EntryAttribute attribute,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Makes sure a modify operation does not delete RDN attributes or their value.
|
static void |
preventRdnChangeOnModifyRemove(org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.entry.ModificationOperation mod,
org.apache.directory.shared.ldap.entry.ServerEntry entry,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Makes sure a modify operation does not delete RDN attributes or their value.
|
static void |
preventRdnChangeOnModifyReplace(org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.entry.ModificationOperation mod,
org.apache.directory.shared.ldap.entry.EntryAttribute attribute,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Makes sure a modify operation does not replace RDN attributes or their value.
|
static void |
preventRdnChangeOnModifyReplace(org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.entry.ModificationOperation mod,
org.apache.directory.shared.ldap.entry.ServerEntry entry,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Makes sure a modify operation does not replace RDN attributes or their value.
|
static void |
preventStructuralClassRemovalOnModifyRemove(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager,
org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.entry.ModificationOperation mod,
org.apache.directory.shared.ldap.entry.EntryAttribute attribute,
org.apache.directory.shared.ldap.entry.EntryAttribute entryObjectClasses)
Makes sure modify operations do not leave the entry without a STRUCTURAL
objectClass.
|
static void |
preventStructuralClassRemovalOnModifyReplace(org.apache.directory.shared.ldap.schema.registries.ObjectClassRegistry registry,
org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.entry.ModificationOperation mod,
org.apache.directory.shared.ldap.entry.ServerEntry entry)
Makes sure modify operations do not leave the entry without a STRUCTURAL
objectClass.
|
static void |
preventStructuralClassRemovalOnModifyReplace(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager,
org.apache.directory.shared.ldap.name.DN name,
org.apache.directory.shared.ldap.entry.ModificationOperation mod,
org.apache.directory.shared.ldap.entry.EntryAttribute attribute)
Makes sure modify operations do not leave the entry without a STRUCTURAL
objectClass.
|
public static void preventStructuralClassRemovalOnModifyReplace(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager, org.apache.directory.shared.ldap.name.DN name, org.apache.directory.shared.ldap.entry.ModificationOperation mod, org.apache.directory.shared.ldap.entry.EntryAttribute attribute) throws org.apache.directory.shared.ldap.exception.LdapException
registry
- the objectClass registry to lookup ObjectClass specificationsname
- the name of the entry being modifiedmod
- the type of modification operation being performed (should be
REMOVE_ATTRIBUTE)attribute
- the attribute being modifiedorg.apache.directory.shared.ldap.exception.LdapException
- if modify operations leave the entry inconsistent
without a STRUCTURAL objectClasspublic static void preventStructuralClassRemovalOnModifyReplace(org.apache.directory.shared.ldap.schema.registries.ObjectClassRegistry registry, org.apache.directory.shared.ldap.name.DN name, org.apache.directory.shared.ldap.entry.ModificationOperation mod, org.apache.directory.shared.ldap.entry.ServerEntry entry) throws org.apache.directory.shared.ldap.exception.LdapException
registry
- the objectClass registry to lookup ObjectClass specificationsname
- the name of the entry being modifiedmod
- the type of modification operation being performed (should be
REMOVE_ATTRIBUTE)entry
- the entry being modifiedorg.apache.directory.shared.ldap.exception.LdapException
- if modify operations leave the entry inconsistent
without a STRUCTURAL objectClasspublic static void preventStructuralClassRemovalOnModifyRemove(org.apache.directory.shared.ldap.schema.SchemaManager schemaManager, org.apache.directory.shared.ldap.name.DN name, org.apache.directory.shared.ldap.entry.ModificationOperation mod, org.apache.directory.shared.ldap.entry.EntryAttribute attribute, org.apache.directory.shared.ldap.entry.EntryAttribute entryObjectClasses) throws org.apache.directory.shared.ldap.exception.LdapException
registry
- the objectClass registry to lookup ObjectClass specificationsname
- the name of the entry being modifiedmod
- the type of modification operation being performed (should be
REMOVE_ATTRIBUTE)attribute
- the attribute being modifiedentryObjectClasses
- the entry being modifiedorg.apache.directory.shared.ldap.exception.LdapException
- if modify operations leave the entry inconsistent
without a STRUCTURAL objectClasspublic static void preventRdnChangeOnModifyReplace(org.apache.directory.shared.ldap.name.DN name, org.apache.directory.shared.ldap.entry.ModificationOperation mod, org.apache.directory.shared.ldap.entry.EntryAttribute attribute, org.apache.directory.shared.ldap.schema.SchemaManager schemaManager) throws org.apache.directory.shared.ldap.exception.LdapException
The Modify Operation cannot be used to remove from an entry any of its distinguished values, those values which form the entry's relative distinguished name. An attempt to do so will result in the server returning the error notAllowedOnRDN. The Modify DN Operation described in section 4.9 is used to rename an entry.
name
- the distinguished name of the attribute being modifiedmod
- the modification operation being performed (should be REPLACE_ATTRIBUTE )attribute
- the attribute being modifiedoidRegistry
- org.apache.directory.shared.ldap.exception.LdapException
- if the modify operation is removing an Rdn attributepublic static void preventRdnChangeOnModifyReplace(org.apache.directory.shared.ldap.name.DN name, org.apache.directory.shared.ldap.entry.ModificationOperation mod, org.apache.directory.shared.ldap.entry.ServerEntry entry, org.apache.directory.shared.ldap.schema.SchemaManager schemaManager) throws org.apache.directory.shared.ldap.exception.LdapException
The Modify Operation cannot be used to remove from an entry any of its distinguished values, those values which form the entry's relative distinguished name. An attempt to do so will result in the server returning the error notAllowedOnRDN. The Modify DN Operation described in section 4.9 is used to rename an entry.
name
- the distinguished name of the attribute being modifiedmod
- the modification operation being performed (should be REPLACE_ATTRIBUTE )entry
- oidRegistry
- org.apache.directory.shared.ldap.exception.LdapException
- if the modify operation is removing an Rdn attributepublic static void preventRdnChangeOnModifyRemove(org.apache.directory.shared.ldap.name.DN name, org.apache.directory.shared.ldap.entry.ModificationOperation mod, org.apache.directory.shared.ldap.entry.EntryAttribute attribute, org.apache.directory.shared.ldap.schema.SchemaManager schemaManager) throws org.apache.directory.shared.ldap.exception.LdapException
The Modify Operation cannot be used to remove from an entry any of its distinguished values, those values which form the entry's relative distinguished name. An attempt to do so will result in the server returning the error notAllowedOnRDN. The Modify DN Operation described in section 4.9 is used to rename an entry.
name
- the distinguished name of the attribute being modifiedmod
- the modification operation being performed (should be REMOVE_ATTRIBUTE )attribute
- the attribute being modifiedorg.apache.directory.shared.ldap.exception.LdapException
- if the modify operation is removing an Rdn attributepublic static void preventRdnChangeOnModifyRemove(org.apache.directory.shared.ldap.name.DN name, org.apache.directory.shared.ldap.entry.ModificationOperation mod, org.apache.directory.shared.ldap.entry.ServerEntry entry, org.apache.directory.shared.ldap.schema.SchemaManager schemaManager) throws org.apache.directory.shared.ldap.exception.LdapException
The Modify Operation cannot be used to remove from an entry any of its distinguished values, those values which form the entry's relative distinguished name. An attempt to do so will result in the server returning the error notAllowedOnRDN. The Modify DN Operation described in section 4.9 is used to rename an entry.
name
- the distinguished name of the attribute being modifiedmod
- the modification operation being performed (should be REMOVE_ATTRIBUTE )entry
- oidRegistry
- org.apache.directory.shared.ldap.exception.LdapException
- if the modify operation is removing an Rdn attributeCopyright © 2003–2013 The Apache Software Foundation. All rights reserved.