private void SetupEntities() { user = new User(); user.Name = "Ayende"; account = new Account(); account.Name = "south sand"; UnitOfWork.CurrentSession.Save(user); UnitOfWork.CurrentSession.Save(account); authorizationService = IoC.Resolve<IAuthorizationService>(); permissionService = IoC.Resolve<IPermissionsService>(); permissionsBuilderService = IoC.Resolve<IPermissionsBuilderService>(); authorizationRepository = IoC.Resolve<IAuthorizationRepository>(); authorizationRepository.CreateUsersGroup("Administrators"); authorizationRepository.CreateEntitiesGroup("Important Accounts"); authorizationRepository.CreateOperation("/Account/Edit"); UnitOfWork.Current.TransactionalFlush(); authorizationRepository.AssociateUserWith(user, "Administrators"); authorizationRepository.AssociateEntityWith(account, "Important Accounts"); UnitOfWork.Current.TransactionalFlush(); }
public AjaxServiceController( IIndustryCateService IndustryCateService , ICityCateService CityCateService , ICustomerCompanyService CustomerCompanyService , IRelationCateService RelationCateService , ICustomerCateService CustomerCateService , IMemberService MemberService , IDepartmentService DepartmentService , IPermissionsService PermissionsService , IJobTitleCateService JobTitleCateService , IJobCateService JobCateService , IContractCateService ContractCateService ) { this.IndustryCateService = IndustryCateService; this.CityCateService = CityCateService; this.CustomerCompanyService = CustomerCompanyService; this.RelationCateService = RelationCateService; this.CustomerCateService = CustomerCateService; this.MemberService = MemberService; this.DepartmentService = DepartmentService; this.PermissionsService = PermissionsService; this.JobTitleCateService = JobTitleCateService; this.JobCateService = JobCateService; this.ContractCateService = ContractCateService; }
public CustomerCompanyController( ICustomerCompanyService CustomerCompanyService , IRelationCateService RelationCateService , ICustomerCateService CustomerCateService , ICityCateService CityCateService , IIndustryCateService IndustryCateService , ICustomerService CustomerService , ITraceLogService TraceLogService , ICustomerShareService CustomerShareService , IMemberService MemberService , IPermissionsService PermissionsService , IContactRequireService ContactRequireService , IPlanLogService PlanLogService ) { this.CustomerCompanyService = CustomerCompanyService; this.RelationCateService = RelationCateService; this.CustomerCateService = CustomerCateService; this.CityCateService = CityCateService; this.IndustryCateService = IndustryCateService; this.CustomerService = CustomerService; this.TraceLogService = TraceLogService; this.CustomerShareService = CustomerShareService; this.MemberService = MemberService; this.PermissionsService = PermissionsService; this.ContactRequireService = ContactRequireService; this.PlanLogService = PlanLogService; }
public PermissionsController( IPermissionsService _PermissionsService, IDepartmentService _DepartmentService ) { PermissionsService = _PermissionsService; DepartmentService = _DepartmentService; }
public UserGroupPermissionListController(IDynamicExpressionQuery dynamicExpressionQuery, IPermissionsService permissionsService, IAuthorizationRepository authorizationRepository) { _dynamicExpressionQuery = dynamicExpressionQuery; _grid = ObjectFactory.Container.GetInstance<IEntityListGrid<PermissionDto>>("group"); _permissionsService = permissionsService; _authorizationRepository = authorizationRepository; }
public TaskController( ITaskService TaskService, IMemberService MemberService, IPermissionsService PermissionsService ) { this.TaskService = TaskService; this.MemberService = MemberService; this.PermissionsService = PermissionsService; }
public RolesController( IRolesService _RolesService, IPermissionsService _PermissionsService, IDepartmentService _DepartmentService ) { RolesService = _RolesService; PermissionsService = _PermissionsService; DepartmentService = _DepartmentService; }
public LoginController( IMemberService MemberService , IGroupService GroupService , IDepartmentService DepartmentService , IPermissionsService PermissionsService) { this.MemberService = MemberService; this.GroupService = GroupService; this.DepartmentService = DepartmentService; this.PermissionsService = PermissionsService; }
public ImageDownloadService(IPlatformCodeService platformCodeService, ISqliteService sqliteService, IPermissionsService permissionsService, IProgressService progressService) { _platformCodeService = platformCodeService; _permissionsService = permissionsService; _progressService = progressService; _maxHeight = _platformCodeService.DeviceHeight(); _maxWidth = _platformCodeService.DeviceWidth(); _genericRepository = new GenericRepository<ImageContentModel, ImageContentEntity>(sqliteService); }
public PermissionController(IRepository repository, IPermissionsService permissionsService, IAuthorizationRepository authorizationRepository, IPermissionsBuilderService permissionsBuilderService, ISelectListItemService selectListItemService) { _repository = repository; _permissionsService = permissionsService; _authorizationRepository = authorizationRepository; _permissionsBuilderService = permissionsBuilderService; _selectListItemService = selectListItemService; }
public TcNoticeController( IDepartmentService DepartmentService , ITcNoticeService TcNoticeService , IMemberService MemberService , IPermissionsService PermissionsService ) { this.DepartmentService = DepartmentService; this.TcNoticeService = TcNoticeService; this.MemberService = MemberService; this.PermissionsService = PermissionsService; }
public SecurityService(IMembershipService<User> usersMembershipService, IMembershipService<Member> membersMembershipService, IPermissionsService permissionsService, IPublicAccessService publicAccessService) { Mandate.That<NullReferenceException>(usersMembershipService != null); Mandate.That<NullReferenceException>(membersMembershipService != null); Mandate.That<NullReferenceException>(permissionsService != null); Mandate.That<NullReferenceException>(publicAccessService != null); Users = usersMembershipService; Members = membersMembershipService; Permissions = permissionsService; PublicAccess = publicAccessService; }
public CustomerCompanyService(IUnitOfWork db , ITraceLogService TraceLogService , IPermissionsService PermissionsService , IMemberService MemberService , ICustomerShareService CustomerShareService ) { this.db = db; this.TraceLogService = TraceLogService; this.PermissionsService = PermissionsService; this.MemberService = MemberService; this.CustomerShareService = CustomerShareService; }
public ActionResult List() { var model = new PhoneValidationModel(); if (!User.Identity.IsAuthenticated) { return(AccessDeniedView()); } identity = ((CustomPrincipal)User).CustomIdentity; _permissionservice = new PermissionsService(identity.Name, identity.UserRoleId); IQueryable <CM_BRANCH> curBranchList = db.CM_BRANCH.OrderBy(x => x.BRANCH_NAME); //.Where(a => a.BRANCH_ID == identity.BranchId); if (_permissionservice.IsLevel(AuthorizationLevel.Enterprise)) { } else if (_permissionservice.IsLevel(AuthorizationLevel.Regional)) { curBranchList = curBranchList.Where(a => a.REGION_ID == identity.RegionId); } else if (_permissionservice.IsLevel(AuthorizationLevel.Zonal)) { curBranchList = curBranchList.Where(a => a.ZONECODE == identity.ZoneId).OrderBy(a => a.BRANCH_NAME); } else if (_permissionservice.IsLevel(AuthorizationLevel.Branch)) { curBranchList = curBranchList.Where(a => a.BRANCH_ID == identity.BranchId).OrderBy(a => a.BRANCH_NAME); } else { curBranchList = curBranchList.Where(a => a.BRANCH_ID == "-1"); } model.Branches = new SelectList(curBranchList, "BRANCH_ID", "BRANCH_NAME").ToList(); if (_permissionservice.IsLevel(AuthorizationLevel.Enterprise)) { model.Branches.Add(new SelectListItem { Value = "0", Text = "All", Selected = true }); } _messagingService.SaveUserActivity(identity.ProfileId, "Viewed Phone Number Validation Report", DateTime.Now); return(View(model)); }
public EventsService( IIntranetActivityRepository intranetActivityRepository, ICacheService cacheService, IIntranetMemberService <IIntranetMember> intranetMemberService, ICommentsService commentsService, ILikesService likesService, ISubscribeService subscribeService, IPermissionsService permissionsService, INotificationsService notificationService, IMediaHelper mediaHelper, IElasticUintraActivityIndex activityIndex, IDocumentIndexer documentIndexer, IActivityTypeProvider activityTypeProvider, IIntranetMediaService intranetMediaService, IGroupActivityService groupActivityService, IActivityLinkService linkService, IActivityLocationService activityLocationService, UserTagService userTagService, IActivitySubscribeSettingService activitySubscribeSettingService, IFeedTypeProvider feedTypeProvider, IActivityLinkPreviewService activityLinkPreviewService, IGroupService groupService, INotifierDataBuilder notifierDataBuilder) : base( intranetActivityRepository, cacheService, activityTypeProvider, intranetMediaService, activityLocationService, activityLinkPreviewService, intranetMemberService, permissionsService) { _commentsService = commentsService; _likesService = likesService; _subscribeService = subscribeService; _notificationService = notificationService; _mediaHelper = mediaHelper; _activityIndex = activityIndex; _documentIndexer = documentIndexer; _intranetMediaService = intranetMediaService; _groupActivityService = groupActivityService; _linkService = linkService; _userTagService = userTagService; _activitySubscribeSettingService = activitySubscribeSettingService; _feedTypeProvider = feedTypeProvider; _groupService = groupService; _notifierDataBuilder = notifierDataBuilder; }
public BaseHandler( IMapper mapper, IVsphereService vsphereService, IPlayerService playerService, IPrincipal principal, IPermissionsService permissionsService, IVmService vmService) { _mapper = mapper; _vsphereService = vsphereService; _playerService = playerService; _userId = (principal as ClaimsPrincipal).GetId(); _permissionsService = permissionsService; _vmService = vmService; }
public ActionResult List() { var model = new DistinctSameCifModel(); if (!User.Identity.IsAuthenticated) { return(AccessDeniedView()); } identity = ((CustomPrincipal)User).CustomIdentity; _permissionservice = new PermissionsService(identity.Name, identity.UserRoleId); _messagingService.SaveUserActivity(identity.ProfileId, "Viewed Customers With Same CIF Report", DateTime.Now); return(View(model)); }
public ClaimsPrincipalFactory(UserManager <TUser> userManager, RoleManager <TRole> roleManager, IOptions <IdentityOptions> optionsAccessor, IUsersService usersService, IDepartmentsService departmentsService, IDepartmentGroupsService departmentGroupsService, IUserProfileService userProfileService, IPermissionsService permissionsService, IPersonnelRolesService personnelRolesService, IClaimsRepository claimsRepository ) : base(userManager, roleManager, optionsAccessor) { _usersService = usersService; _departmentsService = departmentsService; _departmentGroupsService = departmentGroupsService; _userProfileService = userProfileService; _permissionsService = permissionsService; _personnelRolesService = personnelRolesService; _claimsRepository = claimsRepository; options = optionsAccessor.Value; }
public EditorStockViewModel(IGeoHelperService geoHelperService, IServicesService servicesServices, IStockService stockService, IPermissionsService permissionsService, IMvxNavigationService navigationService, IAuthService authService) { _navigationService = navigationService; _permissionsService = permissionsService; _stockService = stockService; PicCountryAndCityViewModel = new PicCountryAndCityViewModel(geoHelperService, authService); MyServicesViewModel = new MyServicesViewModel(servicesServices, authService); AddValidations(); }
public FileService(IOrderRepository orderRepository, IRealFileRepository realFileRepository, IMapper mapper, IPermissionsService permissionService, ILogService logService, IUserRepository userRepository, IUserService userService, IOrderService orderService, IHandler handler, IMemoryCache cache) { _orderRepository = orderRepository; _realFileRepository = realFileRepository; _mapper = mapper; _permissionService = permissionService; _logService = logService; _userRepository = userRepository; _userService = userService; _orderService = orderService; _handler = handler; _cache = cache; }
protected NewsServiceBase( IIntranetActivityRepository activityRepository, ICacheService cache, IIntranetMemberService <IntranetMember> intranetMemberService, IActivityTypeProvider activityTypeProvider, IIntranetMediaService intranetMediaService, IActivityLocationService activityLocationService, IActivityLinkPreviewService activityLinkPreviewService, IPermissionsService permissionsService, IGroupActivityService groupActivityService, IGroupService groupService) : base(activityRepository, cache, activityTypeProvider, intranetMediaService, activityLocationService, activityLinkPreviewService, intranetMemberService, permissionsService, groupActivityService, groupService) { _intranetMemberService = intranetMemberService; }
protected NewsControllerBase( IIntranetMemberService <IIntranetMember> intranetMemberService, INewsService <NewsBase> newsService, IMediaHelper mediaHelper, IActivityTypeProvider activityTypeProvider, IActivityLinkService activityLinkService, IContextTypeProvider contextTypeProvider, IPermissionsService permissionsService) : base(contextTypeProvider) { _intranetMemberService = intranetMemberService; _newsService = newsService; _mediaHelper = mediaHelper; _activityTypeProvider = activityTypeProvider; _activityLinkService = activityLinkService; _permissionsService = permissionsService; }
public GroupMembershipService(ILogger <GroupMembershipService> logger, ISystemClock systemClock, IGroupCommand groupCommand, IRolesCommand rolesCommand, IUserCommand userCommand, IPermissionsService permissionsService, IGroupMemberNotificationService groupMemberNotificationService) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _systemClock = systemClock ?? throw new ArgumentNullException(nameof(systemClock)); _groupCommand = groupCommand ?? throw new ArgumentNullException(nameof(groupCommand)); _rolesCommand = rolesCommand ?? throw new ArgumentNullException(nameof(rolesCommand)); _userCommand = userCommand ?? throw new ArgumentNullException(nameof(userCommand)); _permissionsService = permissionsService ?? throw new ArgumentNullException(nameof(permissionsService)); _groupMemberNotificationService = groupMemberNotificationService ?? throw new ArgumentNullException(nameof(groupMemberNotificationService)); }
public MediaRequireController( IMemberService MemberService , IGroupService GroupService , IDepartmentService DepartmentService , IPermissionsService PermissionsService , IMediaRequireService MediaRequireService , ICustomerCompanyService CustomerCompanyService ) { this.MemberService = MemberService; this.GroupService = GroupService; this.DepartmentService = DepartmentService; this.PermissionsService = PermissionsService; this.MediaRequireService = MediaRequireService; this.CustomerCompanyService = CustomerCompanyService; }
public ContactRequireController( IMemberService MemberService , IGroupService GroupService , IDepartmentService DepartmentService , IPermissionsService PermissionsService , IContactRequireService ContactRequireService , IContractInfoService ContractInfoService ) { this.MemberService = MemberService; this.GroupService = GroupService; this.DepartmentService = DepartmentService; this.PermissionsService = PermissionsService; this.ContactRequireService = ContactRequireService; this.ContractInfoService = ContractInfoService; }
public PermissionsViewModel() { _dialogs = new DialogObjects(); _dialogs.SetViewModel(this); _service = new PermissionsService(); SearchCmd = new DelegateCommand(OnSearchUser); MenuCmd = new DelegateCommand(OnSetUserPermissions); GetPermissionsReq = new GetPermissions(); SetPermissionsReq = new SetPermission(); SearchUser = string.Empty; SearchPermission = string.Empty; }
public UintraGroupsRoomPageViewModelConverter( IPermissionsService permissionsService, IFeedLinkService feedLinkService, INodeModelService nodeModelService, IGroupHelper groupHelper, IGroupService groupService, IErrorLinksService errorLinksService, IUBaselineRequestContext context) : base(errorLinksService) { _permissionsService = permissionsService; _feedLinkService = feedLinkService; _nodeModelService = nodeModelService; _groupHelper = groupHelper; _groupService = groupService; _context = context; }
#pragma warning disable 4014 public ArticleRepository(ISettingsRepository settingsRepository, IProgressService progressService, IStorageService storageService, ISqliteService sqliteService, IThemeRepository themeRepository, IImageDownloadService imageDownloadService, IPermissionsService permissionsService) { _settingsRepository = settingsRepository; _progressService = progressService; _storageService = storageService; _sqliteService = sqliteService; _themeRepository = themeRepository; _imageDownloadService = imageDownloadService; _permissionsService = permissionsService; _articleGenericRepository = new GenericRepository <ArticleModel, ArticleEntity>(_sqliteService); _imageContentGenericRepository = new GenericRepository <ImageContentModel, ImageContentEntity>(_sqliteService); _textContentGenericRepository = new GenericRepository <TextContentModel, TextContentEntity>(_sqliteService); _galleryContentGenericRepository = new GenericRepository <GalleryContentModel, GalleryContentEntity>(_sqliteService); Initialize(); }
#pragma warning disable 4014 public ArticleRepository(ISettingsRepository settingsRepository, IProgressService progressService, IStorageService storageService, ISqliteService sqliteService, IThemeRepository themeRepository, IImageDownloadService imageDownloadService, IPermissionsService permissionsService) { _settingsRepository = settingsRepository; _progressService = progressService; _storageService = storageService; _sqliteService = sqliteService; _themeRepository = themeRepository; _imageDownloadService = imageDownloadService; _permissionsService = permissionsService; _articleGenericRepository = new GenericRepository<ArticleModel, ArticleEntity>(_sqliteService); _imageContentGenericRepository = new GenericRepository<ImageContentModel, ImageContentEntity>(_sqliteService); _textContentGenericRepository = new GenericRepository<TextContentModel, TextContentEntity>(_sqliteService); _galleryContentGenericRepository = new GenericRepository<GalleryContentModel, GalleryContentEntity>(_sqliteService); Initialize(); }
public AdminUserService( IAdminUsersRepository adminUsersRepository, ICredentialsClient credentialsClient, ICustomerProfileClient customerProfileClient, IPermissionsService permissionsService, ILogFactory logFactory, INotificationsService notificationsService, IPermissionsCache permissionsCache) { _adminUsersRepository = adminUsersRepository; _credentialsClient = credentialsClient; _customerProfileClient = customerProfileClient; _permissionsService = permissionsService; _notificationsService = notificationsService; _permissionsCache = permissionsCache; _log = logFactory.CreateLog(this); }
public FileServerService(IOptionsSnapshot <FileServerTemplateUrlStrings> fileServerTemplateUrlStrings, IHttpClientFactory httpClientFactory, IPermissionsService permissionsService, ILogger <FileServerService> logger) { if (fileServerTemplateUrlStrings is null) { throw new ArgumentNullException(nameof(fileServerTemplateUrlStrings)); } if (logger is null) { throw new ArgumentNullException(nameof(logger)); } _fileServerPrimaryConnectionString = fileServerTemplateUrlStrings.Value.TemplateUrl; _fileServerFilePlaceHolderId = fileServerTemplateUrlStrings.Value.TemplateUrlFileIdPlaceholder; _permissionsService = permissionsService; _httpClientFactory = httpClientFactory; _logger = logger; }
public CalendarSettingsViewModel( IUserPreferences userPreferences, IInteractorFactory interactorFactory, IPermissionsService permissionsService) : base(userPreferences, interactorFactory) { Ensure.Argument.IsNotNull(userPreferences, nameof(userPreferences)); Ensure.Argument.IsNotNull(permissionsService, nameof(permissionsService)); this.userPreferences = userPreferences; this.permissionsService = permissionsService; RequestAccessAction = new UIAction(requestAccess); SelectCalendarAction .Elements .VoidSubscribe(onCalendarSelected); }
protected EventsControllerBase( IEventsService <EventBase> eventsService, IMediaHelper mediaHelper, IIntranetMemberService <IIntranetMember> intranetMemberService, IActivityTypeProvider activityTypeProvider, IActivityLinkService activityLinkService, IContextTypeProvider contextTypeProvider, IActivityPageHelperFactory activityPageHelperFactory, IPermissionsService permissionsService) : base(contextTypeProvider) { _eventsService = eventsService; _mediaHelper = mediaHelper; _intranetMemberService = intranetMemberService; _activityTypeProvider = activityTypeProvider; _activityLinkService = activityLinkService; _activityPageHelperFactory = activityPageHelperFactory; _permissionsService = permissionsService; }
public AuthorizationService(IDepartmentsService departmentsService, IInvitesService invitesService, ICallsService callsService, IMessageService messageService, IWorkLogsService workLogsService, ISubscriptionsService subscriptionsService, IDepartmentGroupsService departmentGroupsService, IPersonnelRolesService personnelRolesService, IUnitsService unitsService, IPermissionsService permissionsService, ICalendarService calendarService, IProtocolsService protocolsService) { _departmentsService = departmentsService; _invitesService = invitesService; _callsService = callsService; _messageService = messageService; _workLogsService = workLogsService; _subscriptionsService = subscriptionsService; _departmentGroupsService = departmentGroupsService; _personnelRolesService = personnelRolesService; _unitsService = unitsService; _permissionsService = permissionsService; _calendarService = calendarService; _protocolsService = protocolsService; }
public MappingController(IDepartmentSettingsService departmentSettingsService, IGeoLocationProvider geoLocationProvider, ICallsService callsService, IDepartmentsService departmentsService, IDepartmentGroupsService departmentGroupsService, IActionLogsService actionLogsService, IUnitsService unitsService, IMappingService mappingService, IKmlProvider kmlProvider, IPermissionsService permissionsService, IPersonnelRolesService personnelRolesService) { _departmentSettingsService = departmentSettingsService; _geoLocationProvider = geoLocationProvider; _callsService = callsService; _departmentsService = departmentsService; _departmentGroupsService = departmentGroupsService; _actionLogsService = actionLogsService; _unitsService = unitsService; _mappingService = mappingService; _kmlProvider = kmlProvider; _permissionsService = permissionsService; _personnelRolesService = personnelRolesService; }
public HuntViewModel(IPermissionsService permissionsService, INotificationHubService notificationHubService, IEntityAccessorService entityAccessorService) { this.permissionsService = permissionsService; this.notificationHubService = notificationHubService; this.entityAccessorService = entityAccessorService; this.notificationHubService.OnNewFrame += NewFrameIncoming; this.entityAccessorService.LogChanged += ScreenLogChanged; this.entityAccessorService.ObjectTracker.BboxChanged += ObjectTrackerBboxChanged; this.entityAccessorService.ObjectTracker.LogChanged += ScreenLogChanged; this.entityAccessorService.VehicleDetector.VehicleFound += VehicleDetectorVehicleFound; this.entityAccessorService.CarBBoxDetector.LogChanged += ScreenLogChanged; this.entityAccessorService.TopFeaturesDetector.LogChanged += ScreenLogChanged; Subscriptions.Add(Messenger.Subscribe <ChangeStateAppMessage>(msg => AppStateChanged(msg))); CreateItemsSource(); }
protected IntranetActivityService( IIntranetActivityRepository activityRepository, ICacheService cache, IActivityTypeProvider activityTypeProvider, IIntranetMediaService intranetMediaService, IActivityLocationService activityLocationService, IActivityLinkPreviewService activityLinkPreviewService, IIntranetMemberService <IIntranetMember> intranetMemberService, IPermissionsService permissionsService) { _activityRepository = activityRepository; _cache = cache; _activityTypeProvider = activityTypeProvider; _intranetMediaService = intranetMediaService; _activityLocationService = activityLocationService; _activityLinkPreviewService = activityLinkPreviewService; _intranetMemberService = intranetMemberService; _permissionsService = permissionsService; }
public BusinessmanProfileViewModel(IMvxLogProvider logProvider , IMvxNavigationService navigationService , IAuthService authService , IServicesService servicesService , IProfileService profileService , IPermissionsService permissionsService) : base(logProvider, navigationService) { _servicesService = servicesService; _profileService = profileService; _permissionsService = permissionsService; _authService = authService; User = _authService.User; _profileService.PortfolioChanged += ProfileServiceOnPortfolioChanged; _profileService.UserUpdated += (sender, args) => { LoadProfileTask = MvxNotifyTask.Create(LoadProfile); }; }
public RolesService( IAuditableActionsRepository auditableActionsRepository, ILogger <RolesService> logger, IMemoryCache memoryCache, IMessenger messenger, IPermissionsService permissionsService, IRolesRepository rolesRepository, ISystemClock systemClock, ITransactionScopeFactory transactionScopeFactory) { _auditableActionsRepository = auditableActionsRepository; _logger = logger; _memoryCache = memoryCache; _messenger = messenger; _permissionsService = permissionsService; _rolesRepository = rolesRepository; _systemClock = systemClock; _transactionScopeFactory = transactionScopeFactory; }
public NewsApiController( IIntranetMemberService <IntranetMember> intranetMemberService, INewsService <Entities.News> newsService, IMediaHelper mediaHelper, IGroupActivityService groupActivityService, IActivityTagsHelper activityTagsHelper, IActivityLinkService activityLinkService, IMentionService mentionService, IPermissionsService permissionsService) { _intranetMemberService = intranetMemberService; _newsService = newsService; _mediaHelper = mediaHelper; _groupActivityService = groupActivityService; _activityTagsHelper = activityTagsHelper; _activityLinkService = activityLinkService; _mentionService = mentionService; _permissionsService = permissionsService; }
protected NavigationControllerBase( ILeftSideNavigationModelBuilder leftSideNavigationModelBuilder, ISubNavigationModelBuilder subNavigationModelBuilder, ITopNavigationModelBuilder topNavigationModelBuilder, ISystemLinksModelBuilder systemLinksModelBuilder, IIntranetUserService <IIntranetUser> intranetUserService, IProfileLinkProvider profileLinkProvider, IPermissionsService permissionsService, IUserService userService) { _leftSideNavigationModelBuilder = leftSideNavigationModelBuilder; _subNavigationModelBuilder = subNavigationModelBuilder; _topNavigationModelBuilder = topNavigationModelBuilder; _systemLinksModelBuilder = systemLinksModelBuilder; _intranetUserService = intranetUserService; _profileLinkProvider = profileLinkProvider; _permissionsService = permissionsService; _userService = userService; }
private const long MaxFileSizeBytes = 5242880; // 5MB public AdminGroupService(ISystemClock systemClock, ILogger <AdminGroupService> logger, IPermissionsService permissionsService, IImageBlobStorageProvider blobStorageProvider, IFileTypeValidator fileTypeValidator, IGroupImageService imageService, IGroupCommand groupCommand, IHtmlSanitizer htmlSanitizer, IContentService contentService) { _systemClock = systemClock ?? throw new ArgumentNullException(nameof(systemClock)); _blobStorageProvider = blobStorageProvider ?? throw new ArgumentNullException(nameof(blobStorageProvider)); _permissionsService = permissionsService ?? throw new ArgumentNullException(nameof(permissionsService)); _fileTypeValidator = fileTypeValidator ?? throw new ArgumentNullException(nameof(fileTypeValidator)); _groupCommand = groupCommand ?? throw new ArgumentNullException(nameof(groupCommand)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _imageService = imageService ?? throw new ArgumentNullException(nameof(imageService)); _htmlSanitizer = htmlSanitizer ?? throw new ArgumentNullException(nameof(htmlSanitizer)); _contentService = contentService ?? throw new ArgumentNullException(nameof(contentService)); }
public Handler( IVmService vmService, IMapper mapper, IVsphereService vsphereService, ILogger <Get> logger, VsphereOptions vsphereOptions, IPrincipal user, IPlayerApiClient playerClient, IPlayerService playerService, IPermissionsService permissionsService) : base(mapper, vsphereService, playerService, user, permissionsService, vmService) { _vmService = vmService; _mapper = mapper; _vsphereService = vsphereService; _logger = logger; _vsphereOptions = vsphereOptions; _user = user as ClaimsPrincipal; _playerClient = playerClient; }
public CustomerController( ICustomerCompanyService CustomerCompanyService , IRelationCateService RelationCateService , ICustomerCateService CustomerCateService , ICityCateService CityCateService , IIndustryCateService IndustryCateService , ICustomerService CustomerService , IJobCateService JobCateService , IPermissionsService PermissionsService ) { this.CustomerCompanyService = CustomerCompanyService; this.RelationCateService = RelationCateService; this.CustomerCateService = CustomerCateService; this.CityCateService = CityCateService; this.IndustryCateService = IndustryCateService; this.CustomerService = CustomerService; this.JobCateService = JobCateService; this.PermissionsService = PermissionsService; }
public FileShareController( IMemberService MemberService , IGroupService GroupService , IDepartmentService DepartmentService , IJobTitleCateService JobTitleCateService , IRuleCateService RuleCateService , IFileShareService FileShareService , IFileCateService FileCateService , IPermissionsService PermissionsService ) { this.MemberService = MemberService; this.GroupService = GroupService; this.DepartmentService = DepartmentService; this.JobTitleCateService = JobTitleCateService; this.RuleCateService = RuleCateService; this.FileShareService = FileShareService; this.FileCateService = FileCateService; this.PermissionsService = PermissionsService; }
public EventsController( IEventsService <Event> eventsService, IMediaHelper mediaHelper, IIntranetMemberService <IntranetMember> intranetMemberService, IReminderService reminderService, IGroupActivityService groupActivityService, IActivityLinkService activityLinkService, IActivityTagsHelper activityTagsHelper, IMentionService mentionService, IPermissionsService permissionsService) { _eventsService = eventsService; _intranetMemberService = intranetMemberService; _reminderService = reminderService; _groupActivityService = groupActivityService; _activityLinkService = activityLinkService; _activityTagsHelper = activityTagsHelper; _mentionService = mentionService; _mediaHelper = mediaHelper; _permissionsService = permissionsService; }
public SettingsPageViewModel(ISettingsRepository settingsRepository, IArticleRepository articleRepository, IPlatformCodeService platformCodeService, IPermissionsService permissionsService) { _settingsRepository = settingsRepository; _articleRepository = articleRepository; _platformCodeService = platformCodeService; _permissionsService = permissionsService; Sources = _articleRepository.GetAllSources(); Settings = _settingsRepository.GetEditSettings(); foreach (var baseSettingModel in Settings) baseSettingModel.PropertyChanged += BaseSettingModelOnPropertyChanged; _saveCommand = new LoadingRelayCommand(Save, () => _anythingChanged, true); _switchFeedStatusCommand = new LoadingRelayCommand<FeedModel>(SwitchFeedStatus, f => true, true); _switchSourceStatusCommand = new LoadingRelayCommand<SourceModel>(SwitchSourceStatus, f => true, true); _resetApplicationCommand = new LoadingRelayCommand(ResetApplication, () => true, true); if (!IsInDesignMode) InitializeSettingsAsync(); }
public AdvancedPageViewModel(INavigationService navigationService, IPermissionsService permissionsService, IDialogService dialogService ) : base(navigationService, dialogService) { _permissionsService = permissionsService; Title = "高级设置"; //后台运行设置 this.BackgroundOperationCommand = ReactiveCommand.Create(() => { _permissionsService.BackgroundOperationSetting(); }); //电池优化设置 this.BatteryOptimizationCommand = ReactiveCommand.Create(() => { _permissionsService.BatteryOptimizationSetting(); }); }
public MainPageViewModel(IProgressService progressService, IArticleRepository articleRepository, ISettingsRepository settingsRepository, IHistoryNavigationService historyNavigationService, IDialogService dialogService, IPermissionsService permissionsService) { _articleRepository = articleRepository; _historyNavigationService = historyNavigationService; _permissionsService = permissionsService; _openSettingsCommand = new RelayCommand(OpenSettings); _openInfoCommand = new RelayCommand(OpenInfo); _refreshCommand = new LoadingRelayCommand(Refresh, () => _canRefresh, true); _selectArticleCommand = new RelayCommand<ArticleModel>(SelectArticle); _selectFeedCommand = new RelayCommand<FeedModel>(SelectFeed); _permissionsService.PermissionsChanged += PermissionsServiceOnPermissionsChanged; Sources = _articleRepository.GetActiveSources(); if (!IsInDesignMode) { Initialize(); } }
public MainPageViewModel(IProgressService progressService, IArticleRepository articleRepository, ISettingsRepository settingsRepository, IHistoryNavigationService historyNavigationService, IDialogService dialogService, IPermissionsService permissionsService) { _articleRepository = articleRepository; _historyNavigationService = historyNavigationService; _permissionsService = permissionsService; _openSettingsCommand = new RelayCommand(OpenSettings); _openInfoCommand = new RelayCommand(OpenInfo); _refreshCommand = new LoadingRelayCommand(Refresh, () => _canRefresh, true); _selectArticleCommand = new RelayCommand <ArticleModel>(SelectArticle); _selectFeedCommand = new RelayCommand <FeedModel>(SelectFeed); _permissionsService.PermissionsChanged += PermissionsServiceOnPermissionsChanged; Sources = _articleRepository.GetActiveSources(); if (!IsInDesignMode) { Initialize(); } }
public MessageController( ICustomerCompanyService CustomerCompanyService , IRelationCateService RelationCateService , ICustomerCateService CustomerCateService , ICityCateService CityCateService , IIndustryCateService IndustryCateService , ICustomerService CustomerService , IJobCateService JobCateService , ICustomerShareService CustomerShareService , IMemberService MemberService , IPermissionsService PermissionsService , IGroupService GroupService , IRolesService RolesService , INoticeService NoticeService , IRuleCateService RuleCateService , IPunishService PunishService , ITcNoticeService TcNoticeService , IDepartmentService DepartmentService ) { this.CustomerCompanyService = CustomerCompanyService; this.RelationCateService = RelationCateService; this.CustomerCateService = CustomerCateService; this.CityCateService = CityCateService; this.IndustryCateService = IndustryCateService; this.CustomerService = CustomerService; this.JobCateService = JobCateService; this.CustomerShareService = CustomerShareService; this.MemberService = MemberService; this.PermissionsService = PermissionsService; this.GroupService = GroupService; this.RolesService = RolesService; this.NoticeService = NoticeService; this.RuleCateService = RuleCateService; this.PunishService = PunishService; this.TcNoticeService = TcNoticeService; this.DepartmentService = DepartmentService; }
public PermissionsController(IRepository repository,IPermissionsService permissionsService,IAuthorizationRepository authorizationRepository) { _repository = repository; _permissionsService = permissionsService; _authorizationRepository = authorizationRepository; }
public AdministrationController(IPermissionsService permissionsService, IHostingEnvironment hostingEnv, IUserService userService) { _permissionsService = permissionsService; _userService = userService; _hostingEnv = hostingEnv; }
public WeatherRepository(IStorageService storageService, ISettingsRepository settingsRepository, IPermissionsService permissionsService) { _storageService = storageService; _settingsRepository = settingsRepository; _permissionsService = permissionsService; }
/// <summary> /// Initializes a new instance of the <see cref="AuthorizationService"/> class. /// </summary> /// <param name="permissionsService">The permissions service.</param> /// <param name="authorizationRepository">The authorization editing service.</param> public AuthorizationService(IPermissionsService permissionsService, IAuthorizationRepository authorizationRepository) { this.permissionsService = permissionsService; this.authorizationRepository = authorizationRepository; }
public AuthorizationService(AuthorizationDomainContext domainContext,IPermissionsService permissionsService) { DomainContext = domainContext; _permissionsService = permissionsService; }
private void SetupEntities() { user = new User {Name = "Ayende"}; account = new Account {Name = "south sand"}; session.Save(user); session.Save(account); authorizationService = ServiceLocator.Current.GetInstance<IAuthorizationService>(); permissionService = ServiceLocator.Current.GetInstance<IPermissionsService>(); permissionsBuilderService = ServiceLocator.Current.GetInstance<IPermissionsBuilderService>(); authorizationRepository = ServiceLocator.Current.GetInstance<IAuthorizationRepository>(); authorizationRepository.CreateUsersGroup("Administrators"); authorizationRepository.CreateEntitiesGroup("Important Accounts"); authorizationRepository.CreateOperation("/Account/Edit"); authorizationRepository.AssociateUserWith(user, "Administrators"); authorizationRepository.AssociateEntityWith(account, "Important Accounts"); }
public RolesService(IUnitOfWork db , IPermissionsService PermissionsService) { this.db = db; this.PermissionsService = PermissionsService; }
public PermissionConventions(DependencyObject view, IPermissionsService permissionService) { _view = view; _permissionsService = permissionService; }