Пример #1
0
        /// <summary>
        /// Changes the template owner.
        /// </summary>
        /// <returns><c>true</c>, if template owner was changed, <c>false</c> otherwise.</returns>
        /// <param name="id">Identifier.</param>
        /// <param name="usrId">Usr identifier.</param>
        /// <param name="grpId">Group identifier.</param>
        public bool TemplateChangeOwner(int id, int usrId, int grpId)
        {
            bool result = false;
            XmlRpcTemplateManagement xrum = (XmlRpcTemplateManagement)GetProxy(typeof(XmlRpcTemplateManagement));
            Array openNebulaReturnArr     = xrum.oneTemplateChangeOwner(this.SessionSHA, id, usrId, grpId);

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