Table of Contents

Interface IFileRepository

Namespace
Oqtane.Repository
Assembly
Oqtane.Server.dll
public interface IFileRepository

Methods

AddFile(File)

File AddFile(File file)

Parameters

file File

Returns

File

DeleteFile(int)

void DeleteFile(int fileId)

Parameters

fileId int

GetFile(int)

File GetFile(int fileId)

Parameters

fileId int

Returns

File

GetFile(int, bool)

File GetFile(int fileId, bool tracking)

Parameters

fileId int
tracking bool

Returns

File

GetFile(int, string)

File GetFile(int folderId, string fileName)

Parameters

folderId int
fileName string

Returns

File

GetFile(int, string, string)

File GetFile(int siteId, string folderPath, string fileName)

Parameters

siteId int
folderPath string
fileName string

Returns

File

GetFilePath(File)

string GetFilePath(File file)

Parameters

file File

Returns

string

GetFilePath(int)

string GetFilePath(int fileId)

Parameters

fileId int

Returns

string

GetFiles(int)

IEnumerable<File> GetFiles(int folderId)

Parameters

folderId int

Returns

IEnumerable<File>

GetFiles(int, bool)

IEnumerable<File> GetFiles(int folderId, bool tracking)

Parameters

folderId int
tracking bool

Returns

IEnumerable<File>

UpdateFile(File)

File UpdateFile(File file)

Parameters

file File

Returns

File