Exemple #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;
 }
Exemple #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)
 {
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContentAccessLevelProvider"/> class.
 /// </summary>
 public ContentAccessLevelProvider() : this(ContentAccessConfiguration.DefaultContentAccessLevelConfiguration())
 {
 }