Ejemplo n.º 1
0
        /// <summary>
        /// Updates the user group.
        /// </summary>
        /// <returns><c>true</c>, if user group was updated, <c>false</c> otherwise.</returns>
        /// <param name="id">Identifier.</param>
        /// <param name="newGrpId">New group identifier.</param>
        public bool UserUpdateGroup(int id, int newGrpId)
        {
            bool result = false;
            XmlRpcUserManagement xrum = (XmlRpcUserManagement)GetProxy(typeof(XmlRpcUserManagement));
            Array openNebulaReturnArr = xrum.oneUserChangeGroup(this.SessionSHA, id, newGrpId);

            result = (bool)openNebulaReturnArr.GetValue(0);
            return(result);
        }