Class FolderRepository
- Namespace
- Oqtane.Repository
- Assembly
- Oqtane.Server.dll
public class FolderRepository : IFolderRepository
- Inheritance
-
FolderRepository
- Implements
-
Constructors
FolderRepository(IDbContextFactory<TenantDBContext>, IPermissionRepository, IWebHostEnvironment, ITenantManager)
public FolderRepository(IDbContextFactory<TenantDBContext> dbContextFactory, IPermissionRepository permissions, IWebHostEnvironment environment, ITenantManager tenants)
Parameters
dbContextFactory
IDbContextFactory<TenantDBContext>
permissions
IPermissionRepository
environment
IWebHostEnvironment
tenants
ITenantManager
Methods
AddFolder(Folder)
public Folder AddFolder(Folder folder)
Parameters
folder
Folder
Returns
- Folder
DeleteFolder(int)
public void DeleteFolder(int folderId)
Parameters
folderId
int
GetFolder(int)
public Folder GetFolder(int folderId)
Parameters
folderId
int
Returns
- Folder
GetFolder(int, bool)
public Folder GetFolder(int folderId, bool tracking)
Parameters
folderId
int
tracking
bool
Returns
- Folder
GetFolder(int, string)
public Folder GetFolder(int siteId, string path)
Parameters
siteId
int
path
string
Returns
- Folder
GetFolderPath(Folder)
public string GetFolderPath(Folder folder)
Parameters
folder
Folder
Returns
- string
GetFolderPath(int)
public string GetFolderPath(int folderId)
Parameters
folderId
int
Returns
- string
GetFolders(int)
public IEnumerable<Folder> GetFolders(int siteId)
Parameters
siteId
int
Returns
- IEnumerable<Folder>
UpdateFolder(Folder)
public Folder UpdateFolder(Folder folder)
Parameters
folder
Folder
Returns
- Folder