@Override public DocumentModel getEntry(String id, boolean fetchReferences) { if (!hasPermission(SecurityConstants.READ)) { return null; } if (readAllColumns) { // bypass cache when reading all columns return getEntryFromSource(id, fetchReferences); } return directory.getCache().getEntry(id, this, fetchReferences); }
} else { if(entryId != null){ DirectoryCache cache = directory.getCache(); log.error("Session: " + session + "Vocabulary " + directoryName + " entry: " + entryId + " == Entry KO: directoryCache" + directory.getCache() + " / entryCache: " + directory.getCache().getEntryCache() + " / entryCacheWithoutReferences: " + directory.getCache().getEntryCacheWithoutReferences());
cacheKeys.add(userNameLowerCase); userDirectory.getCache().invalidate(cacheKeys);