mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-7600] Legal hold - Hold interface and documentation fixes (#10074)
* [ACS-8055] Integrate endpoint for getting Legal Holds (#9771) * ACS-8055 add listAssignedHolds API * ACS-8055 create legal-hold service * ACS-8055 add documentation * ACS-8055 fix imports * ACS-8055 clean up code * ACS-8055 fix interface typo * ACS-8055 add optional options and uodate nodes-api.service.md * ACS-8055 update interface * ACS-8055 add HoldPaging class and documentation * ACS-8055 add interface and fix test * ACS-8055 add documentation for legal hold service * ACS-8055 update legal-hold.service.md * ACS-8055 update legal-hold.service.md * ACS-8055 update readme file * ACS-8055 add translation --------- Co-authored-by: DaryaBalvanovich <darya.balvanovich1@hyland.com> * ACS-7689 Save and delete to existing hold (#9841) * [ACS-7690] Saving adding o a new hold (#9862) * ACS-7689 Save and delete to existing hold * ACS-7689 Save and delete to existing hold, cleanup * ACS-7689 Save and delete to existing hold, revert to separate methods * ACS-7689 Save and delete to existing hold, fix specs * ACS-7689 Save and delete to existing hold, fix specs * ACS-7689 Save and delete to existing hold * ACS-8055 add listAssignedHolds API * ACS-8055 create legal-hold service * ACS-8055 add documentation * ACS-8055 fix imports * ACS-8055 add HoldPaging class and documentation * ACS-8055 add interface and fix test * ACS-7689 Save and delete to existing hold, fix specs * ACS-7689 Save and delete to existing hold, fix specs * ACS-7690 integrate create and assign holds endpoints * ACS-7690 fix imports * ACS-7690 add bulk method * ACS-7690 update readme file * ACS-7690 add tests * ACS-7690 update docs file * ACS-7690 remove interface * ACS-7690 update geHolds description and md file with createHold * ACS-7690 add createHolds to md file * ACS-7690 fix typo in spec, and description in legal-hold service * ACS-7690 refactor create hold parameter and documentation * ACS-7690 fixed test * ACS-7690 fix test for getHolds * ACS-7690 fix md for create hold action * ACS-7690 fix rebase conflicts --------- Co-authored-by: Tomasz Nastaly <tomasz.nastaly@hyland.com> Co-authored-by: DaryaBalvanovich <darya.balvanovich1@hyland.com> * ACS-7689 Update payload with hold id (#9877) * ACS-7600 fix documentation and method name * ACS-7600 create separate type for hold creation * [ACS-8036] [FE] Legal Hold in ADW. Part 2 (Bulk) (#10062) * ACS-8329 Manage bulks endpoint (#9972) * ACS-8325 extend ContentActionRef with tooltip (#9998) * [ACS-8425] Add functionality to select folder and assign it to a hold (#10011) * ACS-8425 add bulkFolderHold method * ACS-8425 refactor names and add more specific query to folder * ACS-8425 refactor names * ACS-8425 fix description in md file * ACS-8425 update interfaces and add constant * ACS-8425 fix readme file and refactor tests * ACS-8425 fix readme * ACS-8425 fix readme * ACS-8036 fix import path --------- Co-authored-by: Tomasz Nastaly <tomasz.nastaly@hyland.com> * [ACS-7600] fix imports in dropdown widget * [ACS-7600] fix Hold interface and documentation * [ACS-7600] fix hold interfaces and documentation * [ACS-7600] fix hold interfaces and documentation * [ACS-7600] fix hold interfaces and documentation * [ACS-7600] fix hold interfaces and documentation * [ACS-7600] fix hold interfaces and documentation * [ACS-7600] fix hold interfaces and documentation --------- Co-authored-by: Darya Blavanovich <166367848+DaryaBalvanovich@users.noreply.github.com> Co-authored-by: DaryaBalvanovich <darya.balvanovich1@hyland.com> Co-authored-by: tomson <tomasz.nastaly@hyland.com> Co-authored-by: g-jaskowski <grzegorz.jaskowski@hyland.com>
This commit is contained in:
committed by
Darya Blavanovich
parent
4d512cb1a4
commit
a08af0bb9d
@@ -15,10 +15,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Injectable } from '@angular/core';
|
||||
import { NodeEntry, NodePaging, NodesApi, TrashcanApi, Node, Hold, ContentPagingQuery, NodesIncludeQuery } from '@alfresco/js-api';
|
||||
import { Subject, from, Observable, throwError } from 'rxjs';
|
||||
import { AlfrescoApiService, UserPreferencesService } from '@alfresco/adf-core';
|
||||
import { ContentPagingQuery, Node, NodeAssignedHold, NodeEntry, NodePaging, NodesApi, NodesIncludeQuery, TrashcanApi } from '@alfresco/js-api';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { from, Observable, Subject, throwError } from 'rxjs';
|
||||
import { catchError, map } from 'rxjs/operators';
|
||||
import { NodeMetadata } from '../models/node-metadata.model';
|
||||
|
||||
@@ -182,18 +182,15 @@ export class NodesApiService {
|
||||
includeSource?: boolean;
|
||||
} & NodesIncludeQuery &
|
||||
ContentPagingQuery
|
||||
): Observable<Hold[]> {
|
||||
): Observable<NodeAssignedHold[]> {
|
||||
const queryOptions = Object.assign({ where: `(assocType='rma:frozenContent')` }, options);
|
||||
|
||||
return from(this.nodesApi.listParents(nodeId, queryOptions)).pipe(
|
||||
map(({ list }) =>
|
||||
list.entries?.map(
|
||||
({ entry }) =>
|
||||
({
|
||||
id: entry.id,
|
||||
name: entry.name
|
||||
} as Hold)
|
||||
)
|
||||
list.entries?.map(({ entry }) => ({
|
||||
id: entry.id,
|
||||
name: entry.name
|
||||
}))
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user