|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portalpages.common.joblogs.HistoryViewHelper
public class HistoryViewHelper
This helper class is used in all three contexts the job history is displayed: The automation server editor, the Job editor, and the Job History portlet.
Field Summary | |
---|---|
static int |
DETAILPAGESIZE
The number of lines to display on a page |
static java.lang.String |
HTMLBUTTON_DELETE
Delete job log button |
static java.lang.String |
HTMLBUTTON_FILTER
HTML button to execute filter action |
static java.lang.String |
HTMLCHECKBOX_CHECKALL
Checkbox in the header row. |
static java.lang.String |
HTMLCHECKBOX_JOBID
Checkbox for selecting jobs to abort. |
static java.lang.String |
HTMLHIDDEN_ACTIVEINSTANCE
Hidden HTML Input for the active job instance for log download |
static java.lang.String |
HTMLHIDDEN_CURRENTPAGE
Hidden HTML input for the current page number |
static java.lang.String |
HTMLHIDDEN_INSTANCEID
Hidden field for the instance ID of the job log |
static java.lang.String |
HTMLHIDDEN_LASTPAGE
Hidden HTML input for the last page number |
static java.lang.String |
JAVASCRIPT_CHECKALL
The name for the checkall javascript function |
static java.lang.String |
JAVASCRIPT_DOWNLOADLOG
The name for the javascript function for downloading log files |
static java.lang.String |
JAVASCRIPT_SHOWLOG
The name for the javascript function that opens a detail pop-up |
static java.lang.String |
POPUP_CONTROL_ARG_JOBNAME
Querystring argument for the job name |
static java.lang.String |
POPUP_CONTROL_ARG_ROWTOVIEW
JH- POPUP_CONTROL_ARG_ROWTOVIEW is a querystring argument we pass to the popup so that it knows what row it's viewing |
static java.lang.String |
POPUP_CONTROL_ARG_RUNTIME
Querystring argument |
Constructor Summary | |
---|---|
HistoryViewHelper(IModelRO model,
AActivitySpace parent,
boolean bPortletView,
java.lang.String strSubmitForm)
Constructor for the HistoryViewHelper class. |
Method Summary | |
---|---|
HTMLTable |
AddActionBar()
Displays the HTML for the action bar. |
HTMLTableCell |
AddFieldToCell(java.lang.Object objField,
java.lang.String strField)
This helper function returns a cell with the appropriate style and queryresult field added. |
HTMLTableRow |
GetHeaderRow()
Returns the header row for the job list |
HTMLElement |
GetHeaderView(java.lang.String _sHeaderTitle)
Returns the header for the View. |
java.lang.String |
GetJavascript(java.lang.String strFormName)
This function returns the javascript that should be displayed with the Job History view |
ASQueryResultWrapper |
GetJobHistoryList()
This function returns the list of jobs in an ASQueryResultWrapper |
HTMLElement |
GetJobLogDetail()
Display the HTML for the list of jobs with links to their logs |
HTMLTableRow |
GetPreviousNextLinks(int intNumPages,
int intCurPage)
Return the HTML for the Next and Previous pageination links displayed at the end of the job log list |
java.lang.String |
GetStatusString(int intStatus)
This helper function translates PT_JOBSTATUS numbers into localized string values |
HTMLElement |
GetTableRows(int intNumResults,
ASQueryResultWrapper myQueryResult)
Returns the HTML table that contains the list of jobs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String HTMLBUTTON_FILTER
public static final java.lang.String HTMLBUTTON_DELETE
public static final java.lang.String HTMLHIDDEN_CURRENTPAGE
public static final java.lang.String HTMLHIDDEN_ACTIVEINSTANCE
public static final java.lang.String HTMLHIDDEN_LASTPAGE
public static final java.lang.String HTMLCHECKBOX_JOBID
public static final java.lang.String HTMLHIDDEN_INSTANCEID
public static final java.lang.String HTMLCHECKBOX_CHECKALL
public static final java.lang.String JAVASCRIPT_SHOWLOG
public static final java.lang.String JAVASCRIPT_DOWNLOADLOG
public static final java.lang.String JAVASCRIPT_CHECKALL
public static final int DETAILPAGESIZE
public static final java.lang.String POPUP_CONTROL_ARG_ROWTOVIEW
public static final java.lang.String POPUP_CONTROL_ARG_JOBNAME
public static final java.lang.String POPUP_CONTROL_ARG_RUNTIME
Constructor Detail |
---|
public HistoryViewHelper(IModelRO model, AActivitySpace parent, boolean bPortletView, java.lang.String strSubmitForm)
model
- - The IJobLogModelROparent
- - The activity space this is being called frombPortletView
- - True if this view is being displayed in a portletstrSubmitForm
- - The javascript submit form function nameMethod Detail |
---|
public HTMLElement GetHeaderView(java.lang.String _sHeaderTitle)
_sHeaderTitle
- Title you want to display in the header.
XPException
public java.lang.String GetJavascript(java.lang.String strFormName)
public HTMLTable AddActionBar()
public ASQueryResultWrapper GetJobHistoryList()
public HTMLTableRow GetHeaderRow()
public HTMLElement GetTableRows(int intNumResults, ASQueryResultWrapper myQueryResult)
intNumResults
- - The number of results that will be displayed
public HTMLTableRow GetPreviousNextLinks(int intNumPages, int intCurPage)
intNumPages
- - The total number of pages to displayintCurPage
- - The page currently displayed
public HTMLElement GetJobLogDetail()
public HTMLTableCell AddFieldToCell(java.lang.Object objField, java.lang.String strField)
objField
- strField
-
public java.lang.String GetStatusString(int intStatus)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |