public PhobosInitializationAttribute(IUserManagementService userMngSvc, INavigationService navSvc, INotificationService notificationService, IMessageService msgService)
 {
     this.userManagementService = userMngSvc;
     this.navigationService = navSvc;
     this.notificationService = notificationService;
     this.msgService = msgService;
 }
Ejemplo n.º 2
0
 public UserModify(IUserManagementService userservice, IDepartmentManagementService deparservice, ICompanyManagementService companyservice, ISysUserManagementService sysUserManagementService)
 {
     _userService = userservice;
     _deparService = deparservice;
     _companyService = companyservice;
     _sysUserManagementService = sysUserManagementService;
 }
Ejemplo n.º 3
0
 public UserAdd(IUserManagementService userservice, IDepartmentManagementService deparservice, ICompanyManagementService companyservice, ISysUserManagementService SysUserManagementService)
 {
     _userService = userservice;
     _deparService = deparservice;
     _companyService = companyservice;
     _SysUserManagementService = SysUserManagementService;
 }
        public GroupManagementService(IGroupRepository groupRepository, IUserManagementService userManagementService)
        {
            Check.Require(groupRepository != null, "groupRepository may not be null");
            Check.Require(userManagementService != null, "userManagementService may not be null");

            this.groupRepository = groupRepository;
            this.userManagementService = userManagementService;
        }
Ejemplo n.º 5
0
 public AddressBookDetails(IAddressBookManagementService addressservice, IDepartmentManagementService departmentservice, ICountryCodeManagementService countryservice, IRegionCodeManagementService regionservice, IUserManagementService userService, ISysUserManagementService sysUserManagementService)
 {
     _countryservice = countryservice;
     _regionservice = regionservice;
     _departmentservice = departmentservice;
     _userService = userService;
     _AddressBookService = addressservice;
     _sysUserManagementService = sysUserManagementService;
 }
Ejemplo n.º 6
0
 public MessageController(
     IMessageService messageService,
     IUserManagementService userManagementService,
     IAuditTrailService auditTrailService)
 {
     this.userManagementService = userManagementService;
     this.messageService = messageService;
     this.auditTrailService = auditTrailService;
 }
 public CommentsController(ICommentsService comments, IVideoCatalogService videoCatalog, IUserManagementService userManagement)
 {
     if (comments == null) throw new ArgumentNullException("comments");
     if (videoCatalog == null) throw new ArgumentNullException("videoCatalog");
     if (userManagement == null) throw new ArgumentNullException("userManagement");
     _comments = comments;
     _videoCatalog = videoCatalog;
     _userManagement = userManagement;
 }
 public SearchController(ISearchVideos searchService, IUserManagementService userManagement, IStatisticsService stats)
 {
     if (searchService == null) throw new ArgumentNullException("searchService");
     if (userManagement == null) throw new ArgumentNullException("userManagement");
     if (stats == null) throw new ArgumentNullException("stats");
     _searchService = searchService;
     _userManagement = userManagement;
     _stats = stats;
 }
Ejemplo n.º 9
0
 public AddressBookAdd(ICompanyManagementService companyservice, ICountryCodeManagementService countryservice, IRegionCodeManagementService regionservice, IDepartmentManagementService departmentservice, IAddressBookManagementService addressbookservice, IUserManagementService userservice, ISysUserManagementService sysUserManagementService)
 {
     _departmentservice = departmentservice;
     _addressbookservice = addressbookservice;
     _countryservice = countryservice;
     _regionservice = regionservice;
     _userService = userservice;
     _companyService = companyservice;
     _sysUserManagementService = sysUserManagementService;
 }
 public VideosController(IVideoCatalogService videoCatalog, IUserManagementService userManagement, IStatisticsService stats,
                         IRatingsService ratings, ISuggestVideos suggestions)
 {
     if (videoCatalog == null) throw new ArgumentNullException("videoCatalog");
     if (userManagement == null) throw new ArgumentNullException("userManagement");
     if (stats == null) throw new ArgumentNullException("stats");
     if (ratings == null) throw new ArgumentNullException("ratings");
     if (suggestions == null) throw new ArgumentNullException("suggestions");
     _videoCatalog = videoCatalog;
     _userManagement = userManagement;
     _stats = stats;
     _ratings = ratings;
     _suggestions = suggestions;
 }
Ejemplo n.º 11
0
 public AccountController(IUserManagementService userManagement)
 {
     if (userManagement == null) throw new ArgumentNullException("userManagement");
     _userManagement = userManagement;
 }
Ejemplo n.º 12
0
 public AccountController()
 {
     userManagementService = new UserManagementService();
 }
Ejemplo n.º 13
0
 public UserDetails(IDepartmentManagementService deparService, IUserManagementService userService, ISysUserManagementService SysUserManagementService)
 {
     _deparService = deparService;
     _userService = userService;
     _SysUserManagementService = SysUserManagementService;
 }
 public UserCommentController(IAccessTokenService <UserAccessTokenPayload> accessTokenService,
                              IUserManagementService userManagementService, IPostsManagementService postsManagementService) : base(accessTokenService, userManagementService)
 {
     _postsManagementService = postsManagementService;
 }
Ejemplo n.º 15
0
 public UsersController(IUserManagementService userManagementService)
 {
     _userManagementService = userManagementService;
 }
Ejemplo n.º 16
0
        public UsersController(IUserManagementService userManagementService)
        {
            Check.Require(userManagementService != null, "userRepository may not be null");

            this.userManagementService = userManagementService;
        }
Ejemplo n.º 17
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="procedurecodeService"></param>
 /// <param name="userManagementService"></param>
 /// <param name="configurationService"></param>
 public CommonController(ICommonService procedurecodeService, IUserManagementService userManagementService, IConfigurationService configurationService)
 {
     _procedureCodeService  = procedurecodeService;
     _userManagementService = userManagementService;
     _configurationService  = configurationService;
 }
Ejemplo n.º 18
0
 public TokenAuthenticationService(IUserManagementService service, IOptions <TokenManagement> tokenManagement, IUnitOfWork uow)
 {
     _userManagementService = service;
     _tokenManagement       = tokenManagement.Value;
     _uow = uow;
 }
Ejemplo n.º 19
0
 protected SiteControllerBase()
 {
     UserManager = DependencyResolver.Current.GetService <IUserManagementService>();
 }
Ejemplo n.º 20
0
 public UsersController(
     RocketUserManager rocketUserManagerService, RockeRoleManager rolemanager, IUserManagementService userNativeManagementService, IGeneratorConfirmationLink generatorConfirmationLink)
 {
     _rocketUserManagerService = rocketUserManagerService;
     _rolemanager               = rolemanager;
     _userManagementService     = userNativeManagementService;
     _generatorConfirmationLink = generatorConfirmationLink;
 }
Ejemplo n.º 21
0
 public UserManagementController(IContentRepository contentRepository,
                                 IUserManagementService usersManagementService, IOrganizationUserRepository orgUserRepo)
 {
     _usersManagementService = usersManagementService;
     _orgUserRepo            = orgUserRepo;
 }
Ejemplo n.º 22
0
 // injects the services into the controller
 public SensorStickController(ApplicationContext applicationContext, IUserManagementService userManagementService)
 {
     _applicationContext    = applicationContext;
     _userManagementService = userManagementService;
 }
 public UserInvitesController(IUserManagementService userManagementService,
                              IReleaseInviteService releaseInviteService)
 {
     _userManagementService = userManagementService;
     _releaseInviteService  = releaseInviteService;
 }
 public UsersController(IUserManagementService userManagementService)
     : base(userManagementService)
 {
 }
Ejemplo n.º 25
0
 public AuthController(IJwtService service, IUserManagementService userManagementService)
 {
     _service = service;
     _userManagementService = userManagementService;
 }
Ejemplo n.º 26
0
 public PasswordEncryptionManager(IHashAlgorithmProvider hashAlgorithmProvider, IUserManagementService userManagementService)
 {
     _hashAlgorithmProvider = hashAlgorithmProvider;
     _userManagementService = userManagementService;
 }
Ejemplo n.º 27
0
 public UserManagementController(IUserManagementService userService, ILogManagementService logService)
 {
     this.userService = userService;
     this.logService = logService;
 }
 public NotificationContoller(IMobileMessagingClient mobileMessagingClient, IDatabaseEngine databaseEngine, IUserManagementService userEngine, INotificationService notificationEngine)
 {
     _mobileMessagingClient = mobileMessagingClient;
     _databaseEngine        = databaseEngine;
     _notificationService   = notificationEngine;
     _userService           = userEngine;
 }
Ejemplo n.º 29
0
 public InternalSearchController(ICustomerSupportRepository customerSupportRepo, IContentRepository contentRepo, IUserManagementService userManagementService)
 {
     _customerSupportRepo   = customerSupportRepo;
     _contentRepo           = contentRepo;
     _userManagementService = userManagementService;
 }
Ejemplo n.º 30
0
 public CommentsController(ICommentsService comments, IVideoCatalogService videoCatalog, IUserManagementService userManagement)
 {
     if (comments == null)
     {
         throw new ArgumentNullException("comments");
     }
     if (videoCatalog == null)
     {
         throw new ArgumentNullException("videoCatalog");
     }
     if (userManagement == null)
     {
         throw new ArgumentNullException("userManagement");
     }
     _comments       = comments;
     _videoCatalog   = videoCatalog;
     _userManagement = userManagement;
 }
Ejemplo n.º 31
0
 public SearchTransportController(ISearchTransportRepository searchTransportRepository,
                                  IUserManagementService usersManagementService)
 {
     _searchTransportRepository = searchTransportRepository;
     _usersManagementService    = usersManagementService;
 }
Ejemplo n.º 32
0
        static void Main(string[] args)
        {
            IKernel kernel = FactoryDependency.GetKernel();

            IUserManagementService    userservice    = kernel.Get <IUserManagementService>();
            IProjectManagementService projectservice = kernel.Get <IProjectManagementService>();

            UserManagementServiceClient    clientUser    = null;
            ProjectManagementServiceClient clientProject = null;

            try
            {
                clientUser    = new UserManagementServiceClient("BasicHttpBinding_IUserManagementService");
                clientProject = new ProjectManagementServiceClient("BasicHttpBinding_IProjectManagementService");

                UserWorkflow    workflow        = new UserWorkflow(clientUser);
                ProjectWorkflow projectWorkflow = new ProjectWorkflow(clientProject);

                bool exit = false;

                do
                {
                    System.Console.Clear();
                    System.Console.WriteLine("[1] Create user");
                    System.Console.WriteLine("[2] Read user");
                    System.Console.WriteLine("[3] Update user");
                    System.Console.WriteLine("[4] Delete user");
                    System.Console.WriteLine("[5] Create project");
                    System.Console.WriteLine("[6] Get All projects");
                    System.Console.WriteLine("[0] Exit");
                    System.Console.Write("What do you want to do?:");

                    string opt = System.Console.ReadLine();

                    switch (opt)
                    {
                    case "0":
                        exit = true;
                        break;

                    case "1":
                        //client.Open();
                        workflow.CreateUser();
                        //client.Close();
                        break;

                    case "2":
                        //client.Open();
                        workflow.ReadUser();
                        //client.Close();
                        break;

                    case "3":
                        //client.Open();
                        workflow.UpdateUser();
                        //client.Close();
                        break;

                    case "4":
                        //client.Open();
                        workflow.Delete();
                        //client.Close();
                        break;

                    case "5":
                        projectWorkflow.Create();
                        break;

                    case "6":
                        projectWorkflow.GetAll();
                        break;
                    }

                    System.Console.Write("Continue...");
                    System.Console.ReadKey();
                } while (!exit);
            }
            finally
            {
                if (clientUser != null && clientUser.State == CommunicationState.Opened)
                {
                    clientUser.Close();
                }

                if (clientProject != null && clientProject.State == CommunicationState.Opened)
                {
                    clientProject.Close();
                }
            }
        }
Ejemplo n.º 33
0
        public UserManagementAPIController()
        {
            UserManagementServiceFactory umsFactory = new UserManagementServiceFactory();

            _userManagementService = umsFactory.GetUserManagementService();
        }
Ejemplo n.º 34
0
 public Handler(IUserSearchService userSearchService, IUserManagementService userManagementService, ILogger <Handler> logger)
 {
     _userSearchService     = userSearchService ?? throw new ArgumentNullException(nameof(userSearchService));
     _userManagementService = userManagementService ?? throw new ArgumentNullException(nameof(userManagementService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TokenAuthenticationService"/> class.
 /// </summary>
 /// <param name="service">
 /// The service.
 /// </param>
 /// <param name="tokenManagement">
 /// The token management.
 /// </param>
 public TokenAuthenticationService(IUserManagementService service, IOptions <TokenManagement> tokenManagement)
 {
     this.userManagementService = service;
     this.tokenManagement       = tokenManagement.Value;
 }
Ejemplo n.º 36
0
 public AccountController(IUserManagementService usrMngSvc, IAuthenticationService authSvc,IAuditTrailService auditTrailService)
 {
     this.userManagementService = usrMngSvc;
     this.AuthenticationService = authSvc;
     this.auditTrailService = auditTrailService;
 }
Ejemplo n.º 37
0
 public NewsService(IContentRepository contentRepository, IUserManagementService userManagementService, IOrganizationUserRepository organizationRepo)
 {
     _contentRepository     = contentRepository;
     _userManagementService = userManagementService;
     _organizationRepo      = organizationRepo;
 }
 public UserController(IUserManagementService userManagement)
 {
     this.userManagement = userManagement;
 }
Ejemplo n.º 39
0
 public UsersController(IUnitOfWork unitOfWork, IUserRepositoryService userRepositoryService, ITokenProvider tokenProvider, IUserManagementService userManagementService, IRentBookRepositoryService rentBookRepositoryService)
 {
     this.unitOfWork                = unitOfWork;
     this.userRepositoryService     = userRepositoryService;
     this.tokenProvider             = tokenProvider;
     this.userManagementService     = userManagementService;
     this.rentBookRepositoryService = rentBookRepositoryService;
 }
Ejemplo n.º 40
0
 public HomeController(IUserManagementService userService)
 {
     _userService = userService;
 }
Ejemplo n.º 41
0
 // Used Dependency Injection here to intiate UserManagementService
 // I have used Unity and check UnityConfig
 public UserManagementController(IUserManagementService _userManagementService)
 {
     userManagementService = _userManagementService;
 }
Ejemplo n.º 42
0
 public PublicRegistrationController(ISha512Service sha512Service, IUserManagementService userManagementService)
 {
     _sha512Service         = sha512Service;
     _userManagementService = userManagementService;
 }
Ejemplo n.º 43
0
        public void Initialize()
        {
            var kernel = MvcApplication.GetKernel();
            bool isLocal = bool.Parse(ConfigurationManager.AppSettings["UseDatabaseToTest"]); ;

            if (!isLocal)
            {
                kernel.Rebind<IUserManagementRepo>().To<MockedUserManagementRepo>();
                kernel.Rebind<INotificationRepo>().To<MockedUserManagementRepo>();
                kernel.Rebind<IMessageRepo>().To<MockedUserManagementRepo>();
                kernel.Rebind<ICoreRepo>().To<MockedUserManagementRepo>();
            }

            usrMngSvc = kernel.Get<IUserManagementService>();
            msgSvc = kernel.Get<IMessageService>();
            notificatioSvc = kernel.Get<INotificationService>();
            navigationService = kernel.Get<INavigationService>();

            var coreRepo = kernel.Get<ICoreRepo>();
            coreRepo.AddConfiguration("PasswordSalt", "Phobos");
        }
Ejemplo n.º 44
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="reportService"></param>
 public ReportController(IReportService reportService, IReportPrintService reportPrintService,
                         IRegistrationService registrationService, IConfigurationService configurationService, IUserManagementService userManagementService,
                         ICommonService commonService, IReportLockService reportLockService, IReportTemplateService reportTemplateService
                         )
 {
     _ReportService         = reportService;
     _ReportPrintService    = reportPrintService;
     _ReportLockService     = reportLockService;
     _ReportTemplateService = reportTemplateService;
     _RegistrationService   = registrationService;
     _ConfigurationService  = configurationService;
     _userManagementService = userManagementService;
     _CommonService         = commonService;
 }
Ejemplo n.º 45
0
 public UserController(IUserManagementService userManagementService)
 {
     UserManagementService = userManagementService;
 }
 public SecurityService(IUserManagementService userManagementService)
 {
     _userManagementService = userManagementService;
 }
Ejemplo n.º 47
0
 public AccountController(IUserManagementService userLogic)
 {
     _userManagementService = userLogic;
 }
Ejemplo n.º 48
0
 protected SiteControllerBase(IUserManagementService userManager)
 {
     UserManager = userManager;
 }