ca.cbc.sportwire.servlet.data
Class ScriptLineup

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--ca.cbc.sportwire.util.PeriodicData
              |
              +--ca.cbc.sportwire.servlet.data.Lineup
                    |
                    +--ca.cbc.sportwire.servlet.data.ScriptLineup
All Implemented Interfaces:
GlobalCacheProperties, LineupBean, java.lang.Runnable, SportPageProperties, Stoppable

public class ScriptLineup
extends Lineup

ScriptLineup: A velocity interface to access the news lineups via an external call to a CBC Newsworld script

Created: Fri Dec 14 15:40:15 2001
 $Log: ScriptLineup.java,v $
 Revision 1.8  2002/01/26 06:46:29  garym
 authorization bug in lineups

 Revision 1.7  2002/01/24 19:50:20  garym
 Major restructuring of beans and pagehandlers

 Revision 1.6  2002/01/16 00:56:26  garym
 current site on cbc.ca/olympics; checkpoint release

 Revision 1.5  2002/01/14 21:51:46  garym
 bug fixes in topics and config files migration to Extended Properties

 Revision 1.4  2002/01/03 03:36:25  garym
 Abstracted periodic-refresh data cache objects

 Revision 1.3  2001/12/23 17:55:23  garym
 Allow for multiple SportPage apps on one JVM

 Revision 1.2  2001/12/23 04:54:18  garym
 Added TemplateLineup support and Velocity logfile setting

 Revision 1.1  2001/12/16 22:01:56  garym
 fixes to default page handling

 Revision 1.1  2001/12/14 21:10:33  garym
 Implement error pages and skeletal lineup


 

Version:
$Id: ScriptLineup.java,v 1.8 2002/01/26 06:46:29 garym Exp $
Author:
Gary Lawrence Murphy

Field Summary
(package private) static org.apache.log4j.Category cat
           
private  java.lang.String html
           
private  java.lang.String script
           
 
Fields inherited from class ca.cbc.sportwire.servlet.data.Lineup
topic
 
Fields inherited from class ca.cbc.sportwire.util.PeriodicData
interval, running
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ, userDaemon
 
Fields inherited from interface ca.cbc.sportwire.servlet.data.LineupBean
DEFAULT_CATEGORY, DEFAULT_REFRESH, LINEUP_CATEGORY_VAR, LINEUP_CLASS_PROPERTY, LINEUP_REFRESH_PROPERTY, LINEUP_SCRIPT_PROPERTY, LINEUP_VAR
 
Fields inherited from interface ca.cbc.sportwire.servlet.data.GlobalCacheProperties
CACHE_DEFAULT_PERIOD, CACHE_DEFAULT_TIMEOUT, CACHE_PERIOD, CACHE_TIMEOUT, MRU_PROPERTY, MRU_VAR, TTL_PROPERTY, TTL_VAR
 
Fields inherited from interface ca.cbc.sportwire.servlet.data.SportPageProperties
BEAN_SUFFIX, BEANFACTORY_VAR, CONTEXT_VAR, DATE_VAR, DEFAULT_EXTS, DEFAULT_INDEXES, DEFAULT_PAGE_SUFFIX, DEFAULT_SAX_DRIVER_CLASS, DEFAULT_TIMEZONE, DEFAULT_TOPIC, DOM_VAR, ERROR_TEMPLATE_VAR, EXCEPTION_VAR, EXTENSIONS_VAR, FALSE, GLOBAL_VAR, HOME_PROPERTY, INCLUDE_EXTS_PROPERTY, INCLUDE_VAR, INDEX_INDICATOR_VAR, INDEX_TEMPLATE_VAR, LAYOUT_TEMPLATE_VAR, MACRO_LIB_PROPERTY, MISSING_TEMPLATE_VAR, OUTPUT_VAR, PAGE_EXPIRE, PAGE_TEMPLATE_VAR, PANIC_404_PAGE, PANIC_404_PROPERTY, PANIC_500_PAGE, PANIC_500_PROPERTY, PARAM_PARSER_VAR, PATH_VAR, REQUEST_VAR, RESPONSE_VAR, SAX_CLASS_PROPERTY, SERVLET_DEBUG, SERVLET_LOGCONF_PROPERTY, SQL_SUFFIX, TEMPLATE_PATHS_PROPERTY, TIMEZONE_PROPERTY, TRUE, URI_VAR, VELOCITY_LOGFILE_DEFAULT, VELOCITY_LOGFILE_PROPERTY, XML_EXTS, XML_EXTS_PROPERTY, XML_PATHS_PROPERTY, XML_SUFFIX, XSL_EXTS, XSL_EXTS_PROPERTY, XSL_PATHS_PROPERTY
 
Constructor Summary
ScriptLineup(org.apache.commons.collections.ExtendedProperties sc, java.lang.String category)
          ScriptLineup protected constructor used by the singleton getInstance interface.
ScriptLineup(org.apache.commons.collections.ExtendedProperties sc, java.lang.String script, java.lang.String category)
          ScriptLineup public constructor to create a unique Lineup object with a custom script.
 
Method Summary
static Lineup getInstance(org.apache.velocity.context.Context context)
          getInstance: an instance for the category
static Lineup getInstance(java.lang.String category, org.apache.velocity.context.Context context)
           
 java.lang.Object getLineup()
          Get the value of html.
 java.lang.String getScript()
          Get the command line exe for a script which will take one parameter for the Lineup catagory.
protected  void setLineup()
          Set the value of html.
 void setScript(java.lang.String v)
          Set the script command.
 
Methods inherited from class ca.cbc.sportwire.servlet.data.Lineup
defaultPeriod, getCached, getCached, getCategory, getTopic, refresh, setTopic
 
Methods inherited from class ca.cbc.sportwire.util.PeriodicData
bump, isRunning, run, setInterval, setRunning
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cat

static org.apache.log4j.Category cat

html

private java.lang.String html

script

private java.lang.String script
Constructor Detail

ScriptLineup

public ScriptLineup(org.apache.commons.collections.ExtendedProperties sc,
                    java.lang.String category)
ScriptLineup protected constructor used by the singleton getInstance interface.
Parameters:
sc - an ExtendedProperties value
category - a String value

ScriptLineup

public ScriptLineup(org.apache.commons.collections.ExtendedProperties sc,
                    java.lang.String script,
                    java.lang.String category)
ScriptLineup public constructor to create a unique Lineup object with a custom script.
Parameters:
sc - an ExtendedProperties value
script - a String value
category - a String value
Method Detail

getScript

public java.lang.String getScript()
Get the command line exe for a script which will take one parameter for the Lineup catagory.
Returns:
String value of script.

setScript

public void setScript(java.lang.String v)
Set the script command.
Parameters:
v - Value to assign to script.

getLineup

public java.lang.Object getLineup()
Get the value of html.
Overrides:
getLineup in class Lineup
Returns:
String value of html.

setLineup

protected void setLineup()
Set the value of html.
Overrides:
setLineup in class Lineup

getInstance

public static Lineup getInstance(org.apache.velocity.context.Context context)
getInstance: an instance for the category
Parameters:
context - a Context value
Returns:
a Lineup value

getInstance

public static Lineup getInstance(java.lang.String category,
                                 org.apache.velocity.context.Context context)