@Test public void testDeleteEntry() { assumeTrue(isExternalServer()); try (Session session = userDir.getSession()) { session.deleteEntry("user1"); DocumentModel entry = session.getEntry("user1"); assertNull(entry); DocumentModelList entries = session.getEntries(); assertEquals(3, entries.size()); session.deleteEntry("user2"); entry = session.getEntry("user2"); assertNull(entry); entries = session.getEntries(); assertEquals(2, entries.size()); session.deleteEntry("Administrator"); entry = session.getEntry("Administrator"); assertNull(entry); entries = session.getEntries(); assertEquals(1, entries.size()); session.deleteEntry("user3"); entry = session.getEntry("user3"); assertNull(entry); entries = session.getEntries(); assertEquals(0, entries.size()); } }
@Override public void deleteEntry(String id, Map<String, String> map) { log.warn("Calling deleteEntry extended on LDAP directory"); deleteEntry(id); }
LDAPSession extends BaseSession { @Override public void deleteEntry(String id, Map<String, String> map) { log.warn("Calling deleteEntry extended on LDAP directory"); deleteEntry(id); } }
LDAPSession extends BaseSession { @Override public void deleteEntry(String id, Map<String, String> map) { log.warn("Calling deleteEntry extended on LDAP directory"); deleteEntry(id); } LDAPSession(LDAPDirectory directory); }
LDAPSession extends BaseSession { @Override public void deleteEntry(String id, Map<String, String> map) { log.warn("Calling deleteEntry extended on LDAP directory"); deleteEntry(id); } 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 void deleteEntry(String id, Map<String, String> map) { log.warn("Calling deleteEntry extended on LDAP directory"); deleteEntry(id); } 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);  }