/// <summary> /// Process Request Override /// </summary> public override void ProcessRequest() { if (InputContext.ViewingUser == null || !InputContext.ViewingUser.IsEditor) { AddErrorXml("Unauthorised", "User not authorised", RootElement); return; } string groupName = String.Empty; if (InputContext.DoesParamExist("manage", "manage")) { groupName = InputContext.GetParamStringOrEmpty("manage", "manage"); } if ( groupName == String.Empty ) groupName = "moderator"; // Process Input var foundUserId = ProcessSubmission( groupName ); // Generate XML GenerateXml( groupName, foundUserId ); // Get a list of all the sites. SiteXmlBuilder siteXml = new SiteXmlBuilder(InputContext); RootElement.AppendChild(ImportNode(siteXml.GenerateSitesForUserAsEditorXml(InputContext.TheSiteList).FirstChild)); }
private void AddEditableSitesXML() { SiteXmlBuilder siteXml = new SiteXmlBuilder(InputContext); RootElement.AppendChild(ImportNode(siteXml.GenerateSitesForUserAsEditorXml(InputContext.TheSiteList, false, "EDITABLESITES").FirstChild)); }