|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.publish.IdvPublisher
public abstract class IdvPublisher
This is the start to an abstract base class that represents classes that can "publish" IDV content. Note: This framework is very much in flux
Right no we just have a single concrete derived
class, InfoceteraBlogger, that publishes
weblog content to an Infocetera web log.
The idea is that we might a variety of publishing mechanisms: other weblog clients, email, wiki, etc.
Instances of publishers are defined by the
resources/publishers.xml file.
| Field Summary | |
|---|---|
static String |
ATTR_CLASS
Xml element "class" attribute name. |
static GuiUtils |
GU
A helper attribute so we can call static routines in GuiUtils without typing the whole class name |
static String |
TAG_PUBLISHER
Xml element "publisher" tag name |
| Constructor Summary | |
|---|---|
protected |
IdvPublisher(IntegratedDataViewer idv,
Element element)
Construct the object with the reference to the idv |
| Method Summary | |
|---|---|
abstract boolean |
configure()
Configure this publisher |
abstract void |
doPublish(String title,
String filePath,
String properties)
Called by others to publish the given content |
abstract String |
getName()
Get the name of this publisher |
String |
getPropertyPrefix()
Used to prefix persistent properties. |
static List |
getPublishers(IntegratedDataViewer idv,
Element root)
Process the given xml, instantiating a list of IdvPublishers |
protected void |
init()
Initialize this publisher. |
boolean |
isConfigured()
Has this publisher been configured. |
abstract boolean |
publishFile(String file,
Properties properties)
Called by others to publish the given file |
abstract boolean |
publishMessage(String subject,
String label,
String msg,
String filename,
Properties props)
Called by others to publish the given content |
void |
publishMessageAndFile(String subject,
String label,
String msg,
String file,
Properties props)
Publish the message and the given file |
protected void |
savePreferences()
Write out the preferences held by this publisher. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final GuiUtils GU
public static final String TAG_PUBLISHER
public static final String ATTR_CLASS
| Constructor Detail |
|---|
protected IdvPublisher(IntegratedDataViewer idv,
Element element)
idv - Reference to the idvelement - The xml element that defined this publisher| Method Detail |
|---|
public static List getPublishers(IntegratedDataViewer idv,
Element root)
IdvPublishers
idv - The idvroot - Root of the publishers.xml file
public String getPropertyPrefix()
protected void init()
protected void savePreferences()
public void publishMessageAndFile(String subject,
String label,
String msg,
String file,
Properties props)
subject - The subjectlabel - The link label for the filemsg - The messagefile - The fileprops - The propertiespublic boolean isConfigured()
public abstract String getName()
public abstract boolean configure()
public abstract void doPublish(String title,
String filePath,
String properties)
title - Title of contentfilePath - File name that was saved (e.g., an image)properties - Other properties
public abstract boolean publishFile(String file,
Properties properties)
file - File name that was saved (e.g., an image)properties - Other properties
public abstract boolean publishMessage(String subject,
String label,
String msg,
String filename,
Properties props)
filename - File name that was saved (e.g., an image)props - Other propertiessubject - The subject linelabel - The Labelmsg - The message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||