Ejemplo n.º 1
0
 public GetCoauthLockRequest(WopiRequestParam param) : base(param)
 {
     this.CoauthLockType              = param.CoauthLockType;
     this.CoauthLockMetadata          = param.CoauthLockMetadata;
     this.CoauthLockId                = param.CoauthLockId;
     this.CoauthLockExpirationTimeout = param.CoauthLockExpirationTimeout;
 }
Ejemplo n.º 2
0
 protected WopiRequest(WopiRequestParam param)
 {
     this.OverrideUrl = param.OverrideUrl;
     Validators       = (param.Validators ?? Enumerable.Empty <IValidator>()).ToArray();
     State            = (param.StateSavers ?? Enumerable.Empty <IStateEntry>()).ToArray();
     Mutators         = (param.Mutators ?? Enumerable.Empty <IMutator>()).ToArray();
 }
        public AddActivitiesRequest(WopiRequestParam param) : base(param)
        {
            if (String.IsNullOrWhiteSpace(param.RequestBodyJson))
            {
                throw new ArgumentOutOfRangeException("RequestBodyJson", "No RequestBodyJson specified for AddActivities operation");
            }

            this.ActivitiesJson = param.RequestBodyJson;
        }
        public PutUserInfoRequest(WopiRequestParam param) : base(param)
        {
            if (String.IsNullOrWhiteSpace(param.RequestBody))
            {
                throw new ArgumentOutOfRangeException("RequestBody", "No RequestBody specified for PutUserInfo operation");
            }

            this.UserInfo = param.RequestBody;
        }
Ejemplo n.º 5
0
 public PutRelativeFileWopiRequest(WopiRequestParam param) : base(param)
 {
     this.ResourceId = param.ResourceId;
     if (string.IsNullOrEmpty(param.RequestedName))
     {
         throw new ArgumentException("Requested name for a PutRelativeFile Wopi request cannot be null or empty");
     }
     this.RequestedName     = param.RequestedName;
     this.RequestType       = param.PutRelativeFileMode;
     this.OverwriteRelative = param.OverwriteRelative;
 }
Ejemplo n.º 6
0
 public PutChunkedFileRequest(WopiRequestParam param) : base(param)
 {
     this.SequenceNumber         = param.SequenceNumber;
     this.SequenceNumberStateKey = param.SequenceNumberStateKey;
     this.Lock                       = param.Lock;
     this.CoauthLockId               = param.CoauthLockId;
     this.Editors                    = param.Editors;
     this.ContentProperties          = param.ContentProperties;
     this.ContentStreams             = param.ContentStreams;
     this.UploadSessionTokenToCommit = param.UploadSessionTokenToCommit;
 }
Ejemplo n.º 7
0
 public GetFromFileUrlRequest(WopiRequestParam param)
 {
     this.OverrideUrl = param.OverrideUrl;
     this.Validators  = (param.Validators ?? Enumerable.Empty <IValidator>()).ToArray();
     this.State       = (param.StateSavers ?? Enumerable.Empty <IStateEntry>()).ToArray();
 }
 public PutFileWopiRequest(WopiRequestParam param) : base(param)
 {
     this.LockString = param.LockString;
     this.ResourceId = param.ResourceId;
 }
 public ReadSecureStoreRequest(WopiRequestParam param) : base(param)
 {
     this.ApplicationId      = param.ApplicationId;
     this.PerfTraceRequested = param.PerfTraceRequested;
 }
 public UnlockCoauthLockRequest(WopiRequestParam param) : base(param)
 {
     this.CoauthLockId = param.CoauthLockId;
 }
 public UnlockAndRelockWopiRequest(WopiRequestParam param) : base(param)
 {
     this.NewLockString = param.NewLockString;
     this.OldLockString = param.OldLockString;
 }
 public GetShareUrlRequest(WopiRequestParam param) : base(param)
 {
     this.UrlType = param.UrlType;
 }
 public CreateChildContainerRequest(WopiRequestParam param) : base(param)
 {
     this.FolderName  = param.FolderName;
     this.RequestType = param.PutRelativeFileMode;
 }
 public GetNewAccessTokenRequest(WopiRequestParam param) : base(param)
 {
     this.WopiSrc = param.WopiSrc;
 }
Ejemplo n.º 15
0
 public RenameContainerRequest(WopiRequestParam param) : base(param)
 {
     this.RequestedName = param.RequestedName;
 }
 public GetSequenceNumberRequest(WopiRequestParam param) : base(param)
 {
 }
Ejemplo n.º 17
0
 public GetRestrictedLinkRequest(WopiRequestParam param) : base(param)
 {
     this.RestrictedLinkType      = param.RestrictedLinkType;
     this.UsingRestrictedScenario = param.UsingRestrictedScenario;
 }
Ejemplo n.º 18
0
 public EnumerateChildrenRequest(WopiRequestParam param) : base(param)
 {
     this.FileExtensionFilterList = param.FileExtensionFilterList;
 }
Ejemplo n.º 19
0
 public RenameFileRequest(WopiRequestParam param) : base(param)
 {
     this.LockString    = param.LockString;
     this.RequestedName = param.RequestedName;
 }
 public GetChunkedFileRequest(WopiRequestParam param) : base(param)
 {
     this.WopiSrc = param.WopiSrc;
     this.ContentPropertiesToReturn = param.ContentPropertiesToReturn;
     this.ContentFilters            = param.ContentFilters;
 }
 public GetCoauthTableRequest(WopiRequestParam param) : base(param)
 {
     this.CoauthTableVersion         = param.CoauthTableVersion;
     this.CoauthTableVersionStateKey = param.CoauthTableVersionStateKey;
 }
Ejemplo n.º 22
0
 public CreateChildFileRequest(WopiRequestParam param) : base(param)
 {
     this.RequestedName     = param.RequestedName;
     this.RequestType       = param.PutRelativeFileMode;
     this.OverwriteRelative = param.OverwriteRelative;
 }
 public LockWopiRequest(WopiRequestParam param) : base(param)
 {
     this.LockString      = param.LockString;
     this.LockUserVisible = param.LockUserVisible;
 }
Ejemplo n.º 24
0
 public GetFileWopiRequest(WopiRequestParam param) : base(param)
 {
     this.NewLockString = param.NewLockString;
 }
 public LockWopiRequest(WopiRequestParam param) : base(param)
 {
     this.LockString = param.LockString;
 }
Ejemplo n.º 26
0
 public RefreshCoauthLock(WopiRequestParam param) : base(param)
 {
     this.CoauthLockMetadata          = param.CoauthLockMetadata;
     this.CoauthLockId                = param.CoauthLockId;
     this.CoauthLockExpirationTimeout = param.CoauthLockExpirationTimeout;
 }