use of org.structr.ldap.entity.LDAPNode in project structr by structr.
the class StructrLDAPWrapper method filter.
public List<Entry> filter(final Dn dn, final ExprNode filter, final SearchScope scope) throws LdapException {
try (final Tx tx = app().tx()) {
final LDAPNode entry = find(dn);
List<Entry> result = null;
if (entry != null) {
result = filter(entry, filter, scope, 0);
}
tx.success();
if (result != null) {
return result;
}
} catch (FrameworkException fex) {
handleException(fex);
}
return Collections.emptyList();
}
use of org.structr.ldap.entity.LDAPNode in project structr by structr.
the class StructrLDAPWrapper method get.
public Entry get(final Dn dn) throws LdapException {
try (final Tx tx = app().tx()) {
final LDAPNode entry = find(dn);
tx.success();
if (entry != null) {
return getEntry(entry);
}
} catch (FrameworkException fex) {
handleException(fex);
}
// not found
return null;
}
Aggregations