private ContentReference CreateRootFolder(string rootName, Guid rootGuid) { _contentRootService.Register <ContentFolder>(rootName, rootGuid, ContentReference.RootPage); var fieldRoot = _contentRootService.Get(rootName); var securityDescriptor = _contentSecurityRepository.Get(fieldRoot).CreateWritableClone() as IContentSecurityDescriptor; if (securityDescriptor != null) { securityDescriptor.IsInherited = false; var everyoneEntry = securityDescriptor.Entries.FirstOrDefault(e => e.Name.Equals("everyone", StringComparison.InvariantCultureIgnoreCase)); if (everyoneEntry != null) { securityDescriptor.RemoveEntry(everyoneEntry); _contentSecurityRepository.Save(fieldRoot, securityDescriptor, SecuritySaveType.Replace); } } return(fieldRoot); }
public PeopleContentRepositoryDescriptor(ContentRootService contentRootService) { _root = contentRootService.Get("People"); }