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