public Dictionary <Guid, QueryResponse> QueryDomains(string callingUrl) { using (GlymaNSApp.NodeServiceClient nodeServiceClient = new GlymaNSApp.NodeServiceClient(callingUrl)) { return(nodeServiceClient.QueryDomains(callingUrl)); } }
public Dictionary <Guid, QueryResponse> QueryDomains(string callingUrl) { using (GlymaNSApp.NodeServiceClient nodeServiceClient = new GlymaNSApp.NodeServiceClient(callingUrl)) { /// This method requires security trimming so there is no need to check authentication here. using (WebAppSPGlymaSession glymaSession = new WebAppSPGlymaSession(callingUrl)) { GlymaSessionConfiguration configuration = glymaSession.ExportGlymaSession(); Dictionary <Guid, QueryResponse> allDomains = nodeServiceClient.QueryDomains(configuration); GlymaSecurityTrimmer securityTrimmer = new GlymaSecurityTrimmer(glymaSession.Web, glymaSession); Dictionary <Guid, QueryResponse> authorisedDomains = securityTrimmer.TrimResponse(allDomains, SPGlymaRightFactory.Instance.ProjectReadRight); return(authorisedDomains); } } }
public Dictionary<Guid, QueryResponse> QueryDomains(string callingUrl) { using (GlymaNSApp.NodeServiceClient nodeServiceClient = new GlymaNSApp.NodeServiceClient(callingUrl)) { return nodeServiceClient.QueryDomains(callingUrl); } }
public Dictionary<Guid, QueryResponse> QueryDomains(string callingUrl) { using (GlymaNSApp.NodeServiceClient nodeServiceClient = new GlymaNSApp.NodeServiceClient(callingUrl)) { /// This method requires security trimming so there is no need to check authentication here. using (WebAppSPGlymaSession glymaSession = new WebAppSPGlymaSession(callingUrl)) { GlymaSessionConfiguration configuration = glymaSession.ExportGlymaSession(); Dictionary<Guid, QueryResponse> allDomains = nodeServiceClient.QueryDomains(configuration); GlymaSecurityTrimmer securityTrimmer = new GlymaSecurityTrimmer(glymaSession.Web, glymaSession); Dictionary<Guid, QueryResponse> authorisedDomains = securityTrimmer.TrimResponse(allDomains, SPGlymaRightFactory.Instance.ProjectReadRight); return authorisedDomains; } } }