@Test public void testHasEntry() throws Exception { try (Session dir = userDir.getSession()) { assertTrue(dir.hasEntry("Administrator")); assertFalse(dir.hasEntry("foo")); } }
@Override public boolean hasEntry(String id) { try { return getLdapEntry(id) != null; } catch (NamingException e) { throw new DirectoryException("hasEntry failed: " + e.getMessage(), e); } }
LDAPSession extends BaseSession { @Override public boolean hasEntry(String id) { try { return getLdapEntry(id) != null; } catch (NamingException e) { throw new DirectoryException("hasEntry failed: " + e.getMessage(), e); } } }
LDAPSession extends BaseSession { @Override public boolean hasEntry(String id) { try { return getLdapEntry(id) != null; } catch (NamingException e) { throw new DirectoryException("hasEntry failed: " + e.getMessage(), e); } } LDAPSession(LDAPDirectory directory); }
LDAPSession extends BaseSession { @Override public boolean hasEntry(String id) { try { return getLdapEntry(id) != null; } catch (NamingException e) { throw new DirectoryException("hasEntry failed: " + e.getMessage(), e); } } LDAPSession(LDAPDirectory directory); @Override LDAPDirectory getDirectory(); DirContext getContext(); @Override void deleteEntryWithoutReferences(String id); @Override boolean hasEntry(String id); @Override void deleteEntry(String id, Map<String, String> map); @Override DocumentModel getEntryFromSource(String id, boolean fetchReferences); @Override DocumentModelList query(Map<String, Serializable> filter, Set<String> fulltext, Map<String, String> orderBy,
            boolean fetchReferences, int limit, int offset); @Override DocumentModelList query(QueryBuilder queryBuilder, boolean fetchReferences); @Override List<String> queryIds(QueryBuilder queryBuilder); @Override void close(); @Override boolean authenticate(String username, String password); @Override boolean isAuthenticating(); boolean rdnMatchesIdField(); @Override // useful for the log function String toString(); @Override DocumentModel createEntry(DocumentModel entry); }
LDAPSession extends BaseSession { @Override public boolean hasEntry(String id) { try { return getLdapEntry(id) != null; } catch (NamingException e) { throw new DirectoryException("hasEntry failed: " + e.getMessage(), e); } } LDAPSession(LDAPDirectory directory); @Override LDAPDirectory getDirectory(); DirContext getContext(); @Override void deleteEntryWithoutReferences(String id); @Override boolean hasEntry(String id); @Override void deleteEntry(String id, Map<String, String> map); @Override DocumentModel getEntryFromSource(String id, boolean fetchReferences); @Override DocumentModelList query(Map<String, Serializable> filter, Set<String> fulltext, Map<String, String> orderBy,
            boolean fetchReferences, int limit, int offset); @Override DocumentModelList query(QueryBuilder queryBuilder, boolean fetchReferences); @Override List<String> queryIds(QueryBuilder queryBuilder); @Override void close(); @Override boolean authenticate(String username, String password); @Override boolean isAuthenticating(); boolean rdnMatchesIdField(); @Override // useful for the log function String toString(); @Override DocumentModel createEntry(DocumentModel entry);  }