Class ecm.content.Content
This class provides a model that represents a content.
Defined in: <ecm\content\Content.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Method Summary
Method Attributes | Method Name and Description |
---|---|
constructor(data, service)
|
|
equals(recentContent)
Returns true if the repository Id and the Id of the content equal to the repository Id and the Id of this content.
|
|
id()
Returns the Id of this content.
|
|
refreshItem(callback, errorback)
Refresh the item of this content.
|
|
toItem()
Generates and returns a stub item of this content.
|
|
toJson()
Returns a JSON representation of this content.
|
Method Detail
constructor(data, service)
- Parameters:
- data
- service
equals(recentContent)
Returns true if the repository Id and the Id of the content equal to the repository Id and the Id of this content.
- Parameters:
- recentContent
- The content to be compared
id()
Returns the Id of this content.
- Returns:
- the Id
refreshItem(callback, errorback)
Refresh the item of this content.
- Parameters:
- callback
- An optional function to be called on success
- errorback
- An optional function to be called on failure
- Returns:
- The ecm.model.Request object if cache is not available
toItem()
Generates and returns a stub item of this content.
toJson()
Returns a JSON representation of this content.
- Returns:
- The JSON representation