|
||||||||||
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.LdapDN name,
org.apache.directory.shared.ldap.entry.ModificationOperation mod,
ServerAttribute attribute,
OidRegistry oidRegistry)
Makes sure a modify operation does not delete RDN attributes or their value. |
static void |
preventRdnChangeOnModifyRemove(org.apache.directory.shared.ldap.name.LdapDN name,
org.apache.directory.shared.ldap.entry.ModificationOperation mod,
ServerEntry entry,
OidRegistry oidRegistry)
Makes sure a modify operation does not delete RDN attributes or their value. |
static void |
preventRdnChangeOnModifyReplace(org.apache.directory.shared.ldap.name.LdapDN name,
org.apache.directory.shared.ldap.entry.ModificationOperation mod,
ServerAttribute attribute,
OidRegistry oidRegistry)
Makes sure a modify operation does not replace RDN attributes or their value. |
static void |
preventRdnChangeOnModifyReplace(org.apache.directory.shared.ldap.name.LdapDN name,
org.apache.directory.shared.ldap.entry.ModificationOperation mod,
ServerEntry entry,
OidRegistry oidRegistry)
Makes sure a modify operation does not replace RDN attributes or their value. |
static void |
preventStructuralClassRemovalOnModifyRemove(ObjectClassRegistry registry,
org.apache.directory.shared.ldap.name.LdapDN 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(ObjectClassRegistry registry,
org.apache.directory.shared.ldap.name.LdapDN name,
org.apache.directory.shared.ldap.entry.ModificationOperation mod,
ServerAttribute attribute)
Makes sure modify operations do not leave the entry without a STRUCTURAL objectClass. |
static void |
preventStructuralClassRemovalOnModifyReplace(ObjectClassRegistry registry,
org.apache.directory.shared.ldap.name.LdapDN name,
org.apache.directory.shared.ldap.entry.ModificationOperation mod,
ServerEntry entry)
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(ObjectClassRegistry registry, org.apache.directory.shared.ldap.name.LdapDN name, org.apache.directory.shared.ldap.entry.ModificationOperation mod, ServerAttribute attribute) throws javax.naming.NamingException
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
javax.naming.NamingException
- if modify operations leave the entry inconsistent
without a STRUCTURAL objectClasspublic static void preventStructuralClassRemovalOnModifyReplace(ObjectClassRegistry registry, org.apache.directory.shared.ldap.name.LdapDN name, org.apache.directory.shared.ldap.entry.ModificationOperation mod, ServerEntry entry) throws javax.naming.NamingException
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
javax.naming.NamingException
- if modify operations leave the entry inconsistent
without a STRUCTURAL objectClasspublic static void preventStructuralClassRemovalOnModifyRemove(ObjectClassRegistry registry, org.apache.directory.shared.ldap.name.LdapDN 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 javax.naming.NamingException
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
javax.naming.NamingException
- if modify operations leave the entry inconsistent
without a STRUCTURAL objectClasspublic static void preventRdnChangeOnModifyReplace(org.apache.directory.shared.ldap.name.LdapDN name, org.apache.directory.shared.ldap.entry.ModificationOperation mod, ServerAttribute attribute, OidRegistry oidRegistry) throws javax.naming.NamingException
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
-
javax.naming.NamingException
- if the modify operation is removing an Rdn attributepublic static void preventRdnChangeOnModifyReplace(org.apache.directory.shared.ldap.name.LdapDN name, org.apache.directory.shared.ldap.entry.ModificationOperation mod, ServerEntry entry, OidRegistry oidRegistry) throws javax.naming.NamingException
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
-
javax.naming.NamingException
- if the modify operation is removing an Rdn attributepublic static void preventRdnChangeOnModifyRemove(org.apache.directory.shared.ldap.name.LdapDN name, org.apache.directory.shared.ldap.entry.ModificationOperation mod, ServerAttribute attribute, OidRegistry oidRegistry) throws javax.naming.NamingException
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
javax.naming.NamingException
- if the modify operation is removing an Rdn attributepublic static void preventRdnChangeOnModifyRemove(org.apache.directory.shared.ldap.name.LdapDN name, org.apache.directory.shared.ldap.entry.ModificationOperation mod, ServerEntry entry, OidRegistry oidRegistry) throws javax.naming.NamingException
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
-
javax.naming.NamingException
- 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 |