From d0d8611d15fd8c95cda5cecb9f886970b190e5dd Mon Sep 17 00:00:00 2001 From: "Eric J. Bowersox" Date: Thu, 30 Dec 2004 09:00:30 +0000 Subject: [PATCH] the external references need to be extracted in here... --- .../core/impl/TopicUserContextImpl.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/com/silverwrist/venice/core/impl/TopicUserContextImpl.java b/src/com/silverwrist/venice/core/impl/TopicUserContextImpl.java index 1e15a0d..6de58b9 100644 --- a/src/com/silverwrist/venice/core/impl/TopicUserContextImpl.java +++ b/src/com/silverwrist/venice/core/impl/TopicUserContextImpl.java @@ -813,13 +813,34 @@ class TopicUserContextImpl implements TopicContext String real_pseud, real_text; int text_linecount; + Set internal_refs, external_refs; try { // retrieve the processed values real_pseud = pseud_ch.getValue(); real_text = text_ch.getValue(); text_linecount = text_ch.getLines(); + internal_refs = text_ch.getInternalReferences(); + external_refs = text_ch.getExternalReferences(); if (logger.isDebugEnabled()) + { // do some debugging output logger.debug("new post has " + text_linecount + " lines"); + if (internal_refs.size()>0) + { // display internal references + logger.debug("Internal references here:"); + for (Iterator it=internal_refs.iterator(); it.hasNext(); ) + logger.debug(" " + it.next()); + + } // end if + + if (external_refs.size()>0) + { // display external references + logger.debug("External references here:"); + for (Iterator it=external_refs.iterator(); it.hasNext(); ) + logger.debug(" " + it.next()); + + } // end if + + } // end if } // end try catch (NotYetFinishedException e)