public GetDeletedResourceIdsAuthorizationDecorator(
     IGetDeletedResourceIds next,
     ISecurityRepository securityRepository,
     IAuthorizationContextProvider authorizationContextProvider,
     IEdFiAuthorizationProvider authorizationProvider)
     : base(authorizationContextProvider, authorizationProvider)
 {
     _next = next;
     _securityRepository = securityRepository;
 }
 public HttpFilterConfigurator(ISchoolYearContextProvider schoolYearContextProvider,
                               IEdFiAuthorizationProvider edFiAuthorizationProvider,
                               ISecurityRepository securityRepository,
                               IRESTErrorProvider restErrorProvider)
 {
     _schoolYearContextProvider = Preconditions.ThrowIfNull(schoolYearContextProvider, nameof(schoolYearContextProvider));
     _edFiAuthorizationProvider = Preconditions.ThrowIfNull(edFiAuthorizationProvider, nameof(edFiAuthorizationProvider));
     _securityRepository        = Preconditions.ThrowIfNull(securityRepository, nameof(securityRepository));
     _restErrorProvider         = Preconditions.ThrowIfNull(restErrorProvider, nameof(restErrorProvider));
 }
 public HqlBuilderAuthorizationDecorator(
     ICompositeItemBuilder <HqlBuilderContext, CompositeQuery> next,
     IEdFiAuthorizationProvider authorizationProvider,
     INHibernateFilterTextProvider nHibernateFilterTextProvider,
     IResourceClaimUriProvider resourceClaimUriProvider)
 {
     _next = Preconditions.ThrowIfNull(next, nameof(next));
     _authorizationProvider        = Preconditions.ThrowIfNull(authorizationProvider, nameof(authorizationProvider));
     _nHibernateFilterTextProvider = Preconditions.ThrowIfNull(nHibernateFilterTextProvider, nameof(nHibernateFilterTextProvider));
     _resourceClaimUriProvider     = Preconditions.ThrowIfNull(resourceClaimUriProvider, nameof(resourceClaimUriProvider));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetEntityByKeyAuthorizationDecorator{T}"/> class.
 /// </summary>
 /// <param name="next">The decorated instance for which authorization is being performed.</param>
 /// <param name="sessionFactory">The NHibernate session factory used to manage session (database connection) context.</param>
 /// <param name="authorizationFilterContextProvider">Applies authorization-related filters for the entity on the current NHiberate session.</param>
 /// <param name="authorizationContextProvider">Provides access to the authorization context, such as the resource and action.</param>
 /// <param name="authorizationProvider">The component capable of authorizing the request, given necessary context.</param>
 public GetEntitiesBySpecificationAuthorizationDecorator(
     IGetEntitiesBySpecification <TEntity> next,
     ISessionFactory sessionFactory,
     IAuthorizationFilterContextProvider authorizationFilterContextProvider,
     IAuthorizationContextProvider authorizationContextProvider,
     IEdFiAuthorizationProvider authorizationProvider)
     : base(authorizationContextProvider, authorizationProvider)
 {
     _next           = next;
     _sessionFactory = sessionFactory;
     _authorizationFilterContextProvider = authorizationFilterContextProvider;
 }