|
3 | 3 | using VirtoCommerce.ContentModule.Core.Model; |
4 | 4 | using VirtoCommerce.Platform.Core.Settings; |
5 | 5 |
|
6 | | -namespace VirtoCommerce.ContentModule.Core |
| 6 | +namespace VirtoCommerce.ContentModule.Core; |
| 7 | + |
| 8 | +public static class ContentConstants |
7 | 9 | { |
8 | | - public static class ContentConstants |
| 10 | + public const string AnyIndexValue = "any"; |
| 11 | + |
| 12 | + public static class Security |
9 | 13 | { |
10 | | - public static class Security |
| 14 | + public static class Permissions |
11 | 15 | { |
12 | | - public static class Permissions |
13 | | - { |
14 | | - public const string Read = "content:read", |
15 | | - Access = "content:access", |
16 | | - Create = "content:create", |
17 | | - Delete = "content:delete", |
18 | | - Update = "content:update"; |
| 16 | + public const string Read = "content:read", |
| 17 | + Access = "content:access", |
| 18 | + Create = "content:create", |
| 19 | + Delete = "content:delete", |
| 20 | + Update = "content:update"; |
19 | 21 |
|
20 | | - public static string[] AllPermissions = { Read, Access, Create, Delete, Update }; |
21 | | - } |
| 22 | + public static string[] AllPermissions = { Read, Access, Create, Delete, Update }; |
22 | 23 | } |
| 24 | + } |
23 | 25 |
|
24 | | - public static class Settings |
| 26 | + public static class Settings |
| 27 | + { |
| 28 | + public static class Search |
25 | 29 | { |
26 | | - public static class Search |
| 30 | + public static SettingDescriptor IndexationDateContent { get; } = new() |
27 | 31 | { |
28 | | - public static SettingDescriptor IndexationDateContent { get; } = new() |
29 | | - { |
30 | | - Name = $"VirtoCommerce.Search.IndexingJobs.IndexationDate.{nameof(ContentFile)}", |
31 | | - GroupName = "Content|Search", |
32 | | - ValueType = SettingValueType.DateTime, |
33 | | - DefaultValue = default(DateTime), |
34 | | - }; |
35 | | - } |
36 | | - |
37 | | - public static IEnumerable<SettingDescriptor> AllSettings |
38 | | - { |
39 | | - get |
40 | | - { |
41 | | - yield return Search.IndexationDateContent; |
42 | | - } |
43 | | - } |
| 32 | + Name = $"VirtoCommerce.Search.IndexingJobs.IndexationDate.{nameof(ContentFile)}", |
| 33 | + GroupName = "Content|Search", |
| 34 | + ValueType = SettingValueType.DateTime, |
| 35 | + DefaultValue = default(DateTime), |
| 36 | + }; |
44 | 37 | } |
45 | 38 |
|
46 | | - public static class ContentTypes |
| 39 | + public static IEnumerable<SettingDescriptor> AllSettings |
47 | 40 | { |
48 | | - public const string Blogs = "blogs"; |
49 | | - public const string Pages = "pages"; |
50 | | - public const string Themes = "themes"; |
| 41 | + get |
| 42 | + { |
| 43 | + yield return Search.IndexationDateContent; |
| 44 | + } |
51 | 45 | } |
| 46 | + } |
52 | 47 |
|
53 | | - public const string DefaultTheme = "default"; |
| 48 | + public static class ContentTypes |
| 49 | + { |
| 50 | + public const string Blogs = "blogs"; |
| 51 | + public const string Pages = "pages"; |
| 52 | + public const string Themes = "themes"; |
54 | 53 | } |
| 54 | + |
| 55 | + public const string DefaultTheme = "default"; |
55 | 56 | } |
0 commit comments