Class Alfresco.ConsoleReplicationJobs
Extends Alfresco.ConsoleTool
ConsoleReplicationJobs tool component.
Defined in: replication-jobs.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Alfresco.ConsoleReplicationJobs(htmlId)
ConsoleReplicationJobs constructor.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Job List
|
|
|
Job List Lookup from DOM ID of Job List
|
|
|
Job List Lookup from Job Name to DOM ID of Job List
|
|
|
Object container for initialization options
|
|
|
Currently selected job
|
|
|
Mapping of status for display in summary panel
|
|
|
Display order for summary panel
|
- Fields borrowed from class Alfresco.ConsoleTool:
- currentPanelId, panels, popups
- Fields borrowed from class Alfresco.component.Base:
- modules, services, widgets
| Method Attributes | Method Name and Description |
|---|---|
|
findJobIndexByName(jobName)
Find the index of a job in the current jobList given its name
|
|
|
onCancelJob(e, p_obj)
Cancel job button click handler
|
|
|
onDeleteJob(e, p_obj)
Delete job button click handler
|
|
|
onEditJob(e, p_obj)
Edit job button click handler
|
|
|
onJobSelected(jobName, p_fadeIn)
Job selected event handler
|
|
|
onReady()
Fired by YUI when parent element is available for scripting.
|
|
|
onRefreshJob(e, p_obj)
Refresh job button click handler
|
|
|
onRunJob(e, p_obj)
Run job button click handler
|
|
|
onSortByChanged(p_oMenuItem)
Sort jobs menu-button click handler
|
|
|
onViewReport(e, p_obj)
View Report button click handler
|
|
|
populateJobsList(selectFirstJob)
Call remote API to retrieve list of Job Definitions
|
|
|
Render the currently selected job's detail
|
|
|
Render the list of jobs
|
|
|
Updates button status depending on selected job status
|
|
|
Updates summary panel based on client-side copy of Job List
|
- Methods borrowed from class Alfresco.ConsoleTool:
- onHistoryManagerReady, onStateChanged
- Methods borrowed from class Alfresco.component.Base:
- attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.ConsoleReplicationJobs(htmlId)
ConsoleReplicationJobs constructor.
- Parameters:
- {String} htmlId
- The HTML id üof the parent element
- Returns:
- {Alfresco.ConsoleReplicationJobs} The new ConsoleReplicationJobs instance
Field Detail
jobList
Job List
jobListIdToName
Job List Lookup from DOM ID of Job List tag to Job Name
jobListNameToId
Job List Lookup from Job Name to DOM ID of Job List tag
{object}
options
Object container for initialization options
selectedJob
Currently selected job
summaryStatusMap
Mapping of status for display in summary panel
summaryStatusOrder
Display order for summary panel
Method Detail
{Number|null}
findJobIndexByName(jobName)
Find the index of a job in the current jobList given its name
- Parameters:
- {String} jobName
- Job name
- Returns:
- {Number|null} Found job's index in this.jobList array or null
onCancelJob(e, p_obj)
Cancel job button click handler
- Parameters:
- {object} e
- DomEvent
- {object} p_obj
- Object passed back from addListener method
onDeleteJob(e, p_obj)
Delete job button click handler
- Parameters:
- {object} e
- DomEvent
- {object} p_obj
- Object passed back from addListener method
onEditJob(e, p_obj)
Edit job button click handler
- Parameters:
- {object} e
- DomEvent
- {object} p_obj
- Object passed back from addListener method
onJobSelected(jobName, p_fadeIn)
Job selected event handler
- Parameters:
- {String} jobName
- Job definition name
- {Boolean} p_fadeIn
- If set to true, then fade the status panel in
onReady()
Fired by YUI when parent element is available for scripting.
onRefreshJob(e, p_obj)
Refresh job button click handler
- Parameters:
- {object} e
- DomEvent
- {object} p_obj
- Object passed back from addListener method
onRunJob(e, p_obj)
Run job button click handler
- Parameters:
- {object} e
- DomEvent
- {object} p_obj
- Object passed back from addListener method
onSortByChanged(p_oMenuItem)
Sort jobs menu-button click handler
- Parameters:
- {object} p_oMenuItem
- Selected menu item
onViewReport(e, p_obj)
View Report button click handler
- Parameters:
- {object} e
- DomEvent
- {object} p_obj
- Object passed back from addListener method
populateJobsList(selectFirstJob)
Call remote API to retrieve list of Job Definitions
- Parameters:
- {boolean} selectFirstJob
- True to select first job in jobList
renderJobDetail()
Render the currently selected job's detail
renderJobsList()
Render the list of jobs
updateButtonStatus()
Updates button status depending on selected job status
updateSummaryPanel()
Updates summary panel based on client-side copy of Job List