コード例 #1
0
 public RolePermissionController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                                 iPow.Infrastructure.Crosscutting.Authorize.IRoleService role,
                                 iPow.Infrastructure.Crosscutting.Authorize.IMvcActionService mvcAction,
                                 iPow.Infrastructure.Crosscutting.Authorize.IMvcControllerClassService mvcControllerClass,
                                 iPow.Infrastructure.Crosscutting.Authorize.IMvcControllerService mvcController,
                                 iPow.Infrastructure.Crosscutting.Authorize.IMvcRolePermissionService rolePermission)
 {
     if (role == null)
     {
         throw new ArgumentNullException("roleService is null");
     }
     if (mvcAction == null)
     {
         throw new ArgumentNullException("actionService is null");
     }
     if (mvcControllerClass == null)
     {
         throw new ArgumentNullException("actionService is null");
     }
     if (mvcController == null)
     {
         throw new ArgumentNullException("mvcControllerService is null");
     }
     if (rolePermission == null)
     {
         throw new ArgumentNullException("rolePermissionService is null");
     }
     roleService               = role;
     mvcActionService          = mvcAction;
     mvcControllerClassService = mvcControllerClass;
     mvcControllerService      = mvcController;
     mvcRolePermissionService  = rolePermission;
 }
コード例 #2
0
 public RolePermissionController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     iPow.Infrastructure.Crosscutting.Authorize.IRoleService role,
     iPow.Infrastructure.Crosscutting.Authorize.IMvcActionService mvcAction,
     iPow.Infrastructure.Crosscutting.Authorize.IMvcControllerClassService mvcControllerClass,
     iPow.Infrastructure.Crosscutting.Authorize.IMvcControllerService mvcController,
     iPow.Infrastructure.Crosscutting.Authorize.IMvcRolePermissionService rolePermission)
 {
     if (role == null)
     {
         throw new ArgumentNullException("roleService is null");
     }
     if (mvcAction == null)
     {
         throw new ArgumentNullException("actionService is null");
     }
     if (mvcControllerClass == null)
     {
         throw new ArgumentNullException("actionService is null");
     }
     if (mvcController == null)
     {
         throw new ArgumentNullException("mvcControllerService is null");
     }
     if (rolePermission == null)
     {
         throw new ArgumentNullException("rolePermissionService is null");
     }
     roleService = role;
     mvcActionService = mvcAction;
     mvcControllerClassService = mvcControllerClass;
     mvcControllerService = mvcController;
     mvcRolePermissionService = rolePermission;
 }
コード例 #3
0
 public ControllerClassController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
                                  iPow.Infrastructure.Crosscutting.Authorize.IMvcControllerClassService mvcControllerClass)
 {
     if (mvcControllerClass == null)
     {
         throw new ArgumentNullException("actionService is null");
     }
     mvcControllerClassService = mvcControllerClass;
 }
コード例 #4
0
 public ControllerClassController(iPow.Infrastructure.Crosscutting.NetFramework.IWorkContext work,
     iPow.Infrastructure.Crosscutting.Authorize.IMvcControllerClassService mvcControllerClass)
 {
     if (mvcControllerClass == null)
     {
         throw new ArgumentNullException("actionService is null");
     }
     mvcControllerClassService = mvcControllerClass;
 }