import {ContentService} from 'ceo-core/application/services/content-service.js'Method Summary
| Public Methods | ||
| public |
checkinAndFetch(contentId: string, lockId: string): * Attempt to release a content lock, then update content store |
|
| public |
checkoutAndFetch(srn: string): * Attempt to obtain a content lock, then update the content store |
|
| public |
Create new content item |
|
| public |
Fetch paginated content items |
|
| public |
Fetch single content update |
|
| public |
Remove (delete) content item |
|
| public |
Run a query on the search endpoint. |
|
| public |
Update existing content item |
|
| public |
updateContent(content: *): * |
|
| public |
updateContents(content: *): * |
|
| public |
updatePagination(pagination: *): * |
|
| public |
upload(data: *, callback: *): * |
|
Inherited Summary
| From class BaseService | ||
| public |
Preform a DELETE action |
|
| public |
Preform a GET action |
|
| public |
Preform a POST action |
|
| public |
postUpload(url: string, data: object, params: object): object Preform a POST action |
|
| public |
Preform a PUT action |
|
Public Methods
public checkinAndFetch(contentId: string, lockId: string): * source
Attempt to release a content lock, then update content store
Return:
| * |
public checkoutAndFetch(srn: string): * source
Attempt to obtain a content lock, then update the content store
Params:
| Name | Type | Attribute | Description |
| srn | string | valid SRN |
Return:
| * |
public fetch(opts: object): * source
Fetch paginated content items
Params:
| Name | Type | Attribute | Description |
| opts | object | Hash of query options |
Return:
| * |
public fetchOne(id: string, opts: object, forceUpdate: Boolean): * source
Fetch single content update
Return:
| * |
public remove(id: string): * source
Remove (delete) content item
Params:
| Name | Type | Attribute | Description |
| id | string |
Return:
| * |
public search(opts: object): * source
Run a query on the search endpoint. See search docs for query info
Params:
| Name | Type | Attribute | Description |
| opts | object | Query has |
Return:
| * |
public update(id: string, data: object, callback: Function): * source
Update existing content item
Return:
| * |
public updateContents(content: *): * source
Params:
| Name | Type | Attribute | Description |
| content | * |
Return:
| * |
public updatePagination(pagination: *): * source
Params:
| Name | Type | Attribute | Description |
| pagination | * |
Return:
| * |
public upload(data: *, callback: *): * source
Params:
| Name | Type | Attribute | Description |
| data | * | ||
| callback | * |
Return:
| * |