Class Index | File Index

Classes


Class Alfresco.DocumentActions

Extends Alfresco.component.Base
Document actions component.
Constructor Summary
Constructor Attributes Constructor Name and Description
 
DocumentActions constructor.
Field Summary
Field Attributes Field Name and Description
 
Path of asset being viewed - used to scope some actions (e.g. copy to, move to)
 
Metadata returned by doclist data webscript
 
Object container for initialization options
 
The data for the document
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
 
Cancel editing.
 
Check in a new version from Google Docs.
 
Checkout to Google Docs.
 
Edit Offline.
 
Upload new version.
 
Called from the uploader component after a the new version has been uploaded.
 
Event handler called when "onReady"
Methods borrowed from class Alfresco.component.Base:
attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.DocumentActions(htmlId)
DocumentActions constructor.
Parameters:
{String} htmlId
The HTML id of the parent element
Returns:
{Alfresco.DocumentActions} The new DocumentActions instance
Field Detail
{string} currentPath
Path of asset being viewed - used to scope some actions (e.g. copy to, move to)

{object} doclistMetadata
Metadata returned by doclist data webscript
Default Value:
null

{object} options
Object container for initialization options

{object} recordData
The data for the document
Method Detail
doRefresh()
Refresh component in response to metadataRefresh event

onActionCancelEditing(asset)
Cancel editing.
Parameters:
{object} asset
Object literal representing file or folder to be actioned

onActionCheckinFromGoogleDocs(asset)
Check in a new version from Google Docs.
Parameters:
{object} asset
Object literal representing the file to be actioned upon

onActionCheckoutToGoogleDocs(asset)
Checkout to Google Docs.
Parameters:
{object} asset
Object literal representing file or folder to be actioned

onActionEditOffline(asset)
Edit Offline.
Parameters:
{object} asset
Object literal representing file or folder to be actioned

onActionUploadNewVersion(asset)
Upload new version.
Parameters:
{object} asset
Object literal representing the file to be actioned upon

onNewVersionUploadCompleteCustom(complete)
Called from the uploader component after a the new version has been uploaded.
Parameters:
{object} complete
Object literal containing details of successful and failed uploads

onReady()
Event handler called when "onReady"

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