}
@Override
- public Boolean daoHasEntry(LdapName dn) {
+ public Boolean entryExists(LdapName dn) {
return osUserDn.equals(dn);
}
@Override
- public LdapEntry daoGetEntry(LdapName key) throws NameNotFoundException {
+ public LdapEntry doGetEntry(LdapName key) throws NameNotFoundException {
if (osUserDn.equals(key))
return osUser;
else
}
+ @Override
+ public Attributes doGetAttributes(LdapName name) {
+ try {
+ return doGetEntry(name).getAttributes();
+ } catch (NameNotFoundException e) {
+ throw new IllegalStateException(name + " doe not exist in " + getDirectory().getBaseDn(), e);
+ }
+ }
}