Module: alfresco/renderers/ActivitySummary

alfresco/renderers/ActivitySummary

This renderer will take an item from an activity feed and render details of that activity. This is a first attempt to create this renderer within Aikau, and as such there are certain elements that have yet to be completed:

  • The title of the site related to the activity needs to be retrieved via XHR, which is out of scope for this first iteration, and so the short-name of the site is displayed instead.
  • Because of problems rendering links within a Property, from which class this widget inherits, there are currently no links for items/users/sites/etc.
  • The decoration of links that currently occurs on Share (e.g. globes next to site links) needs further code/images porting across from Share, which is again out of scope for this first iteration
  • User avatars are not being rendered yet
Author:
  • Martin Doyle
License:
Source:

Members

_activity :object

The initially-supplied activity item
Type:
  • object
Source:

_item :object

The constructed activity item
Type:
  • object
Source:

_summary :object

The summary object within the supplied activity item
Type:
  • object
Source:

i18nRequirements :object[]

Define the i18n files
Type:
  • object[]
Source:

renderedValueClass :string

This can be set to apply a CSS class to the rendered property value
Type:
  • string
Source:

siteLandingPage :string

The standard landing page for a site
Type:
  • string
Since:
  • 1.0.38
Default Value:
  • "/dashboard"
Source:

Methods

generateRenderedValue() → {string}

Generate the rendered value to be output for this widget
Source:
Returns:
The value to be rendered
Type
string

getItemUrl() → {string}

Get the URL for the item associated with this activity
Source:
Returns:
The item URL
Type
string

getSiteTitle() → {string}

Get the title of this site.
NOTE: This will temporarily only return the short-name of the site
Source:
Returns:
The title of the site
Type
string

getSiteUrl() → {string}

Get the URL to the landing page for this activity's site
Source:
Returns:
The site URL
Type
string

postMixInProperties()

Run immediately after instance variables are mixed in
Source:

refineItem()

Refine the item, given the information available for this activity
Source:

setupDefaults()

Sets up the defaults for the item
Source:

<inner> getUserProfileUrl()

URL to user profile page
Source: