forked from siteserver/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNodeInfoExtend.cs
More file actions
152 lines (128 loc) · 5.24 KB
/
NodeInfoExtend.cs
File metadata and controls
152 lines (128 loc) · 5.24 KB
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
using BaiRong.Core;
using BaiRong.Core.Model;
using BaiRong.Core.Model.Enumerations;
using SiteServer.CMS.Model.Enumerations;
namespace SiteServer.CMS.Model
{
public class NodeInfoExtend : ExtendedAttributes
{
public NodeInfoExtend(string extendValues)
{
var nameValueCollection = TranslateUtils.ToNameValueCollection(extendValues);
SetExtendedAttribute(nameValueCollection);
}
//是否可以添加栏目
public bool IsChannelAddable
{
get { return GetBool("IsChannelAddable", true); }
set { SetExtendedAttribute("IsChannelAddable", value.ToString()); }
}
//是否可以添加内容
public bool IsContentAddable
{
get { return GetBool("IsContentAddable", true); }
set { SetExtendedAttribute("IsContentAddable", value.ToString()); }
}
public bool IsChannelCreatable
{
get { return GetBool("IsChannelCreatable", true); }
set { SetExtendedAttribute("IsChannelCreatable", value.ToString()); }
}
public bool IsContentCreatable
{
get { return GetBool("IsContentCreatable", true); }
set { SetExtendedAttribute("IsContentCreatable", value.ToString()); }
}
public bool IsCreateChannelIfContentChanged
{
get { return GetBool("IsCreateChannelIfContentChanged", true); }
set { SetExtendedAttribute("IsCreateChannelIfContentChanged", value.ToString()); }
}
public string CreateChannelIDsIfContentChanged
{
get { return GetExtendedAttribute("CreateChannelIDsIfContentChanged"); }
set { SetExtendedAttribute("CreateChannelIDsIfContentChanged", value); }
}
public string ContentAttributesOfDisplay
{
get { return GetExtendedAttribute("ContentAttributesOfDisplay"); }
set { SetExtendedAttribute("ContentAttributesOfDisplay", value); }
}
public ECrossSiteTransType TransType
{
get { return ECrossSiteTransTypeUtils.GetEnumType(GetExtendedAttribute("TransType")); }
set { SetExtendedAttribute("TransType", ECrossSiteTransTypeUtils.GetValue(value)); }
}
public int TransPublishmentSystemId
{
get { return TranslateUtils.ToInt(GetExtendedAttribute("TransPublishmentSystemId")); }
set { SetExtendedAttribute("TransPublishmentSystemId", value.ToString()); }
}
public string TransNodeIds
{
get { return GetExtendedAttribute("TransNodeIds"); }
set { SetExtendedAttribute("TransNodeIds", value); }
}
public string TransNodeNames
{
get { return GetExtendedAttribute("TransNodeNames"); }
set { SetExtendedAttribute("TransNodeNames", value); }
}
public bool TransIsAutomatic
{
get { return GetBool("TransIsAutomatic", false); }
set { SetExtendedAttribute("TransIsAutomatic", value.ToString()); }
}
//夸张转发操作类型:复制 引用地址 引用内容
public ETranslateContentType TransDoneType
{
get { return ETranslateContentTypeUtils.GetEnumType(GetExtendedAttribute("TransDoneType")); }
set { SetExtendedAttribute("TransDoneType", ETranslateContentTypeUtils.GetValue(value)); }
}
public bool IsPreviewContents
{
get { return GetBool("IsPreviewContents", false); }
set { SetExtendedAttribute("IsPreviewContents", value.ToString()); }
}
public string DefaultTaxisType
{
get { return GetString("DefaultTaxisType", ETaxisTypeUtils.GetValue(ETaxisType.OrderByTaxisDesc)); }
set { SetExtendedAttribute("DefaultTaxisType", value); }
}
/****************内容签收设置********************/
public bool IsSignin
{
get { return GetBool("IsSignin", false); }
set { SetExtendedAttribute("IsSignin", value.ToString()); }
}
public bool IsSigninGroup
{
get { return GetBool("IsSigninGroup", true); }
set { SetExtendedAttribute("IsSigninGroup", value.ToString()); }
}
public string SigninUserGroupCollection
{
get { return GetExtendedAttribute("SigninUserGroupCollection"); }
set { SetExtendedAttribute("SigninUserGroupCollection", value); }
}
public string SigninUserNameCollection
{
get { return GetExtendedAttribute("SigninUserNameCollection"); }
set { SetExtendedAttribute("SigninUserNameCollection", value); }
}
public int SigninPriority
{
get { return TranslateUtils.ToInt(GetExtendedAttribute("SigninPriority")); }
set { SetExtendedAttribute("SigninPriority", value.ToString()); }
}
public string SigninEndDate
{
get { return GetExtendedAttribute("SigninEndDate"); }
set { SetExtendedAttribute("SigninEndDate", value); }
}
public override string ToString()
{
return TranslateUtils.NameValueCollectionToString(Attributes);
}
}
}