All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.pics.db.DataPusher

java.lang.Object
   |
   +----w3c.pics.db.DataPusher

public class DataPusher
extends Object
The DataPusher class handles the user notification portion of the system. It is sent updates from the database as they are created. It purges its state every time it actually sends out an update.


Constructor Index

 o DataPusher()

Method Index

 o addPage(String, String)
Adds an entry to the DataPusher.
 o addPicsPage(String, String)
Adds an entry to the DataPusher, when using PicsRULZ.
 o addPicsPage(String, String, String)
Adds an entry to the DataPusher, when using PicsRULZ.
 o printData()
Prints out the contents of the DataPusher.
 o printUser(String)
Prints out the data for a single user.
 o purgeAll()
Removes all entries from the DataPusher.
 o purgeUser(String)
Removes the entry for a single user from the DataPusher.
 o pushAll()
Prints out an HTML page for each user in the DataPusher.

Constructors

 o DataPusher
 public DataPusher()

Methods

 o addPicsPage
 public void addPicsPage(String theuser,
                         String thepage)
Adds an entry to the DataPusher, when using PicsRULZ.

Parameters:
theuser - The name of the user.
thepage - The label to store.
 o addPicsPage
 public void addPicsPage(String theuser,
                         String thepage,
                         String theurl)
Adds an entry to the DataPusher, when using PicsRULZ.

Parameters:
theuser - The name of the user.
thepage - The label to store.
theurl - The URL to store.
 o addPage
 public void addPage(String theuser,
                     String thepage)
Adds an entry to the DataPusher.

Parameters:
theuser - The name of the user.
thepage - The label to store.
 o printData
 public void printData()
Prints out the contents of the DataPusher.

 o purgeAll
 public void purgeAll()
Removes all entries from the DataPusher.

 o purgeUser
 public void purgeUser(String user)
Removes the entry for a single user from the DataPusher.

Parameters:
user - The user to remove.
 o printUser
 public void printUser(String user)
Prints out the data for a single user.

Parameters:
user - The user whose data is to be printed.
 o pushAll
 public void pushAll()
Prints out an HTML page for each user in the DataPusher.


All Packages  Class Hierarchy  This Package  Previous  Next  Index