-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathIPageContextRepository.cs
53 lines (46 loc) · 1.9 KB
/
IPageContextRepository.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using Generic.Models;
using MVCCaching;
using System;
using System.Threading.Tasks;
namespace Generic.Repositories.Interfaces
{
public interface IPageContextRepository : IRepository
{
/// <summary>
/// If the current page is in edit mode
/// </summary>
/// <returns></returns>
Task<bool> IsEditModeAsync();
Task<PageIdentity> GetCurrentPageAsync();
/// <summary>
/// Gets the PageIdentity information based on the given identifier
/// </summary>
/// <param name="path">Path (NodeAliasPath)</param>
/// <returns>The Page Identity or null if not found</returns>
Task<PageIdentity> GetPageAsync(string path);
/// <summary>
/// Gets the PageIdentity information based on the given identifier
/// </summary>
/// <param name="documentID">Document ID</param>
/// <returns>The Page Identity or null if not found</returns>
Task<PageIdentity> GetPageAsync(int documentID);
/// <summary>
/// Gets the PageIdentity information based on the given identifier
/// </summary>
/// <param name="documentGUID">Document GUID</param>
/// <returns>The Page Identity or null if not found</returns>
Task<PageIdentity> GetPageAsync(Guid documentGUID);
/// <summary>
/// Gets the PageIdentity information based on the given identifier
/// </summary>
/// <param name="nodeID">Node ID</param>
/// <returns>The Page Identity or null if not found</returns>
Task<PageIdentity> GetPageByNodeAsync(int nodeID);
/// <summary>
/// Gets the PageIdentity information based on the given identifier
/// </summary>
/// <param name="nodeGUID">Node GUID</param>
/// <returns>The Page Identity or null if not found</returns>
Task<PageIdentity> GetPageByNodeAsync(Guid nodeGUID);
}
}