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