import {ContainerService} from 'ceo-core/application/services/container-service.js'
Method Summary
Public Methods | ||
public |
checkinAndFetch(containerId: string, lockId: string): * Attempt to release a container lock, then update container store |
|
public |
checkoutAndFetch(srn: string): * Attempt to obtain a container lock, then update the container store |
|
public |
Create new container item |
|
public |
Fetch paginated container items |
|
public |
Fetch single container update |
|
public |
Remove (delete) container item |
|
public |
Run a query on the search endpoint. |
|
public |
Update existing container item |
|
public |
updateContainer(container: *): * |
|
public |
updateContainers(container: *): * |
|
public |
updatePagination(pagination: *): * |
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(containerId: string, lockId: string): * source
Attempt to release a container lock, then update container store
Return:
* |
public checkoutAndFetch(srn: string): * source
Attempt to obtain a container lock, then update the container store
Params:
Name | Type | Attribute | Description |
srn | string | valid SRN |
Return:
* |
public fetch(opts: object): * source
Fetch paginated container items
Params:
Name | Type | Attribute | Description |
opts | object | Hash of query options |
Return:
* |
public fetchOne(id: string, opts: object, forceUpdate: Boolean): * source
Fetch single container update
Return:
* |
public remove(id: string): * source
Remove (delete) container 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 container item
Return:
* |
public updateContainer(container: *): * source
Params:
Name | Type | Attribute | Description |
container | * |
Return:
* |
public updateContainers(container: *): * source
Params:
Name | Type | Attribute | Description |
container | * |
Return:
* |
public updatePagination(pagination: *): * source
Params:
Name | Type | Attribute | Description |
pagination | * |
Return:
* |