Beispiel #1
0
        private void addFolder(BsFolder f)
        {
            f.Id   = 0;
            f.User = usr;
            f.Name = "New Folder";
            f.SaveObject();
            f.Group.AddGroupsByFolder(usr.Groups, f);

            createPageXML();
            Response.Write("<return>");
            Response.Write(f.Id + "");
            Response.Write("</return>");

            Response.Write("<idParent>");
            Response.Write(f.IdParent + "");
            Response.Write("</idParent>");

            Response.Write("<idUser>");
            Response.Write(usr.Id + "");
            Response.Write("</idUser>");

            Response.Write("<countChild>");
            Response.Write(Business.BsFolder.CountChild(f, usr.Groups));
            Response.Write("</countChild>");
            closePageXML();
        }
Beispiel #2
0
        private void alterFolder(BsFolder f, string newName)
        {
            f.GetObject();

            f.Name = newName;
            f.SaveObject();

            createPageXML();
            Response.Write("<return>");
            Response.Write("1");
            Response.Write("</return>");
            closePageXML();
        }