Class Index | File Index

Classes


Class Alfresco.DocumentVersions

Extends Alfresco.component.Base
Document Details Version component.
Constructor Summary
Constructor Attributes Constructor Name and Description
 
DocumentVersions constructor.
Field Summary
Field Attributes Field Name and Description
 
The latest version of the document
 
Object container for initialization options
 
A cached copy of the version history to limit duplicate calls.
Fields borrowed from class Alfresco.component.Base:
modules, services, widgets
Method Summary
Method Attributes Method Name and Description
 
Refresh component in response to metadataRefresh event
 
Builds and returns the markup for a version.
 
Called when the upload new version dialog is finished uploading the new version.
 
Fired by YUI when parent element is available for scripting
 
Called when a "onRevertVersionClick" link has been clicked for a version.
 
Fired by the Revert Version component after a successful revert.
 
Called when the "onUploadNewVersionClick" link has been clicked.
 
Called when a "onViewHistoricPropertiesClick" link has been clicked for a version.
 
renderCellVersion(elCell, oRecord, oColumn, oData)
Version renderer
Methods borrowed from class Alfresco.component.Base:
attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.DocumentVersions(htmlId)
DocumentVersions constructor.
Parameters:
{String} htmlId
The HTML id of the parent element
Returns:
{Alfresco.DocumentVersions} The new component instance
Field Detail
latestVersion
The latest version of the document

{object literal} options
Object container for initialization options

{XHR response object} versionCache
A cached copy of the version history to limit duplicate calls.
Method Detail
doRefresh()
Refresh component in response to metadataRefresh event

getDocumentVersionMarkup(doc)
Builds and returns the markup for a version.
Parameters:
{Object} doc
The details for the document

onNewVersionUploadComplete(complete)
Called when the upload new version dialog is finished uploading the new version.
Will display succes or failure and repload the page if everything went ok.
Parameters:
complete

onReady()
Fired by YUI when parent element is available for scripting

onRevertVersionClick(version)
Called when a "onRevertVersionClick" link has been clicked for a version.
Will display the revert version dialog.
Parameters:
version

onRevertVersionComplete()
Fired by the Revert Version component after a successful revert.
Will display a message and reload the page.

onUploadNewVersionClick()
Called when the "onUploadNewVersionClick" link has been clicked.
Will display the upload dialog in new version mode.

onViewHistoricPropertiesClick(version)
Called when a "onViewHistoricPropertiesClick" link has been clicked for a version.
Will display the Properties dialogue for that version.
Parameters:
version

renderCellVersion(elCell, oRecord, oColumn, oData)
Version renderer
Parameters:
elCell
oRecord
oColumn
oData

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Feb 16 2012 12:24:25 GMT-0000 (GMT)