File tree Expand file tree Collapse file tree
src/main/java/no/digipost/api/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -330,8 +330,8 @@ public SharedDocumentContent getSharedDocumentContent(URI uri) {
330330 return sharedDocumentsApi .getSharedDocumentContent (uri );
331331 }
332332
333- public ClassicHttpResponse stopSharing (SenderId senderId , URI uri ) {
334- return sharedDocumentsApi .stopSharing (senderId , uri );
333+ public void stopSharing (SenderId senderId , URI uri ) {
334+ sharedDocumentsApi .stopSharing (senderId , uri );
335335 }
336336
337337 public ArchiveApi .ArchivingDocuments archiveDocuments (final Archive archive ) {
Original file line number Diff line number Diff line change @@ -521,13 +521,13 @@ public SharedDocumentContent getSharedDocumentContent(URI uri) {
521521 }
522522
523523 @ Override
524- public ClassicHttpResponse stopSharing (SenderId senderId , URI uri ) {
524+ public void stopSharing (SenderId senderId , URI uri ) {
525525 DataType dataType = new ShareDocumentsRequestSharingStopped ();
526526 AdditionalData data = AdditionalData .Builder
527527 .newAdditionalData (dataType )
528528 .setSenderId (senderId )
529529 .build ();
530- return addData (new AddDataLink (uri .getPath ()), data );
530+ addData (new AddDataLink (uri .getPath ()), data );
531531 }
532532
533533 private static String pathWithQuery (URI uri ){
Original file line number Diff line number Diff line change @@ -58,6 +58,6 @@ public interface SharedDocumentsApi {
5858 *
5959 * @param uri The URI of the StopSharing relation returned as part of the ShareDocumentsRequestState
6060 */
61- ClassicHttpResponse stopSharing (SenderId senderId , URI uri );
61+ void stopSharing (SenderId senderId , URI uri );
6262
6363}
You can’t perform that action at this time.
0 commit comments