42 references to EntitySetRights
System.Data.Services (42)
System\Data\Services\DataService.cs (5)
766DataServiceConfiguration.CheckResourceRights(lastSegmentContainer, EntitySetRights.WriteReplace); 770DataServiceConfiguration.CheckResourceRights(lastSegmentContainer, EntitySetRights.WriteMerge); 786DataServiceConfiguration.CheckResourceRights(lastSegmentContainer, EntitySetRights.WriteDelete); 1070DataServiceConfiguration.CheckResourceRights(description.LastSegmentInfo.TargetContainer, EntitySetRights.WriteAppend); 1184DataServiceConfiguration.CheckResourceRights(container, EntitySetRights.WriteDelete);
System\Data\Services\DataServiceConfiguration.cs (21)
61private EntitySetRights rightsForUnspecifiedResourceContainer; 74private Dictionary<string, EntitySetRights> resourceRights; 137this.resourceRights = new Dictionary<string, EntitySetRights>(EqualityComparer<string>.Default); 140this.rightsForUnspecifiedResourceContainer = EntitySetRights.None; 302public void SetEntitySetAccessRule(string name, EntitySetRights rights) 569internal static void CheckResourceRights(ResourceSetWrapper container, EntitySetRights requiredRights) 572Debug.Assert(requiredRights != EntitySetRights.None, "requiredRights != EntitySetRights.None"); 587EntitySetRights requiredRights = singleResult ? EntitySetRights.ReadSingle : EntitySetRights.ReadMultiple; 670EntitySetRights rights = configuration.GetResourceSetRights(container.ResourceSet); 673AppendRight(rights, EntitySetRights.ReadSingle, XmlConstants.HttpMethodGet, result); 674AppendRight(rights, EntitySetRights.WriteReplace, XmlConstants.HttpMethodPut, result); 677AppendRight(rights, EntitySetRights.WriteMerge, XmlConstants.HttpMethodMerge, result); 678AppendRight(rights, EntitySetRights.WriteDelete, XmlConstants.HttpMethodDelete, result); 683AppendRight(rights, EntitySetRights.ReadMultiple, XmlConstants.HttpMethodGet, result); 684AppendRight(rights, EntitySetRights.WriteAppend, XmlConstants.HttpMethodPost, result); 694internal EntitySetRights GetResourceSetRights(ResourceSet container) 699EntitySetRights result; 876private static void AppendRight(EntitySetRights entitySetRights, EntitySetRights test, string name, System.Text.StringBuilder builder)
System\Data\Services\IDataServiceConfiguration.cs (1)
89void SetEntitySetAccessRule(string name, EntitySetRights rights);
System\Data\Services\Providers\ObjectContextServiceProvider.cs (2)
815EntitySetRights containerRights = configuration.GetResourceSetRights(containerEntry.Value); 816EntitySetRights previouslyFoundContainerRights = configuration.GetResourceSetRights(previouslyFoundContainer);
System\Data\Services\Providers\ResourceContainerWrapper.cs (3)
40private EntitySetRights rights; 105return this.rights != EntitySetRights.None; 110public EntitySetRights Rights
System\Data\Services\Serializers\Deserializer.cs (6)
444DataServiceConfiguration.CheckResourceRights(entityContainer, EntitySetRights.WriteReplace); 448DataServiceConfiguration.CheckResourceRights(entityContainer, EntitySetRights.WriteMerge); 456DataServiceConfiguration.CheckResourceRights(entityContainer, EntitySetRights.WriteMerge | EntitySetRights.WriteReplace); 547DataServiceConfiguration.CheckResourceRights(segmentInfo.TargetContainer, EntitySetRights.ReadSingle); 745DataServiceConfiguration.CheckResourceRights(requestDescription.LastSegmentInfo.TargetContainer, EntitySetRights.WriteAppend);
System\Data\Services\Serializers\JsonDeserializer.cs (1)
476DataServiceConfiguration.CheckResourceRights(segmentInfo.TargetContainer, EntitySetRights.WriteAppend);
System\Data\Services\Serializers\SyndicationDeserializer.cs (1)
408DataServiceConfiguration.CheckResourceRights(segmentInfo.TargetContainer, EntitySetRights.WriteAppend);
System\Data\Services\WebUtil.cs (2)
233internal static void CheckResourceContainerRights(EntitySetRights rights, string parameterName) 235if (rights < 0 || rights > EntitySetRights.All)