Class Alfresco.DocumentPublishing
Extends Alfresco.component.Base
Document Details Publishing History component.
Defined in: document-publishing.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Alfresco.DocumentPublishing(htmlId)
DocumentPublishing constructor.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Object container for initialization options
|
- Fields borrowed from class Alfresco.component.Base:
- modules, services, widgets
| Method Attributes | Method Name and Description |
|---|---|
|
Refresh component in response to metadataRefresh event
|
|
|
Builds and returns the markup for a version.
|
|
|
onReady()
Fired by YUI when parent element is available for scripting
|
|
|
onUnpublishClick(nodeRef, actionEl)
Triggered by the unpublish channel action button
|
|
|
onUnpublishSuccess(response)
Called when the Ajax call to the Delete API succeeds.
|
|
|
renderCellPublishingEvent(elCell, oRecord, oColumn, oData)
Publishing Event renderer
|
- Methods borrowed from class Alfresco.component.Base:
- attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.DocumentPublishing(htmlId)
DocumentPublishing constructor.
- Parameters:
- {String} htmlId
- The HTML id of the parent element
- Returns:
- {Alfresco.DocumentPublishing} The new component instance
Field Detail
{object literal}
options
Object container for initialization options
Method Detail
doRefresh()
Refresh component in response to metadataRefresh event
getDocumentPublishingEventMarkup(doc)
Builds and returns the markup for a version.
- Parameters:
- {Object} doc
- The details for the document
onReady()
Fired by YUI when parent element is available for scripting
onUnpublishClick(nodeRef, actionEl)
Triggered by the unpublish channel action button
makes a remote API call the publishing service and adds an unpublish event for this node to the publishing queue.
makes a remote API call the publishing service and adds an unpublish event for this node to the publishing queue.
- Parameters:
- nodeRef
- actionEl
onUnpublishSuccess(response)
Called when the Ajax call to the Delete API succeeds.
- Parameters:
- {Object} response
renderCellPublishingEvent(elCell, oRecord, oColumn, oData)
Publishing Event renderer
- Parameters:
- elCell
- oRecord
- oColumn
- oData