/// <summary> /// Initializes a new instance of the <see cref="ServiceCollectionBaseController"/> class. /// </summary> /// <param name="serviceCollectionService">The service collection service.</param> /// <param name="commonService">The common service.</param> /// <param name="serviceService">The service service.</param> /// <param name="userOrganizationService">The user organization service</param> /// <param name="settings">The settings.</param> /// <param name="logger">The logger.</param> /// <param name="versionNumber">Open api version.</param> public ServiceCollectionBaseController( IServiceCollectionService serviceCollectionService, ICommonService commonService, IServiceService serviceService, IUserOrganizationService userOrganizationService, IOptions <AppSettings> settings, ILogger logger, int versionNumber) : base(userOrganizationService, settings, logger) { this.serviceCollectionService = serviceCollectionService; this.commonService = commonService; this.serviceService = serviceService; this.userOrganizationService = userOrganizationService; pageSize = Settings.PageSize > 0 ? Settings.PageSize : 1000; this.versionNumber = versionNumber; }
public ServiceUtilities( IUserIdentification userIdentification, ILockingManager lockingManager, IContextManager contextManager, IUserOrganizationService userOrganizationService, IVersioningManager versioningManager, IUserInfoService userInfoService, IUserOrganizationChecker userOrganizationChecker) { this.userIdentification = userIdentification; this.lockingManager = lockingManager; this.contextManager = contextManager; this.userOrganizationService = userOrganizationService; this.versioningManager = versioningManager; this.userInfoService = userInfoService; this.userOrganizationChecker = userOrganizationChecker; }
/// <summary> /// Initializes a new instance of the <see cref="OrganizationBaseController"/> class. /// </summary> /// <param name="organizationService">The organization service.</param> /// <param name="codeService">The code service.</param> /// <param name="settings">The settings.</param> /// <param name="logger">The logger.</param> /// <param name="versionNumber">The version number.</param> /// <param name="commonService">The Common service.</param> /// <param name="userService">The user info service.</param> public OrganizationBaseController( IOrganizationService organizationService, ICodeService codeService, IOptions <AppSettings> settings, ILogger logger, ICommonService commonService, IUserOrganizationService userService, int versionNumber) : base(userService, settings, logger) { pageSize = Settings.PageSize > 0 ? Settings.PageSize : 1000; this.versionNumber = versionNumber; this.organizationService = organizationService; this.codeService = codeService; this.commonService = commonService; this.userService = userService; }
/// <summary> /// /// </summary> /// <param name="serviceAndChannelService">The service and channel service.</param> /// <param name="serviceService">The service service.</param> /// <param name="channelService">The channel service.</param> /// <param name="userOrganizationService">The user organization service</param> /// <param name="settings">The settings.</param> /// <param name="logger">The logger.</param> /// <param name="versionNumber">Open api version.</param> public ServiceAndChannelBaseController( IServiceAndChannelService serviceAndChannelService, IServiceService serviceService, IChannelService channelService, IUserOrganizationService userOrganizationService, IOptions <AppSettings> settings, ILogger logger, int versionNumber) : base(userOrganizationService, settings, logger) { this.serviceAndChannelService = serviceAndChannelService; this.serviceService = serviceService; this.channelService = channelService; this.userOrganizationService = userOrganizationService; this.versionNumber = versionNumber; }
public UserService( ISecurityService securityService, IUserRoleService userRoleService, IUserOrganizationService userOrganizationService, IRoleActionMasterService roleActionMasterService, IUserRepository userRepository, IUserPasswordRepository userPasswordRepository, IRoleActionOrganizationRepository roleActionOrganizationRepository) { _securityService = securityService; _userRoleService = userRoleService; _userOrganizationService = userOrganizationService; _roleActionMasterService = roleActionMasterService; _userRepository = userRepository; _userPasswordRepository = userPasswordRepository; _roleActionOrganizationRepository = roleActionOrganizationRepository; }
/// <summary> /// Initializes a new instance of the <see cref="V7CodeListController"/> class. /// </summary> /// <param name="commonService">The common service.</param> /// <param name="municipalityService">The municipality service.</param> /// <param name="countryService">The country service.</param> /// <param name="postalCodeService">The postal code service.</param> /// <param name="languageService">The language service.</param> /// <param name="userOrganizationService">The user organization service.</param> /// <param name="settings">The settings.</param> /// <param name="logger">The logger.</param> public V7CodeListController( ICommonService commonService, IMunicipalityService municipalityService, ICountryService countryService, IPostalCodeService postalCodeService, ILanguageService languageService, IUserOrganizationService userOrganizationService, IOptions <AppSettings> settings, ILogger <V7CodeListController> logger) : base(userOrganizationService, settings, logger) { this.commonService = commonService; this.municipalityService = municipalityService; this.countryService = countryService; this.postalCodeService = postalCodeService; this.languageService = languageService; pageSize = Settings.PageSize > 0 ? Settings.PageSize : 1000; }
public void TestInitialize() { _userRepository = Substitute.For <IUserRepository>(); _securityService = Substitute.For <ISecurityService>(); _roleActionOrganizationRepository = Substitute.For <IRoleActionOrganizationRepository>(); _userPasswordRepository = Substitute.For <IUserPasswordRepository>(); _roleActionMasterService = Substitute.For <IRoleActionMasterService>(); _userOrganizationService = Substitute.For <IUserOrganizationService>(); _userRoleService = Substitute.For <IUserRoleService>(); _userService = new UserService( _securityService, _userRoleService, _userOrganizationService, _roleActionMasterService, _userRepository, _userPasswordRepository, _roleActionOrganizationRepository); }
/// <summary> /// ServiceChannelController constructor. /// </summary> public ServiceChannelBaseController( IChannelService channelService, IOrganizationService organizationService, ICodeService codeService, IServiceService serviceService, IOptions <AppSettings> settings, ILogger logger, ICommonService commonService, int versionNumber, IUserOrganizationService userOrganizationService) : base(userOrganizationService, settings, logger) { this.channelService = channelService; this.organizationService = organizationService; this.codeService = codeService; this.serviceService = serviceService; pageSize = Settings.PageSize > 0 ? Settings.PageSize : 1000; this.versionNumber = versionNumber; this.commonService = commonService; }
/// <summary> /// Constructor of Common controller /// </summary> /// <param name="logger">logger commponent to support logging - injected by framework</param> /// <param name="addressService">address service responsible for operation related to addresses - injected by framework</param> /// <param name="serviceManager">manager responsible for wrapping of individual service call to UI output format - injected by framework</param> /// <param name="languageService">language service responsible for operation related to languages - injected by framework</param> /// <param name="commonService">common service responsible for operation related to common stuff - injected by framework</param> /// <param name="dialCodeService">dial code service responsible for operation related to dial codes - injected by framework</param> /// <param name="fintoService">finto service responsible for operation related to finto stuff - injected by framework</param> /// <param name="countryService">country service responsible for operation related to countries - injected by framework</param> /// <param name="userOrganizationService">user organization service - injected by framework</param> /// <param name="postalCodeService">postal code service responsible for operation related to postal codes - injected by framework</param> public RESTCommonController( ILogger <RESTCommonController> logger, IAddressService addressService, IServiceManager serviceManager, ILanguageService languageService, ICommonService commonService, IDialCodeService dialCodeService, IFintoService fintoService, ICountryService countryService, IUserOrganizationService userOrganizationService, IPostalCodeService postalCodeService) : base(logger) { this.addressService = addressService; this.serviceManager = serviceManager; this.languageService = languageService; this.commonService = commonService; this.fintoService = fintoService; this.dialCodeService = dialCodeService; this.countryService = countryService; this.userOrganizationService = userOrganizationService; this.postalCodeService = postalCodeService; }
/// <summary> /// BaseController constructor. /// </summary> public BaseController(IUserOrganizationService userOrganizationService, IOptions <AppSettings> settings, ILogger logger) { this.userOrganizationService = userOrganizationService; this.settings = settings.Value; this.logger = logger; }
public UserInfoService(IHttpContextAccessor ctxAccessor, UserRolesCache userRolesCache, IUserOrganizationService userOrganizationService, IContextManager contextManager) { this.ctxAccessor = ctxAccessor; this.userRolesCache = userRolesCache; this.userOrganizationService = userOrganizationService; this.contextManager = contextManager; }
public UserOrganizationChecker(IResolveManager resolveManager, IUserOrganizationService userOrganizationService) { this.resolveManager = resolveManager; this.userOrganizationService = userOrganizationService; }
public UserOrganizationsController(IUserOrganizationService _userOrganizationService) { userOrganizationService = _userOrganizationService; }
/// <summary> /// Initializes a new instance of the <see cref="UserOrganizationController"/> class. /// </summary> /// <param name="service"> /// UserOrganization service /// </param> public UserOrganizationController(IUserOrganizationService service) { _userOrganizationService = service; }
// private IEnumerable<Claim> GetClaims() // { // return ctxAccessor?.HttpContext?.User?.Claims; // } protected List <List <IUserOrganizationRoles> > GetUserCompleteOrgStructure(IUserOrganizationService userOrganizationService, IUnitOfWork unitOfWork) { return(userOrganizationService.GetUserCompleteOrgStructure(unitOfWork)); }