コード例 #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())
 {
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContentAccessLevelProvider"/> class.
 /// </summary>
 /// <param name="configuration">Configuration for FetchXML attributes</param>
 public ContentAccessLevelProvider(ContentAccessConfiguration configuration) : base(configuration)
 {
     this.CurrentUserRoleNames = new Lazy <string[]>(() => CrmEntityPermissionProvider.GetRolesForUser(this.Portal.ServiceContext, this.Portal.Website.ToEntityReference()));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CategoryAccessProvider"/> class.
 /// </summary>
 public CategoryAccessProvider() : this(ContentAccessConfiguration.DefaultCategoryConfiguration())
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CategoryAccessProvider"/> class.
 /// </summary>
 /// <param name="portalContext">Portal Context</param>
 /// <param name="contentAccessLevelProvider">Content Access Level Provider</param>
 /// <param name="productAccessProvider">Product Access Provider</param>
 public CategoryAccessProvider(IPortalContext portalContext, ContentAccessLevelProvider contentAccessLevelProvider, ProductAccessProvider productAccessProvider)
     : base(ContentAccessConfiguration.DefaultCategoryConfiguration(), portalContext)
 {
     this.ContentAccessLevelProvider = contentAccessLevelProvider;
     this.ProductAccessProvider      = productAccessProvider;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CategoryAccessProvider"/> class.
 /// </summary>
 /// <param name="configuration">Category Access Procider Configuration</param>
 public CategoryAccessProvider(ContentAccessConfiguration configuration) : base(configuration)
 {
     this.ContentAccessLevelProvider = new ContentAccessLevelProvider();
     this.ProductAccessProvider      = new ProductAccessProvider();
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductAccessProvider"/> class.
 /// </summary>
 /// <param name="portalContext">Configuration for FetchXML attributes</param>
 /// <param name="relationshipNamesDictionary">Semicolon delimited string of relationship names</param>
 /// <param name="relationshipMetadataDictionary">Relationship metadata that defines relationship attributes</param>
 /// <param name="siteSettingDictionary">Site Setting for Product Filtering</param>
 public ProductAccessProvider(IPortalContext portalContext, Dictionary <string, string> relationshipNamesDictionary, Dictionary <string, ProductAccessProvider.RelationshipMetadata> relationshipMetadataDictionary, Dictionary <string, string> siteSettingDictionary)
     : base(ContentAccessConfiguration.DefaultProductFilteringConfiguration(), portalContext, siteSettingDictionary)
 {
     this.relationshipNamesDictionary    = relationshipNamesDictionary;
     this.relationshipMetadataDictionary = relationshipMetadataDictionary;
 }
コード例 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductAccessProvider"/> class.
 /// </summary>
 /// <param name="portalContext">Configuration for FetchXML attributes</param>
 public ProductAccessProvider(IPortalContext portalContext)
     : base(ContentAccessConfiguration.DefaultProductFilteringConfiguration(), portalContext)
 {
 }
コード例 #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductAccessProvider"/> class.
 /// </summary>
 /// <param name="configuration">Configuration for FetchXML attributes</param>
 public ProductAccessProvider(ContentAccessConfiguration configuration)
     : base(configuration)
 {
 }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductAccessProvider"/> class.
 /// </summary>
 public ProductAccessProvider()
     : this(ContentAccessConfiguration.DefaultProductFilteringConfiguration())
 {
 }