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
 
The data for the document
 
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
Fields borrowed from class Alfresco.component.Base:
modules, services, widgets
Method Summary
Method Attributes Method Name and Description
 
getActionUrls(recordData, siteId)
The urls to be used when creating links in the action cell
 
Cancel editing.
 
Check in a new version from Google Docs.
 
Checkout to Google Docs.
 
Edit Offline.
 
Upload new version.
 
Event handler called when the "documentDetailsAvailable" event is received
 
Called from the uploader component after a the new version has been uploaded.
Methods borrowed from class Alfresco.component.Base:
bind, msg, onComponentsLoaded, 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
{object} assetData
The data for the document

{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
Method Detail
{object} getActionUrls(recordData, siteId)
The urls to be used when creating links in the action cell
Parameters:
{object} recordData
Object literal representing the node
{string} siteId
Optional siteId override for site-based locations
Returns:
{object} Object literal containing URLs to be substituted in action placeholders

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

onDocumentDetailsAvailable(layer, args)
Event handler called when the "documentDetailsAvailable" event is received
Parameters:
layer
args

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

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Oct 14 2011 12:48:27 GMT+0100 (BST)