Implementation for user account management. This service allows the creation and management of user accounts, authenticates users through username/password combination, encrypts password(s) and perform user account managment functions (change password, reset password and enable/disable) user accounts.
Inheritance: IUserAccountService
        public WoredaStockDistributionController(
            IUtilizationHeaderSerivce utilizationService,
            IProgramService programService,
            IUtilizationDetailSerivce utilizationDetailSerivce, 
            UserAccountService userAccountService,
            ICommonService commonService, 
            IRegionalRequestService regionalRequestService,
            IReliefRequisitionDetailService reliefRequisitionDetailService,
            IReliefRequisitionService reliefRequisitionService,

            ITransactionService transactionService, IDispatchService dispatchService, IDeliveryService deliveryService, ILossReasonService lossReasonService, IPlanService planService, IAdminUnitService adminUnitService)
        {
            _utilizationService = utilizationService;
            _programService = programService;
            _utilizationDetailSerivce = utilizationDetailSerivce;
            _userAccountService = userAccountService;
            _commonService = commonService;
            _regionalRequestService = regionalRequestService;
            _reliefRequisitionDetailService = reliefRequisitionDetailService;
            _reliefRequisitionService = reliefRequisitionService;
            _transactionService = transactionService;
            _dispatchService = dispatchService;
            _deliveryService = deliveryService;
            _lossReasonService = lossReasonService;
            _planService = planService;
            _adminUnitService = adminUnitService;
        }
Example #2
0
 // TODO: Remember to refactor code!!!
 public UserIdentity(int userId, UserAccountService service, UserInfo userInfo, string store, string application)
 {
     //Assign the incoming user name to the current one and clear the roles collection
     var user = service.GetUserDetail(userId);
     this.userName = user.UserName;
     this._profile = userInfo;
     this.roles.Clear();
     authenticated = true;
     /* Retrive the list of all authorized Tasks and Operations from NetSqlAzMan database
      * and persist it with the roles arraylist collection
      */
     roles.AddRange(service.GetUserPermissions(userInfo.UserName, "CATS", application));
 }
Example #3
0
        // TODO: Remember to refactor code!!!
        public UserIdentity(int userId, UserAccountService service, UserInfo userInfo, string store, string application)
        {
            //Assign the incoming user name to the current one and clear the roles collection
            var user = service.GetUserDetail(userId);

            this.userName = user.UserName;
            this._profile = userInfo;
            this.roles.Clear();
            authenticated = true;

            /* Retrive the list of all authorized Tasks and Operations from NetSqlAzMan database
             * and persist it with the roles arraylist collection
             */
            roles.AddRange(service.GetUserPermissions(userInfo.UserName, "CATS", application));
        }
 public WoredaStockDistributionController(
     IUtilizationHeaderSerivce utilizationService,
     IUtilizationDetailSerivce utilizationDetailSerivce, 
     UserAccountService userAccountService,
     ICommonService commonService, 
     IRegionalRequestService regionalRequestService,
     IReliefRequisitionDetailService reliefRequisitionDetailService,
     IReliefRequisitionService reliefRequisitionService,
     ITransactionService transactionService)
 {
     _utilizationService = utilizationService;
     _utilizationDetailSerivce = utilizationDetailSerivce;
     _userAccountService = userAccountService;
     _commonService = commonService;
     _regionalRequestService = regionalRequestService;
     _reliefRequisitionDetailService = reliefRequisitionDetailService;
     _reliefRequisitionService = reliefRequisitionService;
     _transactionService = transactionService;
 }