|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.schema.SchemaChecker
public class SchemaChecker
Performs schema checks on behalf of the SchemaInterceptor. TODO: we really need to refactor this code since there's much duplication
Constructor Summary | |
---|---|
SchemaChecker()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaChecker()
Method Detail |
---|
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 modified
org.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 modified
org.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 modified
org.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 modified
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.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 attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |