Class BasicSchemaSpecification

  • All Implemented Interfaces:
    Specification<LdapAttributes>

    public class BasicSchemaSpecification
    extends java.lang.Object
    implements Specification<LdapAttributes>
    BasicSchemaSpecification establishes a minimal set of requirements for object classes.

    This basic specification, which does not actually validate against any schema, deems objects valid as long as they meet the following criteria:

    • the object has a non-null DN.
    • the object contains the naming attribute declared by the DN.
    • the object declares an objectClass.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isSatisfiedBy​(LdapAttributes record)
      Determines if the policy is satisfied by the supplied LdapAttributes object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicSchemaSpecification

        public BasicSchemaSpecification()
    • Method Detail

      • isSatisfiedBy

        public boolean isSatisfiedBy​(LdapAttributes record)
                              throws javax.naming.NamingException
        Determines if the policy is satisfied by the supplied LdapAttributes object.
        Specified by:
        isSatisfiedBy in interface Specification<LdapAttributes>
        Throws:
        javax.naming.NamingException