Class ecm.model.SocialItem
Extends
ecm.model.Item.
Represents a single social item, for example, a recommendation (like) or a comment. Each social item is
associated with a content item.
Defined in: <ecm\model\SocialItem.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Constructs a social item.
|
Field Summary
Field Attributes | Field Name and Description |
---|---|
A ecm.model.ContentItem object associated.
|
|
Data type constants.
|
- Fields borrowed from class ecm.model.Item:
- attributes, dataObject, deleted, entryTemplateId, locked, lockedUser, mimetype, parent, privileges, repository, resultSet
- Fields borrowed from class ecm.model._ModelObject:
- categorization, id, isRecurring, name, nameFilter, pane, status, type, userId
Method Summary
Method Attributes | Method Name and Description |
---|---|
deleteThis(callback, errorback, skipOnChange)
Deletes this social item.
|
|
Gets the date this social item was added as a string formatted to the current locale.
|
|
getDisplayValue(attribute)
Overrides ecm.model.Item.getDisplayValue to always return actual values for some of the attributes.
|
|
Gets the version number of the content item.
|
|
Gets the display name of the originator.
|
|
Gets the Id of the originator.
|
|
Gets the short name of the originator.
|
|
Returns the name of the tags property for this item.
|
|
Returns true if this social item can be deleted by the current user.
|
|
Returns true if this social item can be edited by the current user.
|
|
isMine()
Returns true if this social item is created by the current user.
|
|
save(callback, errorback, skipOnChange)
Saves this social item.
|
- Methods borrowed from class ecm.model.Item:
- containsValue, getAttributeFormat, getAttributeType, getAttrLabel, getContentClass, getItemValue, getMimeClass, getModifyDate, getModifyUser, getPath, getStateClass, getUserInfo, getValue, getValues, hasAttribute, hasPrivilege, isAttributeReadOnly, isDeclareRecordEntryTemplate, isDocumentEntryTemplate, isEntryTemplate, isFolder, isFolderEntryTemplate, isSystemProperty, retrieveAttributes, setValue, setValues
- Methods borrowed from class ecm.model._ModelObject:
- destroy, onChange, own, refresh, toString
Field Detail
contentItem
A ecm.model.ContentItem object associated.
TYPE
Data type constants.
Method Detail
deleteThis(callback, errorback, skipOnChange)
Deletes this social item.
- Parameters:
- callback
- errorback
- skipOnChange
{String} getDateAdded()
Gets the date this social item was added as a string formatted to the current locale.
- Returns:
- {String} The date formatted to the current locale.
getDisplayValue(attribute)
Overrides ecm.model.Item.getDisplayValue to always return actual values for some of the attributes.
- Parameters:
- attribute
- The name of the attribute.
getItemVersion()
Gets the version number of the content item.
getOriginatorDisplayName()
Gets the display name of the originator.
getOriginatorId()
Gets the Id of the originator.
- Since:
- 2.0.3.5
getOriginatorShortName()
Gets the short name of the originator.
getTagsPropertyName()
Returns the name of the tags property for this item.
- Since:
- 2.0.3.5
isDeletable()
Returns true if this social item can be deleted by the current user.
isEditable()
Returns true if this social item can be edited by the current user.
isMine()
Returns true if this social item is created by the current user.
save(callback, errorback, skipOnChange)
Saves this social item.
- Parameters:
- callback
- errorback
- skipOnChange