diff --git a/src/main/java/org/olat/core/commons/services/doceditor/office365/restapi/CheckFileInfoVO.java b/src/main/java/org/olat/core/commons/services/doceditor/office365/restapi/CheckFileInfoVO.java index 4ef401286546c974efcfa92eed0d64e825c89b86..5663888d6bf5a59ee1994f38c1dbc316fa98fe1f 100644 --- a/src/main/java/org/olat/core/commons/services/doceditor/office365/restapi/CheckFileInfoVO.java +++ b/src/main/java/org/olat/core/commons/services/doceditor/office365/restapi/CheckFileInfoVO.java @@ -46,6 +46,7 @@ public class CheckFileInfoVO { private final Boolean supportsLocks; private final Boolean supportsExtendedLockLength; private final Boolean supportsUpdate; + private final Boolean supportsRename; private final Boolean readOnly; private final Boolean userCanWrite; @@ -65,6 +66,7 @@ public class CheckFileInfoVO { this.supportsLocks = builder.supportsLocks; this.supportsExtendedLockLength = builder.supportsExtendedLockLength; this.supportsUpdate = builder.supportsUpdate; + this.supportsRename = builder.supportsRename; this.readOnly = builder.readOnly; this.userCanWrite = builder.userCanWrite; this.userCanNotWriteRelative = builder.userCanNotWriteRelative; @@ -109,6 +111,10 @@ public class CheckFileInfoVO { return supportsUpdate; } + public Boolean getSupportsRename() { + return supportsRename; + } + public Boolean getReadOnly() { return readOnly; } @@ -147,6 +153,7 @@ public class CheckFileInfoVO { private Boolean supportsLocks; private Boolean supportsExtendedLockLength; private Boolean supportsUpdate; + private Boolean supportsRename; private Boolean readOnly; private Boolean userCanWrite; private Boolean userCanNotWriteRelative; @@ -202,6 +209,11 @@ public class CheckFileInfoVO { return this; } + public Builder withSupportsRename(Boolean supportsRename) { + this.supportsRename = supportsRename; + return this; + } + public Builder withReadOnly(Boolean readOnly) { this.readOnly = readOnly; return this; diff --git a/src/main/java/org/olat/core/commons/services/doceditor/office365/restapi/Office365WebService.java b/src/main/java/org/olat/core/commons/services/doceditor/office365/restapi/Office365WebService.java index eaab1548af3e96931f36c8b6ddb8750ca483dece..8f7280a18b2db44760e5e3703d3da4f548483a96 100644 --- a/src/main/java/org/olat/core/commons/services/doceditor/office365/restapi/Office365WebService.java +++ b/src/main/java/org/olat/core/commons/services/doceditor/office365/restapi/Office365WebService.java @@ -126,6 +126,7 @@ public class Office365WebService { .withSupportsLocks(true) .withSupportsExtendedLockLength(true) .withSupportsUpdate(true) + .withSupportsRename(false) .withUserCanWrite(access.isCanEdit()) .withUserCanNotWriteRelative(true) .build();