コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContentAccessLevelProvider"/> class.
 /// </summary>
 /// <param name="portalContext">Portal Context</param>
 /// <param name="currentUserRoleNames">Current User Roles Names</param>
 /// <param name="calEntityMetadata">Entity Metadata for Content Access Level entity</param>
 /// <param name="siteSettingDictionary">Site Setting Dictionary</param>
 public ContentAccessLevelProvider(IPortalContext portalContext, string[] currentUserRoleNames, EntityMetadata calEntityMetadata, Dictionary <string, string> siteSettingDictionary)
     : base(ContentAccessConfiguration.DefaultContentAccessLevelConfiguration(), portalContext, siteSettingDictionary)
 {
     this.CurrentUserRoleNames = new Lazy <string[]>(() => currentUserRoleNames);
     this.calEntityMetadata    = calEntityMetadata;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContentAccessLevelProvider"/> class.
 /// </summary>
 /// <param name="portalContext">Portal Context</param>
 public ContentAccessLevelProvider(IPortalContext portalContext)
     : base(ContentAccessConfiguration.DefaultContentAccessLevelConfiguration(), portalContext)
 {
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContentAccessLevelProvider"/> class.
 /// </summary>
 public ContentAccessLevelProvider() : this(ContentAccessConfiguration.DefaultContentAccessLevelConfiguration())
 {
 }