IN PROGRESS - issue LDAP-41: Documentation error 2

http://opensource.atlassian.com/projects/spring/browse/LDAP-41
This commit is contained in:
Ulrik Sandberg
2007-01-31 23:28:53 +00:00
parent 4c6b39f83d
commit 5b0d88b622

View File

@@ -53,7 +53,7 @@ public class PersonDaoImpl implements PersonDao {
public class PersonDaoImpl implements PersonDao {
private LdapTemplate ldapTemplate;
...
<emphasis role="bold"> private class PersonAttributesMapper implements AttributesMapper() {
<emphasis role="bold"> private class PersonAttributesMapper implements AttributesMapper {
public Object mapFromAttributes(Attributes attrs) throws NamingException {
Person person = new Person();
person.setFullName((String)attrs.get("cn").get());
@@ -65,7 +65,7 @@ public class PersonDaoImpl implements PersonDao {
</emphasis>
public List getAllPersons() {
return ldapTemplate.search("", "(objectclass=person)", <emphasis
role="bold">new PersonAttributesMapper()</emphasis>;
role="bold">new PersonAttributesMapper()</emphasis>);
}
}</programlisting>
</example>