Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/29/12 14:04:59 (13 years ago)
Author:
jkarder
Message:

#1860:

  • integrated owner attribute (OwnerUserId) into the Hive components
  • adjusted database scheme
  • adjusted service methods
Location:
trunk/sources/HeuristicLab.Clients.Hive/3.3/ServiceClients
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/ServiceClients/HiveServiceClient.cs

    r7862 r7916  
    22// <auto-generated>
    33//     This code was generated by a tool.
    4 //     Runtime Version:4.0.30319.544
     4//     Runtime Version:4.0.30319.269
    55//
    66//     Changes to this file may cause incorrect behavior and will be lost if
     
    1919  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.StateLog))]
    2020  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Task))]
     21  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.ResourcePermission))]
    2122  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Downtime))]
    2223  [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.JobPermission))]
     
    5960
    6061    public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
    61 
    62 
    6362  }
    6463
     
    416415          this.PriorityField = value;
    417416          this.RaisePropertyChanged("Priority");
     417        }
     418      }
     419    }
     420  }
     421
     422  [System.Diagnostics.DebuggerStepThroughAttribute()]
     423  [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
     424  [System.Runtime.Serialization.DataContractAttribute(Name = "ResourcePermission", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.DataTransfer")]
     425  [System.SerializableAttribute()]
     426  public partial class ResourcePermission : HeuristicLab.Clients.Hive.HiveItem {
     427
     428    [System.Runtime.Serialization.OptionalFieldAttribute()]
     429    private System.Guid GrantedByUserIdField;
     430
     431    [System.Runtime.Serialization.OptionalFieldAttribute()]
     432    private System.Guid GrantedUserIdField;
     433
     434    [System.Runtime.Serialization.OptionalFieldAttribute()]
     435    private System.Guid ResourceIdField;
     436
     437    [System.Runtime.Serialization.DataMemberAttribute()]
     438    public System.Guid GrantedByUserId {
     439      get {
     440        return this.GrantedByUserIdField;
     441      }
     442      set {
     443        if ((this.GrantedByUserIdField.Equals(value) != true)) {
     444          this.GrantedByUserIdField = value;
     445          this.RaisePropertyChanged("GrantedByUserId");
     446        }
     447      }
     448    }
     449
     450    [System.Runtime.Serialization.DataMemberAttribute()]
     451    public System.Guid GrantedUserId {
     452      get {
     453        return this.GrantedUserIdField;
     454      }
     455      set {
     456        if ((this.GrantedUserIdField.Equals(value) != true)) {
     457          this.GrantedUserIdField = value;
     458          this.RaisePropertyChanged("GrantedUserId");
     459        }
     460      }
     461    }
     462
     463    [System.Runtime.Serialization.DataMemberAttribute()]
     464    public System.Guid ResourceId {
     465      get {
     466        return this.ResourceIdField;
     467      }
     468      set {
     469        if ((this.ResourceIdField.Equals(value) != true)) {
     470          this.ResourceIdField = value;
     471          this.RaisePropertyChanged("ResourceId");
    418472        }
    419473      }
     
    912966
    913967    [System.Runtime.Serialization.OptionalFieldAttribute()]
     968    private System.Nullable<System.Guid> OwnerUserIdField;
     969
     970    [System.Runtime.Serialization.OptionalFieldAttribute()]
    914971    private System.Nullable<System.Guid> ParentResourceIdField;
    915972
     
    923980          this.HbIntervalField = value;
    924981          this.RaisePropertyChanged("HbInterval");
     982        }
     983      }
     984    }
     985
     986    [System.Runtime.Serialization.DataMemberAttribute()]
     987    public System.Nullable<System.Guid> OwnerUserId {
     988      get {
     989        return this.OwnerUserIdField;
     990      }
     991      set {
     992        if ((this.OwnerUserIdField.Equals(value) != true)) {
     993          this.OwnerUserIdField = value;
     994          this.RaisePropertyChanged("OwnerUserId");
    925995        }
    926996      }
     
    16211691    int GetNewHeartbeatInterval(System.Guid slaveId);
    16221692
     1693    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GrantResourcePermission", ReplyAction = "http://tempuri.org/IHiveService/GrantResourcePermissionResponse")]
     1694    void GrantResourcePermission(System.Guid slaveId, System.Guid grantedUserId);
     1695
     1696    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/RevokeResourcePermission", ReplyAction = "http://tempuri.org/IHiveService/RevokeResourcePermissionResponse")]
     1697    void RevokeResourcePermission(System.Guid slaveId, System.Guid grantedUserId);
     1698
     1699    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/GetSlavePermissions", ReplyAction = "http://tempuri.org/IHiveService/GetSlavePermissionsResponse")]
     1700    System.Collections.Generic.List<HeuristicLab.Clients.Hive.ResourcePermission> GetSlavePermissions(System.Guid slaveId);
     1701
    16231702    [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IHiveService/AddDowntime", ReplyAction = "http://tempuri.org/IHiveService/AddDowntimeResponse")]
    16241703    System.Guid AddDowntime(HeuristicLab.Clients.Hive.Downtime downtime);
     
    18301909    }
    18311910
     1911    public void GrantResourcePermission(System.Guid slaveId, System.Guid grantedUserId) {
     1912      base.Channel.GrantResourcePermission(slaveId, grantedUserId);
     1913    }
     1914
     1915    public void RevokeResourcePermission(System.Guid slaveId, System.Guid grantedUserId) {
     1916      base.Channel.RevokeResourcePermission(slaveId, grantedUserId);
     1917    }
     1918
     1919    public System.Collections.Generic.List<HeuristicLab.Clients.Hive.ResourcePermission> GetSlavePermissions(System.Guid slaveId) {
     1920      return base.Channel.GetSlavePermissions(slaveId);
     1921    }
     1922
    18321923    public System.Guid AddDowntime(HeuristicLab.Clients.Hive.Downtime downtime) {
    18331924      return base.Channel.AddDowntime(downtime);
Note: See TracChangeset for help on using the changeset viewer.