added support for QID (quick ID) generation within pages, in preparation for

supporting a hitcounter system in the page footer
This commit is contained in:
Eric J. Bowersox 2001-10-23 21:42:29 +00:00
parent bdc6977680
commit a900d9d51f
37 changed files with 246 additions and 14 deletions

View File

@ -110,6 +110,12 @@ public class AdminFindUser implements JSPRender, SearchMode
} // end getPageTitle
public String getPageQID()
{
return "sysadmin?cmd=UF";
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -80,6 +80,12 @@ public class AttachmentForm implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -75,6 +75,12 @@ public class AuditDataViewer implements ContentRender, ColorSelectors
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface ContentRender
*--------------------------------------------------------------------------------

View File

@ -85,10 +85,22 @@ public class BaseJSPData
public String getTitle(RenderData rdat)
{
if (content==null)
return "";
else
return content.getPageTitle(rdat);
} // end getTitle
public String getPageQID()
{
if (content==null)
return null;
else
return content.getPageQID();
} // end getPageQID
public boolean locationSpecified()
{
return (location!=null);

View File

@ -112,6 +112,12 @@ public class ConferenceActivity implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -77,6 +77,12 @@ public class ConferenceListing implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return "go/" + sig.getAlias() + "!";
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -120,6 +120,12 @@ public class ConferenceMembership implements JSPRender, SearchMode
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -30,7 +30,7 @@ public class ConferenceSequence implements JSPRender
*/
// Attribute name for request attribute
protected static final String ATTR_NAME = "com.silverwrist.venice.content.Hotlist";
protected static final String ATTR_NAME = "com.silverwrist.venice.content.ConferenceSequence";
/*--------------------------------------------------------------------------------
* Attributes
@ -97,6 +97,12 @@ public class ConferenceSequence implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -103,6 +103,12 @@ public class ConfirmBox implements ContentRender, ColorSelectors
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface ContentRender
*--------------------------------------------------------------------------------

View File

@ -133,6 +133,12 @@ public class ContentDialog implements Cloneable, ContentRender, ColorSelectors
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface ContentRender
*--------------------------------------------------------------------------------

View File

@ -110,6 +110,12 @@ public class ContentMenuPanel implements Cloneable, ContentRender, ColorSelector
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface ContentRender
*--------------------------------------------------------------------------------

View File

@ -61,6 +61,12 @@ public class ErrorBox extends VeniceServletResult implements ContentRender, Colo
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface ContentRender
*--------------------------------------------------------------------------------

View File

@ -149,6 +149,12 @@ public class FindData implements JSPRender, SearchMode
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -74,6 +74,12 @@ public class Hotlist implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -71,6 +71,12 @@ public class Invitation implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return "sigops?cmd=I&sig=" + sig.getSIGID();
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -75,6 +75,12 @@ public class ManageConference implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -87,6 +87,12 @@ public class ManageConferenceAliases implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -72,6 +72,12 @@ public class NewSIGWelcome implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -81,6 +81,12 @@ public class NewTopicForm implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -118,6 +118,12 @@ public class PostPreview implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -109,6 +109,12 @@ public class PostSlippage implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -77,6 +77,12 @@ public class ReportConferenceMenu implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return "confops?cmd=QR&" + getLocator();
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -29,7 +29,7 @@ public class SIGCategoryBrowseData implements JSPRender
*/
// Attribute name for request attribute
protected static final String ATTR_NAME = "com.silverwrist.venice.content.UserProfileData";
protected static final String ATTR_NAME = "com.silverwrist.venice.content.SIGCategoryBrowseData";
/*--------------------------------------------------------------------------------
* Attributes
@ -82,6 +82,12 @@ public class SIGCategoryBrowseData implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -120,6 +120,12 @@ public class SIGMembership implements JSPRender, SearchMode
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -81,6 +81,12 @@ public class SIGProfileData implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return "go/" + sig.getAlias() + "!";
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -72,6 +72,12 @@ public class SIGWelcome implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -58,6 +58,12 @@ public class SideBoxConferences implements ContentRender, ColorSelectors
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface ContentRender
*--------------------------------------------------------------------------------

View File

@ -58,6 +58,12 @@ public class SideBoxSIGs implements ContentRender, ColorSelectors
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface ContentRender
*--------------------------------------------------------------------------------

View File

@ -149,6 +149,12 @@ public class StaticRender implements ContentRender
} // end getPageTitle
public String getPageQID()
{
return "static/" + name;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface ContentRender
*--------------------------------------------------------------------------------

View File

@ -120,6 +120,12 @@ public class TextMessageDialog implements ContentRender, ColorSelectors
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface ContentRender
*--------------------------------------------------------------------------------

View File

@ -154,6 +154,12 @@ public class TopDisplay implements ContentRender, ColorSelectors
} // end getPageTitle
public String getPageQID()
{
return "top";
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface ContentRender
*--------------------------------------------------------------------------------

View File

@ -43,6 +43,7 @@ public class TopicListing implements JSPRender
private int sort_opt; // the sort option used
private List topic_list; // the topic list
private TopicVisitOrder visit_order; // indicates order in which topics are visited
private String qid; // "quick ID" for this page
/*--------------------------------------------------------------------------------
* Constructor
@ -58,6 +59,8 @@ public class TopicListing implements JSPRender
this.sort_opt = sort_opt;
this.topic_list = conf.getTopicList(view_opt,sort_opt);
this.visit_order = TopicVisitOrder.initialize(request.getSession(true),conf.getConfID(),this.topic_list);
List aliases = conf.getAliases();
this.qid = "go/" + sig.getAlias() + "!" + (String)(aliases.get(0));
} // end constructor
@ -83,6 +86,12 @@ public class TopicListing implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return qid;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -52,6 +52,7 @@ public class TopicPosts implements JSPRender
private List messages;
private TopicVisitOrder visit_order;
private String topic_stem;
private String topic_qid;
private String cache_locator = null;
/*--------------------------------------------------------------------------------
@ -84,7 +85,8 @@ public class TopicPosts implements JSPRender
if (visit_order!=null)
visit_order.visit(topic.getTopicNumber());
List aliases = conf.getAliases();
topic_stem = (String)(aliases.get(0)) + "." + String.valueOf(topic.getTopicNumber()) + ".";
topic_stem = (String)(aliases.get(0)) + "." + topic.getTopicNumber() + ".";
topic_qid = "go/" + sig.getAlias() + "!" + (String)(aliases.get(0)) + "." + topic.getTopicNumber();
} // end constructor
@ -111,6 +113,12 @@ public class TopicPosts implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return topic_qid;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------
@ -399,7 +407,7 @@ public class TopicPosts implements JSPRender
public String getMessageReference(TopicMessageContext msg)
{
return topic_stem + String.valueOf(msg.getPostNumber());
return topic_stem + msg.getPostNumber();
} // end getMessageReference

View File

@ -71,6 +71,12 @@ public class UserProfileData implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return "user/" + prof.getUserName();
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -74,6 +74,12 @@ public class UserSIGList implements JSPRender
} // end getPageTitle
public String getPageQID()
{
return null;
} // end getPageQID
/*--------------------------------------------------------------------------------
* Implementations from interface JSPRender
*--------------------------------------------------------------------------------

View File

@ -21,4 +21,6 @@ public interface VeniceContent
{
public abstract String getPageTitle(RenderData rdat);
public abstract String getPageQID();
} // end interface VeniceContent

View File

@ -128,15 +128,24 @@
<TD ALIGN=LEFT WIDTH="100%" BGCOLOR="<%= rdat.getStdColor(ColorSelectors.CONTENT_BACKGROUND) %>">
<% if (rdat.useHTMLComments()) { %><!-- PAGE FOOTER --><% } %>
<HR WIDTH="80%">
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=6><TR VALIGN=TOP>
<% String qid = basedat.getPageQID(); %>
<TABLE ALIGN=CENTER BORDER=0 CELLPADDING=0 CELLSPACING=6>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><%= smallfont %><%= rdat.getStockMessage("footer-text") %></FONT></TD>
<TD ALIGN=LEFT>
<TD <% if (qid!=null) { %>ROWSPAN=2<% } %> ALIGN=LEFT>
<A HREF="http://venice.sourceforge.net" TARGET="_blank"><IMG
SRC="<%= rdat.getFullImagePath("powered-by-venice.gif") %>" ALT="Powered by Venice"
WIDTH=<%= rdat.scaleFooterLogo(129) %> HEIGHT=<%= rdat.scaleFooterLogo(103) %> BORDER=0
HSPACE=0 VSPACE=0></A>
</TD>
</TR></TABLE>
</TR>
<% if (qid!=null) { %>
<TR VALIGN=TOP><TD ALIGN=RIGHT>
<% if (rdat.useHTMLComments()) { %><!-- HITCOUNTER FOR QID "<%= qid %>" --><% } %>
<%-- Reserved for future use --%>
</TD></TR>
<% } // end if %>
</TABLE>
</TD>
</TR>