Exemplo n.º 1
0
 public static void UpdateRoleGroup(RoleGroupInfo roleGroup, bool includeRoles)
 {
     provider.UpdateRoleGroup(roleGroup);
     EventLogController.Instance.AddLog(roleGroup, PortalController.Instance.GetCurrentPortalSettings(), UserController.Instance.GetCurrentUserInfo().UserID, string.Empty, EventLogController.EventLogType.USER_ROLE_UPDATED);
     if (includeRoles)
     {
         foreach (RoleInfo role in roleGroup.Roles.Values)
         {
             Instance.UpdateRole(role);
             EventLogController.Instance.AddLog(role, PortalController.Instance.GetCurrentPortalSettings(), UserController.Instance.GetCurrentUserInfo().UserID, string.Empty, EventLogController.EventLogType.ROLE_UPDATED);
         }
     }
 }
Exemplo n.º 2
0
        public static void UpdateRoleGroup(RoleGroupInfo roleGroup, bool includeRoles)
        {
            provider.UpdateRoleGroup(roleGroup);
            var objEventLog = new EventLogController();

            objEventLog.AddLog(roleGroup, PortalController.GetCurrentPortalSettings(), UserController.GetCurrentUserInfo().UserID, "", EventLogController.EventLogType.USER_ROLE_UPDATED);
            if (includeRoles)
            {
                foreach (RoleInfo role in roleGroup.Roles.Values)
                {
                    TestableRoleController.Instance.UpdateRole(role);
                    objEventLog.AddLog(role, PortalController.GetCurrentPortalSettings(), UserController.GetCurrentUserInfo().UserID, "", EventLogController.EventLogType.ROLE_UPDATED);
                }
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Updates a Role Group
 /// </summary>
 /// <param name="objRoleGroupInfo">The RoleGroup to Update</param>
 public static void UpdateRoleGroup(RoleGroupInfo objRoleGroupInfo)
 {
     provider.UpdateRoleGroup(objRoleGroupInfo);
 }