Package org.springframework.ldap.schema
Class BasicSchemaSpecification
- java.lang.Object
-
- org.springframework.ldap.schema.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.
-
-
Constructor Summary
Constructors Constructor Description BasicSchemaSpecification()
-
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.
-
-
-
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 interfaceSpecification<LdapAttributes>
- Throws:
javax.naming.NamingException
-
-