Class Index | File Index

Classes


Namespace Alfresco.Share

Share common helper classes and static methods
Defined in: share.js
Method Summary
Method Attributes Method Name and Description
<static>  
Alfresco.Share.postActivity(siteId, activityType, title, page, data)
Post an Activity to the Activity Service
<static>  
Alfresco.Share.userAvatar(userName, size)
Creates img markup representing a users avatar.
Method Detail
<static> Alfresco.Share.postActivity(siteId, activityType, title, page, data)
Post an Activity to the Activity Service
Parameters:
{string} siteId
Site
{string} activityType
e.g. org.alfresco.documentlibrary.file-added
{string} title
title string for activity entry
{string} page
page to link to from activity (includes ant page request parameters, i.e. queryString)
{object} data
data attached to activity, e.g.

nodeRef {string} Must have either nodeRef or parentNodeRef
parentNodeRef {string} Must have either parentNodeRef or nodeRef
appTool {string} Share application used for filtering, e.g. "documentlibrary"|"blog"|"links"

<static> Alfresco.Share.userAvatar(userName, size)
Creates img markup representing a users avatar.
Parameters:
{string} userName
Username to display the avatar for
{number} size
Optional: 64|32 are the currently supported avatar sizes. Default is 64px

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