Пример #1
0
 public HandleModuleSecurity(IUserRepository userRepository,
     IRoleRepository roleRepository,
     ICurrentUserContext currentUserContext,
     IModuleRepository moduleRepository,
     IGetTheNotAuthorizedPage getTheNotAuthorizedPage,
     ISuperUserContext superUserContext)
 {
     this.userRepository = userRepository;
     this.roleRepository = roleRepository;
     this.currentUserContext = currentUserContext;
     this.moduleRepository = moduleRepository;
     this.getTheNotAuthorizedPage = getTheNotAuthorizedPage;
     this.superUserContext = superUserContext;
 }
 public HandleContentSecurity(ICurrentUserContext currentUserContext,
     IContentTreeSectionNodeRepository contentTreeSectionNodeRepository,
     IUserRepository userRepository,
     IRoleRepository roleRepository,
     ITreeNodeRepository treeNodeRepository,
     IGetTheNotAuthorizedPage getTheNotAuthorizedPage)
 {
     this.currentUserContext = currentUserContext;
     this.contentTreeSectionNodeRepository = contentTreeSectionNodeRepository;
     this.userRepository = userRepository;
     this.roleRepository = roleRepository;
     this.treeNodeRepository = treeNodeRepository;
     this.getTheNotAuthorizedPage = getTheNotAuthorizedPage;
 }