Changeset 1161 for trunk/sources
- Timestamp:
- 01/21/09 16:22:41 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Contracts/BusinessObjects/Job.cs
r1120 r1161 35 35 public State State { get; set; } 36 36 [DataMember] 37 public User User { get; set; } 38 [DataMember] 37 39 public ClientInfo Client { get; set; } 38 40 [DataMember] -
trunk/sources/HeuristicLab.Hive.Server.ADODataAccess/JobAdapter.cs
r1149 r1161 91 91 else 92 92 job.Client = null; 93 94 if (!row.IsPermissionOwnerIdNull()) 95 job.User = UserAdapter.GetById(row.PermissionOwnerId); 96 else 97 job.User = null; 93 98 94 99 if (!row.IsJobStateNull()) … … 132 137 } else 133 138 row.SetParentJobIdNull(); 139 140 if (job.User != null) { 141 if (row.IsPermissionOwnerIdNull() || 142 row.PermissionOwnerId != job.User.Id) { 143 UserAdapter.Update(job.User); 144 row.PermissionOwnerId = job.User.Id; 145 } 146 } else 147 row.SetPermissionOwnerIdNull(); 134 148 135 149 if (job.State != State.nullState)
Note: See TracChangeset
for help on using the changeset viewer.