Esempio n. 1
0
        public static void enumerateListPermissions(StreamWriter sw, WSSAuthentication.Authentication wssAuthentication, string url)
        {
            string listId = String.Empty;
            string listTitle = String.Empty;

            LMD.ListCheck.WS_List.Lists myservice = new LMD.ListCheck.WS_List.Lists();
            myservice.CookieContainer = wssAuthentication.CookieContainer;
            myservice.Url = url + "/_vti_bin/lists.asmx";

            sw.WriteLine("  List Permissions");

            try
            {

                System.Xml.XmlNode nodes = myservice.GetListCollection();

                foreach (System.Xml.XmlNode node in nodes)
                {
                    if (node.Name == "List")
                    {
                        listId = node.Attributes["ID"].Value;
                        listTitle = node.Attributes["Title"].Value;

                        if (listTitle != "Workflow Tasks" && listTitle != "Workflow History" && listTitle != "Documents" && listTitle != "Workflow Tasks" && listTitle != "Pages" && listTitle != "Master Page Gallery" && listTitle != "Images" && listTitle != "fpdatasources")
                        {
                            getListPermisions(sw, wssAuthentication, url, listTitle);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Console.Write(ex.Message);
            }
        }
Esempio n. 2
0
        public static void enumerateListsInWeb(StreamWriter sw, WSSAuthentication.Authentication wssAuthentication, string url)
        {
            string listId = String.Empty;
            string listTitle = String.Empty;

            LMD.ListCheck.WS_List.Lists myservice = new LMD.ListCheck.WS_List.Lists();
            myservice.CookieContainer = wssAuthentication.CookieContainer;
            myservice.Url = url + "/_vti_bin/lists.asmx";

            XmlNode ndLists = myservice.GetListCollection();

            foreach (System.Xml.XmlNode node in ndLists)
            {
                //if (node.Name == "List")
                //{

                    listId = node.Attributes["ID"].Value;
                    listTitle = node.Attributes["Title"].Value;

                    //sw.WriteLine("Url: " + url + ", List Title: " + listTitle);

                    enumerateListFields(sw, wssAuthentication, url, listId, listTitle);

                //}
            }
        }
Esempio n. 3
0
        public static void iterateThroughLists(StreamWriter sw, WSSAuthentication.Authentication wssAuthentication, string url, string internalName)
        {
            string listId = String.Empty;
            string listTitle = String.Empty;

            LMD.ListCheck.WS_List.Lists myservice = new LMD.ListCheck.WS_List.Lists();
            myservice.CookieContainer = wssAuthentication.CookieContainer;
            myservice.Url = url + "/_vti_bin/lists.asmx";

            XmlNode ndLists = myservice.GetListCollection();

            foreach (System.Xml.XmlNode node in ndLists)
            {
                if (node.Name == "List")
                {

                    listId = node.Attributes["ID"].Value;
                    listTitle = node.Attributes["Title"].Value;

                    getListFields(sw, wssAuthentication, url, listId, listTitle, internalName);

                }
            }
        }