Interface IFolderService
Service to get / create / modify Folder objects.
public interface IFolderService
Methods
AddFolderAsync(Folder)
Create one Folder using a Folder object.
Task<Folder> AddFolderAsync(Folder folder)
Parameters
folder
Folder
Returns
DeleteFolderAsync(int)
Delete a Folder
Task DeleteFolderAsync(int folderId)
Parameters
Returns
GetFolderAsync(int)
Retrieve the information of one Folder
Task<Folder> GetFolderAsync(int folderId)
Parameters
folderId
int
Returns
GetFolderAsync(int, string)
Task<Folder> GetFolderAsync(int siteId, string folderPath)
Parameters
siteId
intReference to the Site
folderPath
stringPath of the folder TODO: todoc verify exactly from where the folder path must start
Returns
GetFoldersAsync(int)
Retrieve root folders of a Site
Task<List<Folder>> GetFoldersAsync(int siteId)
Parameters
siteId
int
Returns
UpdateFolderAsync(Folder)
Update the information about a Folder Use this to rename the folder etc.
Task<Folder> UpdateFolderAsync(Folder folder)
Parameters
folder
Folder
Returns
UpdateFolderOrderAsync(int, int, int?)
Update the internal Folder-Order within the list of Folders.
Task UpdateFolderOrderAsync(int siteId, int folderId, int? parentId)
Parameters
siteId
intReference to the Site
folderId
intReference to a Folder for the security check
parentId
int?Reference to the Parent Folder or null - this Folders children will be re-sorted.