|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.BasicTemplateProcessor
wt.replication.unit.htmlGeneration.ExportUnitProcessor
This class provides object properties template processors.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CODEBASE
|
private String |
pOID
|
private static WTProperties |
properties
|
private static String |
RESOURCE
|
private String |
sItem
|
private String |
sLink
|
private String |
sUnit
|
private static boolean |
VERBOSE
|
Fields inherited from interface wt.templateutil.processor.ContextTranslator |
CONTEXT_LIST_IN, CONTEXT_LIST_OUT |
Fields inherited from interface wt.templateutil.processor.ContextHolder |
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS |
Constructor Summary | |
ExportUnitProcessor()
A no argument constructor with no side effects. |
Method Summary | |
void |
createActionsBar(Properties parameters,
Locale locale,
OutputStream os)
Override creatActionBar in order to set highted item in menu bar. |
HTMLTemplate |
getTemplate(Vector preferences)
Return an initialized HTMLTemplate. |
void |
handleRequest(HTTPRequest req,
HTTPResponse resp)
This method handles HTTP GET requests to produce an HTML page which describes properties of the contextual object of an ExportUnitProcessor instance. |
void |
scheduleUnit(Properties parameters,
Locale locale,
OutputStream os)
Display UI for scheduling unit export. |
void |
showTitle(Properties parameters,
Locale locale,
OutputStream os)
Display title |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static WTProperties properties
private static String CODEBASE
private static boolean VERBOSE
private static final String RESOURCE
private String pOID
private String sLink
private String sUnit
private String sItem
Constructor Detail |
public ExportUnitProcessor()
Method Detail |
public void handleRequest(HTTPRequest req, HTTPResponse resp) throws WTException
It is expected that this method will be called via the URLProcessor which would have been invoked via a URL created using an objectActionLink (defined by the BasicTemplateProcessor class) script call within an HTML template file.
The format of the HTML that is output is determined by an HTML template file. The template that is used is chosen from the templates directory based on the class of the contextual object, the locale and the parameters passed to the objectProperties call. The template file is chosen using the ExportUnitTemplateFactory.
Supported API: false
req
- HTTPRequestresp
- HTTPResponse
WTException
URLProcessor
,
wt.enterprise.ExportUnitTemplateFactory
public HTMLTemplate getTemplate(Vector preferences) throws WTException
WTException
public void scheduleUnit(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public void showTitle(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public void createActionsBar(Properties parameters, Locale locale, OutputStream os) throws WTException
createActionsBar
in class BasicTemplateProcessor
parameters
- the Properties which contains parameter values
specified in the script call. Can contain values for the link color and
background color of the table cells.locale
- the locale in which the links will be displayedos
- the OutputStream to write the table of links to.
WTException
- if an error occurs building the links to the actions
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |