/*! * @license * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { BulkAssignHoldResponseEntry, ContentPagingQuery, Hold, HoldBody, HoldBulkStatusEntry, HoldEntry, HoldPaging, LegalHoldApi, RequestQuery } from '@alfresco/js-api'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class LegalHoldService { private readonly apiService; private _legalHoldApi; get legalHoldApi(): LegalHoldApi; /** * Gets the list of holds available in the file plan. * * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias. * @param options Optional parameters supported by JS-API * @returns List of holds Observable */ getHolds(filePlanId: string, options?: ContentPagingQuery): Observable; /** * Assign a node to a hold. * * @param nodeId The Id of the node which will be assigned to a hold * @param holdId The Id of the hold to which nodes will be assigned * @returns Observable */ assignHold(nodeId: string, holdId: string): Observable; /** * Assign multiple nodes to a hold. * * @param nodeIds The list of managed node Ids * @param holdId The Id of the hold to which nodes will be assigned * @returns Observable */ assignHolds(nodeIds: { id: string; }[], holdId: string): Observable; /** * Unassign the relationship between a child with id nodeId and a parent hold with id holdId. * * @param holdId The hold Id * @param nodeId The Id of the node which is unassigned * @returns Empty response */ unassignHold(holdId: string, nodeId: string): Observable; /** * Create hold. * * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias. * @param hold Hold to create * @returns List of created holds Observable */ createHold(filePlanId: string, hold: HoldBody): Observable; /** * Create list of holds. * * @param filePlanId The identifier of a file plan. You can also use the -filePlan- alias. * @param holds Array of holds to create * @returns List of created holds Observable */ createHolds(filePlanId: string, holds: HoldBody[]): Observable; /** * Start the asynchronous bulk process for a hold with id holdId based on search query results. * * @param holdId The identifier of a hold * @param query Search query * @returns Observable */ bulkAssignHold(holdId: string, query: RequestQuery): Observable; /** * Assign a folder to a hold. * * @param holdId The identifier of a hold * @param folderId The identifier of a folder * @param language Language code * @returns Observable */ bulkAssignHoldToFolder(holdId: string, folderId: string, language: string): Observable; /** * Get status of bulk operation with **bulkStatusId** for **holdId**. * * @param bulkStatusId The identifier of a bulk status * @param holdId The identifier of a hold * @returns Promise */ getBulkOperationStatus(bulkStatusId: string, holdId: string): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }