Пример #1
0
 private void mapToContext(Person person, DirContextAdapter context) {
   context.setAttributeValues("objectclass", new String[] {"top", "person"});
   context.setAttributeValue("cn", person.getFullName());
   context.setAttributeValue("sn", person.getLastName());
   context.setAttributeValue("description", person.getDescription());
   context.setAttributeValue("telephoneNumber", person.getPhone());
 }
Пример #2
0
 private LdapName buildDn(Person person) {
   return buildDn(person.getCountry(), person.getCompany(), person.getFullName());
 }