- Timestamp:
- 10/04/17 13:56:38 (7 years ago)
- Location:
- branches/HiveProjectManagement/HeuristicLab.Clients.Hive/3.3/ServiceClients
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveProjectManagement/HeuristicLab.Clients.Hive/3.3/ServiceClients/HiveServiceClient.cs
r14738 r15401 26 26 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.SlaveGroup))] 27 27 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Plugin))] 28 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Project))] 28 29 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.JobPermission))] 29 30 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.PluginData))] 30 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive. ResourcePermission))]31 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.ProjectPermission))] 31 32 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Downtime))] 32 33 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.UserPriority))] … … 211 212 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.SlaveGroup))] 212 213 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Plugin))] 214 [System.Runtime.Serialization.KnownTypeAttribute(typeof(HeuristicLab.Clients.Hive.Project))] 213 215 public partial class NamedHiveItem : HeuristicLab.Clients.Hive.HiveItem 214 216 { … … 284 286 285 287 [System.Runtime.Serialization.OptionalFieldAttribute()] 286 private string ResourceNamesField;288 private System.Guid ProjectIdField; 287 289 288 290 [System.Runtime.Serialization.DataMemberAttribute()] … … 406 408 407 409 [System.Runtime.Serialization.DataMemberAttribute()] 408 public string ResourceNames409 { 410 get 411 { 412 return this. ResourceNamesField;413 } 414 set 415 { 416 if (( object.ReferenceEquals(this.ResourceNamesField,value) != true))417 { 418 this. ResourceNamesField = value;419 this.RaisePropertyChanged(" ResourceNames");410 public System.Guid ProjectId 411 { 412 get 413 { 414 return this.ProjectIdField; 415 } 416 set 417 { 418 if ((this.ProjectIdField.Equals(value) != true)) 419 { 420 this.ProjectIdField = value; 421 this.RaisePropertyChanged("ProjectId"); 420 422 } 421 423 } … … 839 841 [System.Diagnostics.DebuggerStepThroughAttribute()] 840 842 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 843 [System.Runtime.Serialization.DataContractAttribute(Name="Project", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.DataTransfer")] 844 [System.SerializableAttribute()] 845 public partial class Project : HeuristicLab.Clients.Hive.NamedHiveItem 846 { 847 848 [System.Runtime.Serialization.OptionalFieldAttribute()] 849 private System.DateTime DateCreatedField; 850 851 [System.Runtime.Serialization.OptionalFieldAttribute()] 852 private System.Nullable<System.DateTime> EndDateField; 853 854 [System.Runtime.Serialization.OptionalFieldAttribute()] 855 private System.Guid OwnerUserIdField; 856 857 [System.Runtime.Serialization.OptionalFieldAttribute()] 858 private System.Nullable<System.Guid> ParentProjectIdField; 859 860 [System.Runtime.Serialization.OptionalFieldAttribute()] 861 private System.DateTime StartDateField; 862 863 [System.Runtime.Serialization.DataMemberAttribute()] 864 public System.DateTime DateCreated 865 { 866 get 867 { 868 return this.DateCreatedField; 869 } 870 set 871 { 872 if ((this.DateCreatedField.Equals(value) != true)) 873 { 874 this.DateCreatedField = value; 875 this.RaisePropertyChanged("DateCreated"); 876 } 877 } 878 } 879 880 [System.Runtime.Serialization.DataMemberAttribute()] 881 public System.Nullable<System.DateTime> EndDate 882 { 883 get 884 { 885 return this.EndDateField; 886 } 887 set 888 { 889 if ((this.EndDateField.Equals(value) != true)) 890 { 891 this.EndDateField = value; 892 this.RaisePropertyChanged("EndDate"); 893 } 894 } 895 } 896 897 [System.Runtime.Serialization.DataMemberAttribute()] 898 public System.Guid OwnerUserId 899 { 900 get 901 { 902 return this.OwnerUserIdField; 903 } 904 set 905 { 906 if ((this.OwnerUserIdField.Equals(value) != true)) 907 { 908 this.OwnerUserIdField = value; 909 this.RaisePropertyChanged("OwnerUserId"); 910 } 911 } 912 } 913 914 [System.Runtime.Serialization.DataMemberAttribute()] 915 public System.Nullable<System.Guid> ParentProjectId 916 { 917 get 918 { 919 return this.ParentProjectIdField; 920 } 921 set 922 { 923 if ((this.ParentProjectIdField.Equals(value) != true)) 924 { 925 this.ParentProjectIdField = value; 926 this.RaisePropertyChanged("ParentProjectId"); 927 } 928 } 929 } 930 931 [System.Runtime.Serialization.DataMemberAttribute()] 932 public System.DateTime StartDate 933 { 934 get 935 { 936 return this.StartDateField; 937 } 938 set 939 { 940 if ((this.StartDateField.Equals(value) != true)) 941 { 942 this.StartDateField = value; 943 this.RaisePropertyChanged("StartDate"); 944 } 945 } 946 } 947 } 948 949 [System.Diagnostics.DebuggerStepThroughAttribute()] 950 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 841 951 [System.Runtime.Serialization.DataContractAttribute(Name="JobPermission", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.DataTransfer")] 842 952 [System.SerializableAttribute()] … … 995 1105 [System.Diagnostics.DebuggerStepThroughAttribute()] 996 1106 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")] 997 [System.Runtime.Serialization.DataContractAttribute(Name=" ResourcePermission", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.DataTransfer")]1107 [System.Runtime.Serialization.DataContractAttribute(Name="ProjectPermission", Namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Services.Hive.DataTransfer")] 998 1108 [System.SerializableAttribute()] 999 public partial class ResourcePermission : HeuristicLab.Clients.Hive.HiveItem1109 public partial class ProjectPermission : HeuristicLab.Clients.Hive.HiveItem 1000 1110 { 1001 1111 … … 1007 1117 1008 1118 [System.Runtime.Serialization.OptionalFieldAttribute()] 1009 private System.Guid ResourceIdField;1119 private System.Guid ProjectIdField; 1010 1120 1011 1121 [System.Runtime.Serialization.DataMemberAttribute()] … … 1044 1154 1045 1155 [System.Runtime.Serialization.DataMemberAttribute()] 1046 public System.Guid ResourceId1047 { 1048 get 1049 { 1050 return this. ResourceIdField;1051 } 1052 set 1053 { 1054 if ((this. ResourceIdField.Equals(value) != true))1055 { 1056 this. ResourceIdField = value;1057 this.RaisePropertyChanged(" ResourceId");1156 public System.Guid ProjectId 1157 { 1158 get 1159 { 1160 return this.ProjectIdField; 1161 } 1162 set 1163 { 1164 if ((this.ProjectIdField.Equals(value) != true)) 1165 { 1166 this.ProjectIdField = value; 1167 this.RaisePropertyChanged("ProjectId"); 1058 1168 } 1059 1169 } … … 2100 2210 2101 2211 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/AddTask", ReplyAction="http://tempuri.org/IHiveService/AddTaskResponse")] 2102 System.Guid AddTask(HeuristicLab.Clients.Hive.Task task, HeuristicLab.Clients.Hive.TaskData taskData , System.Collections.Generic.List<System.Guid> resourceIds);2212 System.Guid AddTask(HeuristicLab.Clients.Hive.Task task, HeuristicLab.Clients.Hive.TaskData taskData); 2103 2213 2104 2214 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/AddChildTask", ReplyAction="http://tempuri.org/IHiveService/AddChildTaskResponse")] … … 2184 2294 System.Collections.Generic.List<HeuristicLab.Clients.Hive.PluginData> GetPluginDatas(System.Collections.Generic.List<System.Guid> pluginIds); 2185 2295 2186 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GrantResourcePermissions", ReplyAction="http://tempuri.org/IHiveService/GrantResourcePermissionsResponse")] 2187 void GrantResourcePermissions(System.Guid resourceId, System.Collections.Generic.List<System.Guid> grantedUserIds); 2188 2189 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/RevokeResourcePermissions", ReplyAction="http://tempuri.org/IHiveService/RevokeResourcePermissionsResponse")] 2190 void RevokeResourcePermissions(System.Guid resourceId, System.Collections.Generic.List<System.Guid> grantedUserIds); 2191 2192 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetResourcePermissions", ReplyAction="http://tempuri.org/IHiveService/GetResourcePermissionsResponse")] 2193 System.Collections.Generic.List<HeuristicLab.Clients.Hive.ResourcePermission> GetResourcePermissions(System.Guid resourceId); 2296 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/AddProject", ReplyAction="http://tempuri.org/IHiveService/AddProjectResponse")] 2297 System.Guid AddProject(HeuristicLab.Clients.Hive.Project projectDto); 2298 2299 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/UpdateProject", ReplyAction="http://tempuri.org/IHiveService/UpdateProjectResponse")] 2300 void UpdateProject(HeuristicLab.Clients.Hive.Project projectDto); 2301 2302 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/DeleteProject", ReplyAction="http://tempuri.org/IHiveService/DeleteProjectResponse")] 2303 void DeleteProject(System.Guid projectId); 2304 2305 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetProject", ReplyAction="http://tempuri.org/IHiveService/GetProjectResponse")] 2306 HeuristicLab.Clients.Hive.Project GetProject(System.Guid projectId); 2307 2308 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetProjects", ReplyAction="http://tempuri.org/IHiveService/GetProjectsResponse")] 2309 System.Collections.Generic.List<HeuristicLab.Clients.Hive.Project> GetProjects(); 2310 2311 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GrantProjectPermissions", ReplyAction="http://tempuri.org/IHiveService/GrantProjectPermissionsResponse")] 2312 void GrantProjectPermissions(System.Guid projectId, System.Collections.Generic.List<System.Guid> grantedUserIds); 2313 2314 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/RevokeProjectPermissions", ReplyAction="http://tempuri.org/IHiveService/RevokeProjectPermissionsResponse")] 2315 void RevokeProjectPermissions(System.Guid projectId, System.Collections.Generic.List<System.Guid> grantedUserIds); 2316 2317 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/GetProjectPermissions", ReplyAction="http://tempuri.org/IHiveService/GetProjectPermissionsResponse")] 2318 System.Collections.Generic.List<HeuristicLab.Clients.Hive.ProjectPermission> GetProjectPermissions(System.Guid projectId); 2194 2319 2195 2320 [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHiveService/AddSlave", ReplyAction="http://tempuri.org/IHiveService/AddSlaveResponse")] … … 2291 2416 } 2292 2417 2293 public System.Guid AddTask(HeuristicLab.Clients.Hive.Task task, HeuristicLab.Clients.Hive.TaskData taskData , System.Collections.Generic.List<System.Guid> resourceIds)2294 { 2295 return base.Channel.AddTask(task, taskData , resourceIds);2418 public System.Guid AddTask(HeuristicLab.Clients.Hive.Task task, HeuristicLab.Clients.Hive.TaskData taskData) 2419 { 2420 return base.Channel.AddTask(task, taskData); 2296 2421 } 2297 2422 … … 2431 2556 } 2432 2557 2433 public void GrantResourcePermissions(System.Guid resourceId, System.Collections.Generic.List<System.Guid> grantedUserIds) 2434 { 2435 base.Channel.GrantResourcePermissions(resourceId, grantedUserIds); 2436 } 2437 2438 public void RevokeResourcePermissions(System.Guid resourceId, System.Collections.Generic.List<System.Guid> grantedUserIds) 2439 { 2440 base.Channel.RevokeResourcePermissions(resourceId, grantedUserIds); 2441 } 2442 2443 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.ResourcePermission> GetResourcePermissions(System.Guid resourceId) 2444 { 2445 return base.Channel.GetResourcePermissions(resourceId); 2558 public System.Guid AddProject(HeuristicLab.Clients.Hive.Project projectDto) 2559 { 2560 return base.Channel.AddProject(projectDto); 2561 } 2562 2563 public void UpdateProject(HeuristicLab.Clients.Hive.Project projectDto) 2564 { 2565 base.Channel.UpdateProject(projectDto); 2566 } 2567 2568 public void DeleteProject(System.Guid projectId) 2569 { 2570 base.Channel.DeleteProject(projectId); 2571 } 2572 2573 public HeuristicLab.Clients.Hive.Project GetProject(System.Guid projectId) 2574 { 2575 return base.Channel.GetProject(projectId); 2576 } 2577 2578 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.Project> GetProjects() 2579 { 2580 return base.Channel.GetProjects(); 2581 } 2582 2583 public void GrantProjectPermissions(System.Guid projectId, System.Collections.Generic.List<System.Guid> grantedUserIds) 2584 { 2585 base.Channel.GrantProjectPermissions(projectId, grantedUserIds); 2586 } 2587 2588 public void RevokeProjectPermissions(System.Guid projectId, System.Collections.Generic.List<System.Guid> grantedUserIds) 2589 { 2590 base.Channel.RevokeProjectPermissions(projectId, grantedUserIds); 2591 } 2592 2593 public System.Collections.Generic.List<HeuristicLab.Clients.Hive.ProjectPermission> GetProjectPermissions(System.Guid projectId) 2594 { 2595 return base.Channel.GetProjectPermissions(projectId); 2446 2596 } 2447 2597 -
branches/HiveProjectManagement/HeuristicLab.Clients.Hive/3.3/ServiceClients/Job.cs
r14185 r15401 29 29 #region Constructors and Cloning 30 30 public Job() { 31 ResourceNames = "HEAL";31 ProjectId = Guid.Empty; 32 32 DateCreated = DateTime.Now; 33 33 Permission = Permission.Full; … … 38 38 this.OwnerUserId = original.OwnerUserId; 39 39 this.DateCreated = original.DateCreated; 40 this. ResourceNames = original.ResourceNames;40 this.ProjectId = original.ProjectId; 41 41 this.Name = original.Name; 42 42 this.Description = original.Description; -
branches/HiveProjectManagement/HeuristicLab.Clients.Hive/3.3/ServiceClients/ResourcePermission.cs
r14185 r15401 24 24 25 25 namespace HeuristicLab.Clients.Hive { 26 public partial class ResourcePermission : IDeepCloneable, IContent {26 public partial class ProjectPermission : IDeepCloneable, IContent { 27 27 28 28 private string grantedUserName; … … 41 41 } 42 42 43 public ResourcePermission() { }43 public ProjectPermission() { } 44 44 45 45 protected override void OnPropertyChanged(PropertyChangedEventArgs e) { … … 50 50 } 51 51 52 protected ResourcePermission(ResourcePermission original, Cloner cloner)52 protected ProjectPermission(ProjectPermission original, Cloner cloner) 53 53 : base(original, cloner) { 54 54 this.GrantedByUserId = original.GrantedByUserId; 55 55 this.GrantedUserId = original.GrantedUserId; 56 this. ResourceId = original.ResourceId;56 this.ProjectId = original.ProjectId; 57 57 } 58 58 59 59 public override IDeepCloneable Clone(Cloner cloner) { 60 return new ResourcePermission(this, cloner);60 return new ProjectPermission(this, cloner); 61 61 } 62 62
Note: See TracChangeset
for help on using the changeset viewer.