webdav portal owa editing alpha
This commit is contained in:
parent
7aa68cd775
commit
aedc7ec08e
33 changed files with 969 additions and 153 deletions
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Web;
|
||||
using WebsitePanel.WebDav.Core.Client;
|
||||
|
||||
|
@ -10,6 +11,8 @@ namespace WebsitePanel.WebDav.Core.Interfaces.Managers
|
|||
bool IsFile(string path);
|
||||
byte[] GetFileBytes(string path);
|
||||
void UploadFile(string path, HttpPostedFileBase file);
|
||||
void UploadFile(string path, byte[] bytes);
|
||||
void UploadFile(string path, Stream stream);
|
||||
IResource GetResource(string path);
|
||||
string GetFileUrl(string path);
|
||||
void DeleteResource(string path);
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
using System.IO;
|
||||
using Cobalt;
|
||||
|
||||
namespace WebsitePanel.WebDav.Core.Interfaces.Owa
|
||||
{
|
||||
public interface ICobaltManager
|
||||
{
|
||||
Atom ProcessRequest(int accessTokenId, Stream requestStream);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
using Cobalt;
|
||||
|
||||
namespace WebsitePanel.WebDav.Core.Interfaces.Owa
|
||||
{
|
||||
public interface IWopiFileManager
|
||||
{
|
||||
CobaltFile Create(int accessTokenId);
|
||||
CobaltFile Get(int accessTokenId);
|
||||
bool Add(int accessTokenId, CobaltFile file);
|
||||
bool Delete(int accessTokenId);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
namespace WebsitePanel.WebDav.Core.Interfaces.Storages
|
||||
{
|
||||
public interface IKeyValueStorage
|
||||
{
|
||||
TV Get<TV>(string id);
|
||||
bool Add<TV>(string id, TV value);
|
||||
bool Delete(string id);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
using WebsitePanel.Ecommerce.EnterpriseServer;
|
||||
|
||||
namespace WebsitePanel.WebDav.Core.Interfaces.Storages
|
||||
{
|
||||
public interface ITtlStorage : IKeyValueStorage
|
||||
{
|
||||
void SetTtl<TV>(string id, TV value);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue