예제 #1
0
 public AdminController(IUserProfileService userProfileService, IUserRoleService userRoleService, IRoleService roleService, IUserHubService userHubService, IHubService hubService)
 {
     _userProfileService = userProfileService;
     _userRoleService = userRoleService;
     _roleService = roleService;
     _userHubService = userHubService;
     _hubService = hubService;
 }
예제 #2
0
 public void Initialize()
 {
     this.UserRoleService = new UserRoleService(
         MockRepository.GenerateMock<IAuditService<UserRole, UserRoleAudit>>(),
         new FakeUserRoleRepository(),
         new FakeUserRoleRelationRepository()
     );
 }
예제 #3
0
        public RoleController(
			IAuditService<UserRole, UserRoleAudit> auditService,
			IUserService userService, 
			IUserRoleService userRoleService)
        {
            this.AuditService = auditService;
            this.UserService = userService;
            this.UserRoleService = userRoleService;
        }
예제 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ApplicationSession"/> class.
        /// </summary>
        /// <param name="userRoleService">The user role service.</param>
        /// <param name="userHostService">The user host service.</param>
        /// <param name="userRepository">The user repository.</param>
        public ApplicationSession(
			IUserRoleService userRoleService, 
			IUserHostService userHostService, 
			IRepository<User> userRepository)
        {
            this.UserRoleService = userRoleService;
            this.UserHostService = userHostService;
            this.UserRepository = userRepository;
        }
 public PermissionAuthorizeService(IUserRoleService userRole,
     IMvcRolePermissionService rolePermission,
     IMvcActionService action)
 {
     if (userRole == null)
     {
         throw new ArgumentNullException("userRoleService is null");
     }
     if (rolePermission == null)
     {
         throw new ArgumentNullException("rolePermissionService is null");
     }
     if (action == null)
     {
         throw new ArgumentNullException("actionService is null");
     }
     userRoleService = userRole;
     rolePermissionService = rolePermission;
     actionService = action;
 }
예제 #6
0
 public UserRolesController(IMapper mapper, IUserRoleService UserRoleService)
 {
     _mapper          = mapper;
     _userRoleService = UserRoleService;
 }
예제 #7
0
 public MembershipController(ICategoryService CategoryService, IMembershipService MembershipService, IUserService UserService, IRoleService RoleService, IUserRoleService UserRoleService, IFormService FormService, IRoleDetailService RoleDetailService)
     : base(UserService, RoleService, FormService, RoleDetailService, UserRoleService)
 {
     this._MembershipService = MembershipService;
     this._CategoryService   = CategoryService;
 }
예제 #8
0
 public LoginController(IConfiguration configuration, IUserService userService, IUserRoleService userRoleService)
 {
     _userService     = userService;
     _configuration   = configuration;
     _userRoleService = userRoleService;
 }
 public AdminStaffController(ICustomerService CustomerService, IUserService UserService, IFormService FormService, IRoleDetailService RoleDetailService, IRoleService RoleService, IUserRoleService UserRoleService, IAdminStaffService AdminStaffService)
     : base(CustomerService, UserService, RoleService, FormService, RoleDetailService, UserRoleService)
 {
     this._CustomerService   = CustomerService;
     this._UserService       = UserService;
     this._UserRoleService   = UserRoleService;
     this._AdminStaffService = AdminStaffService;
 }
예제 #10
0
        //  public IFormService _FormService { get; set; }

        public FormsController(IUserService UserService, IRoleService RoleService, IUserRoleService UserRoleService, IFormService FormService, IRoleDetailService RoleDetailService)
            : base(UserService, RoleService, FormService, RoleDetailService, UserRoleService)
        {
            this._FormService = FormService;
        }
예제 #11
0
 public RoleController(IRoleService _RoleService, IRoleMenuService _RoleMenuService, IMenuFunctionService _MenuFunctionService, IUserRoleService _UserRoleService)
 {
     this._RoleService         = _RoleService;
     this._RoleMenuService     = _RoleMenuService;
     this._MenuFunctionService = _MenuFunctionService;
     this._UserRoleService     = _UserRoleService;
 }
 public RegisterController(IUsersService usersService, IUserRoleService userRoleService)
 {
     _usersService    = usersService;
     _userRoleService = userRoleService;
 }
        /// <summary>
        /// 根据应用获取流程下一步节点列表
        /// </summary>
        /// <param name="runner">应用执行人</param>
        /// <param name="condition">条件</param>
        /// <returns></returns>
        public IList<NodeView> GetNextActivityTree(WfAppRunner runner, 
            IDictionary<string, string> condition = null,
            IUserRoleService roleService = null)
        {
            var tm = new TaskManager();
            var taskView = tm.GetTaskOfMine(runner.AppInstanceID, runner.ProcessGUID, runner.UserID);
            var processModel = new ProcessModel(taskView.ProcessGUID, taskView.Version);
            var nextSteps = processModel.GetNextActivityTree(taskView.ProcessInstanceID,
                taskView.ActivityGUID,
                condition,
                roleService);

            return nextSteps;
        }
 /// <summary>
 /// 简单模式:根据应用获取流程下一步节点(不考虑有多个后续节点的情况)
 /// </summary>
 /// <param name="taskID"></param>
 /// <param name="condition"></param>
 /// <param name="roleService"></param>
 /// <returns></returns>
 public NodeView GetNextActivity(int taskID,
     IDictionary<string, string> condition = null,
     IUserRoleService roleService = null)
 {
     NodeView nodeView = null;
     var list = GetNextActivityTree(taskID, condition, roleService).ToList();
     if (list != null && list.Count() > 0)
     {
         nodeView = list[0];
     }
     return nodeView;
 }
예제 #15
0
 public UserController(IUserService service, IUserRoleService userRoleService)
 {
     Service = service;
     UserRoleService = userRoleService;
 }
 public UserRoleController(IUserRoleService roleService)
 {
     _roleService = roleService;
 }
예제 #17
0
        /// <summary>
        /// 获取下一步活动节点树,供流转界面使用
        /// </summary>
        /// <param name="task"></param>
        /// <param name="condition"></param>
        /// <returns></returns>
        internal IList<NodeView> GetNextActivityTree(int processInstanceID,
            string currentActivityGUID, 
            IDictionary<string, string> condition,
            IUserRoleService roleService)
        {
            var treeNodeList = new List<NodeView>();
            var activity = GetActivity(currentActivityGUID);

            //判断有没有指定的跳转节点信息
            if (activity.ActivityTypeDetail.SkipInfo != null
                && activity.ActivityTypeDetail.SkipInfo.IsSkip == true)
            {
                //获取跳转节点信息
                var skipto = activity.ActivityTypeDetail.SkipInfo.Skipto;
                var skiptoActivity = GetActivity(skipto);

                treeNodeList.Add(new NodeView
                {
                     ActivityGUID = skiptoActivity.ActivityGUID,
                     ActivityName = skiptoActivity.ActivityName,
                     ActivityCode = skiptoActivity.ActivityCode,
                     Roles = GetActivityRoles(skiptoActivity.ActivityGUID),
                     Participants = GetActivityParticipants(skiptoActivity.ActivityGUID),
                     IsSkipTo = true
                });
            }
            else
            {
                //Transiton方式的流转定义
                var nextSteps = GetNextActivityList(activity.ActivityGUID, condition);

                foreach (var child in nextSteps.Root)
                {
                    if (child.HasChildren)
                    {
                        Tranverse(child, treeNodeList);
                    }
                    else
                    {
                        treeNodeList.Add(new NodeView
                        {
                            ActivityGUID = child.Activity.ActivityGUID,
                            ActivityName = child.Activity.ActivityName,
                            ActivityCode = child.Activity.ActivityCode,
                            Roles = GetActivityRoles(child.Activity.ActivityGUID),
                            Participants = GetActivityParticipants(child.Activity.ActivityGUID)
                        });
                    }
                }
            }

            return treeNodeList;
        }
예제 #18
0
 public UserRoleController(IApplicationService registry, IUserRoleService server)
 {
     Registry = registry ?? throw new ArgumentNullException(nameof(registry));
     Server   = server ?? throw new ArgumentNullException(nameof(server));
 }
예제 #19
0
 public SelfHostingOptionsFactory(IArgumentsService arguments, IUserRoleService userRoleService) : base(Constants.TlsAlpn01ChallengeType)
 {
     _arguments       = arguments;
     _userRoleService = userRoleService;
 }
        /// <summary>
        /// 获取下一步活动列表树
        /// </summary>
        /// <param name="taskID"></param>
        /// <returns></returns>
        public IList<NodeView> GetNextActivityTree(int taskID, 
            IDictionary<string, string> condition = null,
            IUserRoleService roleService = null)
        {
            var taskView = (new TaskManager()).GetTaskView(taskID);
            var processModel = new ProcessModel(taskView.ProcessGUID, taskView.Version);
            var nextSteps = processModel.GetNextActivityTree(taskView.ProcessInstanceID,
                taskView.ActivityGUID,
                condition,
                roleService);

            return nextSteps;
        }
예제 #21
0
 public RoleController(IUserRoleService userRoleService)
 {
     _userRoleService = userRoleService;
 }
 public BaseController(ICustomerService CustomerService, IUserService UserService, IRoleService RoleService, IFormService FormService, IRoleDetailService RoleDetailService, IUserRoleService UserRoleService)
 {
     this._UserService       = UserService;
     this._UserRoleService   = UserRoleService;
     this._RoleService       = RoleService;
     this._RoleDetailService = RoleDetailService;
     this._FormService       = FormService;
     this._CustomerService   = CustomerService;
 }
예제 #23
0
 private PerformerList GetPerformerList(IUserRoleService roleService,
     int processInstanceID,
     List<Role> roles)
 {
     if (roleService != null)
     {
         //读取外部组织关系数据
         return roleService.GetPerformerList(processInstanceID,
             roles);
     }
     else
     {
         return null;
     }
 }
 public CategoryController(ICustomerService CustomerService, IUserService UserService, IRoleService RoleService, IUserRoleService UserRoleService, IFormService FormService, IRoleDetailService RoleDetailService, ICategoryService CategoryService, ISubCategoryService SubCategoryService, ISupplierService SupplierService)
     : base(CustomerService, UserService, RoleService, FormService, RoleDetailService, UserRoleService)
 {
     this._CategoryService    = CategoryService;
     this._SubCategoryService = SubCategoryService;
     this._SupplierService    = SupplierService;
 }
 public UserRoleController(IUsersService usersService, IUserRoleService userRoleService, IRolesService rolesService)
 {
     _usersService    = usersService;
     _userRoleService = userRoleService;
     _rolesService    = rolesService;
 }
        public CustomerController(INotification Notification, IAgentService AgentService, IEventCustomerService EventCustomerService, IEventService EventService, ITipService TipService, IPropertyService PropertyService, IPropertyImageService PropertyImageService, IFeedBackService FeedBackService, ICompanyService CompanyService, ICountryService CountryService, IStateService StateService, ICityService CityService, IOfficeLocationService OfficeLocationService, ICustomerService CustomerService, IUserService UserService, IFormService FormService, IRoleDetailService RoleDetailService, IRoleService RoleService, IUserRoleService UserRoleService)
            : base(CustomerService, UserService, RoleService, FormService, RoleDetailService, UserRoleService)
        {
            this._Notification          = Notification;
            this._CustomerService       = CustomerService;
            this._UserService           = UserService;
            this._UserRoleService       = UserRoleService;
            this._OfficeLocationService = OfficeLocationService;
            this._CompanyService        = CompanyService;
            this._CountryService        = CountryService;
            this._StateService          = StateService;
            this._CityService           = CityService;

            this._AgentService         = AgentService;
            this._EventCustomerService = EventCustomerService;
            this._EventService         = EventService;
            this._CountryService       = CountryService;
            this._TipService           = TipService;
            this._PropertyService      = PropertyService;
            this._PropertyImageService = PropertyImageService;
        }
예제 #27
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="roleService"></param>
 public RoleController(IUserRoleService roleService)
     : base(roleService)
 {
 }
예제 #28
0
 public UserRoleEndpoint(ILogger logger, IUserRoleService server)
     : base(logger)
 {
     Server = server ?? throw new ArgumentNullException(nameof(server));
 }
예제 #29
0
 public RolesController(IRoleService roleSerivce, IUserRoleService userRoleService, IUserProfileService userProfileService)
     : base(userProfileService)
 {
     _roleService = roleSerivce;
     _userRoleService = userRoleService;
 }
예제 #30
0
 public UserRoleController(IUserRoleService userRoleService, RoleManager <UserRole> roleManager)
 {
     this.userRoleService = userRoleService;
     this.roleManager     = roleManager;
 }
예제 #31
0
 public RoleBLL(IRoleRightService _roleRightService, IUserRoleService _userRoleService)
 {
     roleRightService = _roleRightService;
     userRoleService  = _userRoleService;
 }
예제 #32
0
 public RoleService(IUserRoleService userRoleService)
 {
     _userRoleService = userRoleService;
 }
예제 #33
0
 public HomeController(IUserRoleService userRoleService)
 {
     this._userRoleService = userRoleService;
 }
예제 #34
0
 public RolesController(IRoleService roleSerivce, IUserRoleService userRoleService)
 {
     _roleService     = roleSerivce;
     _userRoleService = userRoleService;
 }
 public UserAuthorizationService(IUserRoleService userRoleService)
 {
     _userRoleService = userRoleService;
 }
예제 #36
0
 public AccountService(DbContextDTO dbContextDTO, IEmailService emailService, IMapper mapper, IUserRoleService userRoleService, IConfiguration configuration, IUserService userService)
 {
     _emailService    = emailService;
     _mapper          = mapper;
     _userService     = userService;
     _configuration   = configuration;
     _userRoleService = userRoleService;
     _dbContextDTO    = dbContextDTO;
     dbset            = dbContextDTO.Set <AppUserDTO>();
 }
 public UserRolesController(IUserRoleService userRoleService, IMapper mapper)
 {
     this.userRoleService = userRoleService;
     this.mapper          = mapper;
 }
 public AgencyController(IRequestService RequestService, ICategoryService CategoryService, ICustomerService CustomerServices,
                         IUserService UserService, IRoleService RoleService, IFormService FormService, IRoleDetailService RoleDetailService, IUserRoleService UserRoleService,
                         IAgencyIndividualService AgencyIndividualService, IAgencyJobService AgencyJobService, ICustomerLocationService CustomerLocationService, INotificationService NotificationService)
     : base(UserService, RoleService, FormService, RoleDetailService, UserRoleService)
 {
     this._CategoryService         = CategoryService;
     this._RequestService          = RequestService;
     this._UserRoleService         = UserRoleService;
     this._UserService             = UserService;
     this._CustomerService         = CustomerServices;
     this._AgencyIndividualService = AgencyIndividualService;
     this._AgencyJobService        = AgencyJobService;
     this._CustomerLocationService = CustomerLocationService;
     this._NotificationService     = NotificationService;
 }
예제 #39
0
 public ProductController(ICustomerService CustomerService, IUserService UserService, IRoleService RoleService, IUserRoleService UserRoleService, IFormService FormService, IRoleDetailService RoleDetailService, IProductService ProductService)
     : base(UserService, RoleService, FormService, RoleDetailService, UserRoleService)
 {
     this._CustomerService = CustomerService;
     //this._ClientService = ClientService;
     this._UserRoleService = UserRoleService;
     this._ProductService  = ProductService;
 }
예제 #40
0
 public UserRolesController(IUserRoleService userRoleService)
 {
     this.userRoleService = userRoleService;
 }
예제 #41
0
 public Yetkilendirme(IUserService userService,
                      IUserRoleService userRoleService)
 {
     _userService     = userService;
     _userRoleService = userRoleService;
 }
 public UserAdminController(IUserService userService, IUserRoleService roleService)
 {
     _userService = userService;
     _roleService = roleService;
 }
예제 #43
0
 public UserRoleController(IUserRoleService userRoleService, IDDService dDService)
 {
     UserRoleService = userRoleService;
     DDService       = dDService;
 }
 public AccountController(IUserService userService, IUserRoleService userRoleService)
 {
     _userService     = userService;
     _userRoleService = userRoleService;
 }