/** * {@link Person} object stored inside LDAP. * * @author Mark Paluch */ @Entry(base = "ou=people,dc=springframework,dc=org", objectClasses = "inetOrgPerson") @Data public class Person { private @Id Name id; private @DnAttribute(value = "uid", index = 3) String uid; private @Attribute(name = "cn") String fullName; private @Attribute(name = "sn") String lastname; private String userPassword; }
/** * @author Mattias Hellborg Arthursson */ @Entry(objectClasses = {"inetOrgPerson", "organizationalPerson", "person", "top"}) public class UnitTestPersonWithIndexedDnAttributes { @Id private Name dn; @DnAttribute(value = "cn", index=2) private String fullName; @DnAttribute(value = "ou", index=1) private String company; @DnAttribute(value= "c", index=0) private String country; public void setFullName(String fullName) { this.fullName = fullName; } public void setCompany(String company) { this.company = company; } public void setCountry(String country) { this.country = country; } }
@Entry(objectClasses="test") private final static class NoId { }
private final static class NoEntry { @SuppressWarnings("unused") @Id Name id; }
@Entry(objectClasses = {"top", "groupOfUniqueNames"}, base = "cn=groups") public class Group { @Id private Name dn; @Attribute(name="cn") @DnAttribute("cn") private String name; @Attribute(name="uniqueMember") private Set<Name> members;
@Entry(objectClasses = {"inetOrgPerson", "organizationalPerson", "person", "top"}) public class UnitTestPersonWithIndexedAndUnindexedDnAttributes { @Id private Name dn; @DnAttribute(value = "cn", index=2) private String fullName; @DnAttribute(value = "ou") private String company; @DnAttribute(value= "c", index=0) private String country;
@Entry(base="ou=someOu", objectClasses = {"inetOrgPerson", "organizationalPerson", "person", "top"}) public class BaseUnitTestPerson { @Id
@Entry(objectClasses = {"inetOrgPerson", "organizationalPerson", "person", "top"}) public class UnitTestPerson { @Id private Name dn; @Attribute(name = "cn") @DnAttribute("cn") private String fullName; @Attribute(name = "sn") private String lastName; @Attribute(name = "description") private List<String> description; @Transient @DnAttribute("c") private String country; @Transient @DnAttribute("ou") private String company; @Attribute(readonly = true) private String entryUUID;