Changeset 971 for trunk/sources/HeuristicLab.Hive.Server.Core
- Timestamp:
- 12/11/08 16:50:12 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Server.Core
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Core/DbTestApp.cs
r965 r971 170 170 client.Name = "Stefan"; 171 171 client.ClientId = Guid.NewGuid(); 172 client.Login = DateTime.Now; 172 173 173 174 ClientInfo client2 = … … 175 176 client2.Name = "Martin"; 176 177 client2.ClientId = Guid.NewGuid(); 178 client2.Login = DateTime.Now; 177 179 178 180 ClientInfo client3 = … … 180 182 client3.Name = "Heinz"; 181 183 client3.ClientId = Guid.NewGuid(); 184 client3.Login = DateTime.Now; 182 185 183 186 ClientGroup group = … … 223 226 clientAdapter.DeleteClient(client); 224 227 clientAdapter.DeleteClient(client2); 228 } 229 230 private void TestJobAdapter() { 231 IJobAdapter jobAdapter = ServiceLocator.GetJobAdapter(); 232 233 Job job = new Job(); 234 235 ClientInfo client = new ClientInfo(); 236 client.ClientId = Guid.NewGuid(); 237 client.Login = DateTime.Now; 238 239 job.Client = client; 240 jobAdapter.UpdateJob(job); 241 242 ICollection<Job> jobs = jobAdapter.GetAllJobs(); 243 244 jobAdapter.DeleteJob(job); 245 246 jobs = jobAdapter.GetAllJobs(); 225 247 } 226 248 … … 230 252 TestUserGroupAdapter(); 231 253 TestClientGroupAdapter(); 254 TestJobAdapter(); 232 255 233 256 ITransactionManager transactionManager = -
trunk/sources/HeuristicLab.Hive.Server.Core/InternalInterfaces/DataAccess/IClientAdapter.cs
r965 r971 45 45 46 46 /// <summary> 47 /// Get the client with the specified name 48 /// </summary> 49 /// <param name="clientId"></param> 50 /// <returns></returns> 51 ClientInfo GetClientByName(string name); 52 53 /// <summary> 47 54 /// Get the client with the specified ID 48 55 /// </summary> -
trunk/sources/HeuristicLab.Hive.Server.Core/InternalInterfaces/DataAccess/IClientGroupAdapter.cs
r965 r971 45 45 46 46 /// <summary> 47 /// Get the client group with the specified name 48 /// </summary> 49 /// <param name="clientId"></param> 50 /// <returns></returns> 51 ClientGroup GetClientGroupByName(string name); 52 53 /// <summary> 47 54 /// Get all client groups 48 55 /// </summary> -
trunk/sources/HeuristicLab.Hive.Server.Core/InternalInterfaces/DataAccess/IJobAdapter.cs
r963 r971 48 48 49 49 /// <summary> 50 /// Gets all subjobs of the specified job 51 /// </summary> 52 /// <returns></returns> 53 ICollection<Job> GetAllSubjobs(Job job); 54 55 /// <summary> 56 /// Gets the result of a job 57 /// </summary> 58 /// <param name="job"></param> 59 /// <returns></returns> 60 JobResult GetResult(Job job); 61 62 /// <summary> 63 /// Gets all jobs of the client 64 /// </summary> 65 /// <param name="client"></param> 66 /// <returns></returns> 67 ICollection<Job> GetJobsOf(ClientInfo client); 68 69 /// <summary> 70 /// Gets all jobs of the user 71 /// </summary> 72 /// <param name="user"></param> 73 /// <returns></returns> 74 ICollection<Job> GetJobsOf(User user); 75 76 /// <summary> 50 77 /// Deletes the job 51 78 /// </summary> -
trunk/sources/HeuristicLab.Hive.Server.Core/InternalInterfaces/DataAccess/IResourceAdapter.cs
r925 r971 45 45 46 46 /// <summary> 47 /// Get the resource with the specified name 48 /// </summary> 49 /// <param name="clientId"></param> 50 /// <returns></returns> 51 Resource GetResourceByName(string name); 52 53 /// <summary> 47 54 /// Gets the resource and updates the values of the object 48 55 /// </summary> -
trunk/sources/HeuristicLab.Hive.Server.Core/InternalInterfaces/DataAccess/IUserGroupAdapter.cs
r939 r971 45 45 46 46 /// <summary> 47 /// Get the user group with the specified name 48 /// </summary> 49 /// <param name="clientId"></param> 50 /// <returns></returns> 51 UserGroup GetUserGroupByName(string name); 52 53 /// <summary> 47 54 /// Get all user groups 48 55 /// </summary>
Note: See TracChangeset
for help on using the changeset viewer.