Beispiel #1
0
 /// <summary>
 /// Creates a new Request using the parameters specified.
 /// </summary>
 /// <param name="subjects">The subjects list.</param>
 /// <param name="resources">The resource requested</param>
 /// <param name="action">The action requested.</param>
 /// <param name="environment">Any environment attribute part of the request.</param>
 /// <param name="schemaVersion">The version of the schema that was used to validate.</param>
 public RequestElementReadWrite(SubjectReadWriteCollection subjects, ResourceReadWriteCollection resources, ActionElementReadWrite action, EnvironmentElementReadWrite environment, XacmlVersion schemaVersion)
     : base(XacmlSchema.Context, schemaVersion)
 {
     _subjects    = subjects;
     _resources   = resources;
     _action      = action;
     _environment = environment;
 }
 /// <summary>
 /// Creates a new Request using the parameters specified.
 /// </summary>
 /// <param name="subjects">The subjects list.</param>
 /// <param name="resources">The resource requested</param>
 /// <param name="action">The action requested.</param>
 /// <param name="environment">Any environment attribute part of the request.</param>
 /// <param name="schemaVersion">The version of the schema that was used to validate.</param>
 public RequestElementReadWrite(SubjectReadWriteCollection subjects, ResourceReadWriteCollection resources, ActionElementReadWrite action, EnvironmentElementReadWrite environment, XacmlVersion schemaVersion)
     : base(XacmlSchema.Context, schemaVersion)
 {
     _subjects = subjects;
     _resources = resources;
     _action = action;
     _environment = environment;
 }
 /// <summary>
 /// Creates a ResourceCollection with the provided ResourceReadWriteCollection
 /// </summary>
 /// <param name="items"></param>
 public ResourceCollection(ResourceReadWriteCollection items)
 {
     if (items == null) throw new ArgumentNullException("items");
     foreach (ResourceElementReadWrite item in items)
     {
         this.Add(item);
     }
 }
Beispiel #4
0
 /// <summary>
 /// Creates a ResourceCollection with the provided ResourceReadWriteCollection
 /// </summary>
 /// <param name="items"></param>
 public ResourceCollection(ResourceReadWriteCollection items)
 {
     if (items == null)
     {
         throw new ArgumentNullException("items");
     }
     foreach (ResourceElementReadWrite item in items)
     {
         this.Add(item);
     }
 }