forked from KevinJump/uSync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBackOfficeConstants.cs
245 lines (203 loc) · 7.54 KB
/
BackOfficeConstants.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
using System;
using System.Collections.Generic;
namespace uSync.BackOffice
{
/// <summary>
/// Constant values for uSync
/// </summary>
public static partial class uSyncConstants
{
/// <summary>
/// Information about the package name/files
/// </summary>
public static class Package
{
/// <summary>
/// Name of the Package
/// </summary>
public const string Name = "uSync";
/// <summary>
/// Virtual path to the plugin files
/// </summary>
public const string PluginPath = "/App_Plugins/uSync";
}
/// <summary>
/// Suffix to place on any release strings
/// </summary>
public const string ReleaseSuffix = "";
/// <summary>
/// ordering of the handler items (what gets done when)
/// </summary>
public static class Priorites
{
/// <summary>
/// Lower bound of uSync's reserved priority range
/// </summary>
public const int USYNC_RESERVED_LOWER = 1000;
/// <summary>
/// Upper bound of uSync's reserved priority range
/// </summary>
public const int USYNC_RESERVED_UPPER = 2000;
/// <summary>
/// DataTypes priority
/// </summary>
public const int DataTypes = USYNC_RESERVED_LOWER + 10;
/// <summary>
/// Templates priority
/// </summary>
public const int Templates = USYNC_RESERVED_LOWER + 20;
/// <summary>
/// ContentTypes priority
/// </summary>
public const int ContentTypes = USYNC_RESERVED_LOWER + 30;
/// <summary>
/// MediaTypes priority
/// </summary>
public const int MediaTypes = USYNC_RESERVED_LOWER + 40;
/// <summary>
/// MemberTypes priority
/// </summary>
public const int MemberTypes = USYNC_RESERVED_LOWER + 45;
/// <summary>
/// Languages priority
/// </summary>
public const int Languages = USYNC_RESERVED_LOWER + 5;
/// <summary>
/// DictionaryItems priority
/// </summary>
public const int DictionaryItems = USYNC_RESERVED_LOWER + 6;
/// <summary>
/// Macros priority
/// </summary>
public const int Macros = USYNC_RESERVED_LOWER + 70;
/// <summary>
/// Media priority
/// </summary>
public const int Media = USYNC_RESERVED_LOWER + 200;
/// <summary>
/// Content priority
/// </summary>
public const int Content = USYNC_RESERVED_LOWER + 210;
/// <summary>
/// ContentTemplate priority
/// </summary>
public const int ContentTemplate = USYNC_RESERVED_LOWER + 215;
/// <summary>
/// DomainSettings priority
/// </summary>
public const int DomainSettings = USYNC_RESERVED_LOWER + 219;
/// <summary>
/// DataTypeMappings priority
/// </summary>
public const int DataTypeMappings = USYNC_RESERVED_LOWER + 220;
/// <summary>
/// RelationTypes priority
/// </summary>
public const int RelationTypes = USYNC_RESERVED_LOWER + 230;
}
/// <summary>
/// Default group names
/// </summary>
public static class Groups
{
/// <summary>
/// Name for the settings group of handlers
/// </summary>
public const string Settings = "Settings";
/// <summary>
/// Name for the Content group of handlers
/// </summary>
public const string Content = "Content";
/// <summary>
/// Name for the Members group of handlers
/// </summary>
public const string Members = "Members";
/// <summary>
/// Name for the > group of handlers
/// </summary>
public const string Users = "Users";
/// <summary>
/// Name for the Forms group of handlers
/// </summary>
public const string Forms = "Forms";
/// <summary>
/// Name for the Files group of handlers
/// </summary>
public const string Files = "Files";
/// <summary>
/// Name for the default group (used for loading default global config)
/// </summary>
public const string Default = "__default__";
/// <summary>
/// Icons for the well known handler groups.
/// </summary>
public static Dictionary<string, string> Icons = new Dictionary<string, string> {
{ Settings, "icon-settings-alt color-blue" },
{ Content, "icon-documents color-purple" },
{ Members, "icon-users" },
{ Users, "icon-users color-green"},
{ Default, "icon-settings" },
{ Forms, "icon-umb-contour" },
{ Files, "icon-script-alt" }
};
}
/// <summary>
/// names of the well know handlers
/// </summary>
public static class Handlers
{
/// <summary>
/// ContentHandler Name
/// </summary>
public const string ContentHandler = "ContentHandler";
/// <summary>
/// ContentTemplateHandler Name
/// </summary>
public const string ContentTemplateHandler = "ContentTemplateHandler";
/// <summary>
/// ContentTypeHandler Name
/// </summary>
public const string ContentTypeHandler = "ContentTypeHandler";
/// <summary>
/// DataTypeHandler Name
/// </summary>
public const string DataTypeHandler = "DataTypeHandler";
/// <summary>
/// DictionaryHandler Name
/// </summary>
public const string DictionaryHandler = "DictionaryHandler";
/// <summary>
/// DomainHandler Name
/// </summary>
public const string DomainHandler = "DomainHandler";
/// <summary>
/// LanguageHandler Name
/// </summary>
public const string LanguageHandler = "LanguageHandler";
/// <summary>
/// MacroHandler Name
/// </summary>
public const string MacroHandler = "MacroHandler";
/// <summary>
/// MediaHandler Name
/// </summary>
public const string MediaHandler = "MediaHandler";
/// <summary>
/// MediaTypeHandler Name
/// </summary>
public const string MediaTypeHandler = "MediaTypeHandler";
/// <summary>
/// MemberTypeHandler Name
/// </summary>
public const string MemberTypeHandler = "MemberTypeHandler";
/// <summary>
/// RelationTypeHandler Name
/// </summary>
public const string RelationTypeHandler = "RelationTypeHandler";
/// <summary>
/// TemplateHandler Name
/// </summary>
public const string TemplateHandler = "TemplateHandler";
}
}
}