Exemple #1
0
 public static void ActivateCompleted(
     string activatecode,
     string password,
     ref SystemCommon.Error error)
 {
     ManagerUser.getUserService()?.ActivateCompleted(activatecode, password, ref error);
 }
Exemple #2
0
        public static List <int> GetAllRoles()
        {
            List <int>   intList     = (List <int>)null;
            IUserService userService = ManagerUser.getUserService();

            if (userService != null)
            {
                intList = userService.GetAllRoles();
            }
            return(intList);
        }
Exemple #3
0
        public static List <string> GetPermissions(string moduleCode, List <int> roleIds)
        {
            List <string> stringList  = (List <string>)null;
            IUserService  userService = ManagerUser.getUserService();

            if (userService != null)
            {
                stringList = userService.GetPermissions(moduleCode, roleIds);
            }
            return(stringList);
        }
Exemple #4
0
        //public static void Register(
        //  IUserRegister user,
        //  ref SystemCommon.Error error,
        //  ref string activatecode)
        //{
        //    ManagerUser.getUserService()?.Register(user, ref error, ref activatecode);
        //}

        public static void Activate(string activatecode, ref SystemCommon.Error error)
        {
            ManagerUser.getUserService()?.Activate(activatecode, ref error);
        }
Exemple #5
0
 public static UserPrincipal GetUserPrincipal(UserPrincipal user)
 {
     return(ManagerUser.getUserService()?.GetUserPrincipal(user));
 }
Exemple #6
0
 public static UserPrincipal GetUserPrincipal(
     IUserLogin user,
     ref SystemCommon.Error error)
 {
     return(ManagerUser.getUserService()?.GetUserPrincipal(user, ref error));
 }
Exemple #7
0
        public static List <int> GetParentGroupIDs(List <int> groupIds)
        {
            IUserService userService = ManagerUser.getUserService();

            return(userService != null?userService.GetParentGroupIds(groupIds) : new List <int>());
        }