You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -314,10 +316,9 @@ Follow these steps if you want to integrate the SDM CAP Plugin with your own CAP
314
316
315
317
## Support for Multitenancy
316
318
317
-
318
319
This plugin provides APIs for onboarding and offboarding of repositories for multitenant CAP SaaS applications.
319
320
320
-
GetDependencies,subscribe and unsubscribe are the mandatory steps to be performed to support multitenancy.
321
+
GetDependencies,subscribe and unsubscribe are the mandatory steps to be performed to support multitenancy.
321
322
322
323
Refer the below example to pass the SDM Service dependencies to SaaSRegistry so that SDM credentials are passed to subscribing tenant.
323
324
```java
@@ -514,6 +515,47 @@ request =
514
515
.build();
515
516
```
516
517
518
+
## Support for copy attachments
519
+
520
+
This plugin provides capability to copy attachments from one entity to another. This capability will copy attachments metadata on CAP as well as actual content on the SAP Document Management service repository. This feature can be used in following two ways.
521
+
522
+
1.**A helper method to copy attachments from one entity to another**
523
+
524
+
The `AttachmentService` instance can be used to call `copyAttachments` method. This method expects an object of `CopyAttachmentInput` which requires new entity's Id (`up__Id`), the `attachments facet name` and the `list of objectIds` corresponding to attachments that are to be copied.
525
+
526
+
Example usage:
527
+
```java
528
+
String up__ID ="123";
529
+
List<String> objectIds = ["abc", "xyz"];
530
+
String facet ="AdminService.Books.attachments"// Target facet. This can be usually obtained from context.getTarget().getQualifiedName()
0 commit comments