mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
ACS-8055 add optional options and uodate nodes-api.service.md
This commit is contained in:
@@ -84,8 +84,10 @@ Accesses and manipulates ACS document nodes using their node IDs.
|
|||||||
- _nodeBody:_ `any` - New data for the node
|
- _nodeBody:_ `any` - New data for the node
|
||||||
- _options:_ `any` - Optional parameters supported by JS-API
|
- _options:_ `any` - Optional parameters supported by JS-API
|
||||||
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`MinimalNode`](https://github.com/Alfresco/alfresco-js-api/blob/master/src/alfresco-core-rest-api/docs/NodeMinimalEntry.md)`>` - Updated node information<br/>
|
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`MinimalNode`](https://github.com/Alfresco/alfresco-js-api/blob/master/src/alfresco-core-rest-api/docs/NodeMinimalEntry.md)`>` - Updated node information<br/>
|
||||||
Getting legal holds assigned to a node.
|
- **getNodeAssignHolds**(nodeId: `string`, options: `any`): [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`Hold[]`](../../../lib/js-api/src/api/gs-core-rest-api/docs/Hold.md)`>`<br/>
|
||||||
- _nodeId:_ `string` - ID of the target node
|
Getting legal holds assigned to a node.
|
||||||
|
- _nodeId:_ `string` - ID of the target node
|
||||||
|
- _options:_ `any` - Optional parameters supported by JS-API
|
||||||
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`Hold[]`](../../../lib/js-api/src/api/gs-core-rest-api/docs/Hold.md)`>` - Updated node information
|
- **Returns** [`Observable`](http://reactivex.io/documentation/observable.html)`<`[`Hold[]`](../../../lib/js-api/src/api/gs-core-rest-api/docs/Hold.md)`>` - Updated node information
|
||||||
|
|
||||||
## Details
|
## Details
|
||||||
|
|||||||
@@ -244,12 +244,11 @@ export class NodesApiService {
|
|||||||
* Gets the list of holds assigned to the node.
|
* Gets the list of holds assigned to the node.
|
||||||
*
|
*
|
||||||
* @param nodeId ID of the target node
|
* @param nodeId ID of the target node
|
||||||
|
* @param options Optional parameters supported by JS-API
|
||||||
* @returns List of assigned holds
|
* @returns List of assigned holds
|
||||||
*/
|
*/
|
||||||
getNodeAssignHolds(nodeId: string): Observable<Hold[]> {
|
getNodeAssignHolds(nodeId: string, options?: any): Observable<Hold[]> {
|
||||||
const queryOptions = Object.assign({
|
const queryOptions = Object.assign({ where: `(assocType='rma:frozenContent')` }, options);
|
||||||
where: `(assocType='rma:frozenContent')`
|
|
||||||
});
|
|
||||||
|
|
||||||
return from(this.nodesApi.listParents(nodeId, queryOptions)).pipe(
|
return from(this.nodesApi.listParents(nodeId, queryOptions)).pipe(
|
||||||
map(({ list }) =>
|
map(({ list }) =>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ export class LegalHoldService {
|
|||||||
* @param options Optional parameters supported by JS-API
|
* @param options Optional parameters supported by JS-API
|
||||||
* @returns List of assigned holds Hold[]
|
* @returns List of assigned holds Hold[]
|
||||||
*/
|
*/
|
||||||
getHolds(filePlanId: string, options: ContentPagingQuery = {}): Observable<Hold[]> {
|
getHolds(filePlanId: string, options?: ContentPagingQuery): Observable<Hold[]> {
|
||||||
return from(this.legalHoldApi.getHolds(filePlanId, options)).pipe(
|
return from(this.legalHoldApi.getHolds(filePlanId, options)).pipe(
|
||||||
map(({ list }) =>
|
map(({ list }) =>
|
||||||
list?.entries?.map(({ entry }) => ({
|
list?.entries?.map(({ entry }) => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user