- Timestamp:
- 05/12/16 17:09:12 (9 years ago)
- Location:
- branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services/Jobs/FileOpeningService.cs
r13827 r13847 43 43 public void NewModel() 44 44 { 45 vm = new FileOpeningViewModel( );45 vm = new FileOpeningViewModel(weblog.getCurrentUser(UserId)); 46 46 Job = new RefreshableJob(); 47 47 … … 80 80 return null; 81 81 } 82 public void SaveToFile(string file )82 public void SaveToFile(string file, string dname) 83 83 { 84 84 if(vm != null) 85 85 { 86 86 var uploads = Path.Combine(env.WebRootPath, "uploads", weblog.getServiceLocator(UserId).getHiveServiceClient().ClientCredentials.UserName.UserName, 87 "HiveChanged");87 dname); 88 88 Directory.CreateDirectory(uploads); 89 89 var cont = Job.HiveTasks.First().ItemTask.Item; -
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services/WebLoginService.cs
r13841 r13847 1 1 using HeuristicLab.Clients.Access.Administration; 2 using HeuristicLab.Clients.Hive.WebJobManager.Models; 2 3 using HeuristicLab.Clients.Hive.WebJobManager.ViewModels; 3 4 using System; … … 23 24 private List<AccessAdministrationClient> accessclients; 24 25 private List<HiveAdminClientWeb> adminclients; 26 private List<HiveWebUser> loggedinUsers; 25 27 /// <summary> 26 28 /// Service instance that keeps all the information per user seperated. Data is in different lists so … … 51 53 accessclients = new List<AccessAdministrationClient>(); 52 54 adminclients = new List<HiveAdminClientWeb>(); 55 loggedinUsers = new List<HiveWebUser>(); 53 56 } 54 57 /// <summary> … … 67 70 loggedIn.Add(log); 68 71 locators.Add(loc); 69 var temp = new HiveClientWeb(loc, log.userId); 70 webclients.Add(temp); 71 var temp2 = new FileOpeningService(log.userId); 72 fileopeners.Add(temp2); 73 temp2 = new FileOpeningService(log.userId); 74 jobopeners.Add(temp2); 75 var temp3 = new AccessAdministrationClient(log.userId); 76 accessclients.Add(temp3); 77 var temp4 = new HiveAdminClientWeb(log.userId); 78 adminclients.Add(temp4); 72 webclients.Add(new HiveClientWeb(loc, log.userId)); 73 fileopeners.Add(new FileOpeningService(log.userId)); 74 jobopeners.Add(new FileOpeningService(log.userId)); 75 accessclients.Add(new AccessAdministrationClient(log.userId)); 76 adminclients.Add(new HiveAdminClientWeb(log.userId)); 77 loggedinUsers.Add(new HiveWebUser(log.userId, log.loginName).updateUserInfo()); 79 78 } 80 79 /// <summary> … … 150 149 return adminclients.Find(x => x.userId == id); 151 150 } 151 public HiveWebUser getCurrentUser(Guid id) 152 { 153 return loggedinUsers.Find(x => x.webIdToken == id); 154 } 152 155 /// <summary> 153 156 /// Removes all traces from the logged in user. … … 164 167 adminclients.RemoveAll(x => x.userId == id); 165 168 loggedIn.RemoveAll(x => x.userId == id); 166 169 loggedinUsers.RemoveAll(x => x.webIdToken == id); 167 170 } 168 171 }
Note: See TracChangeset
for help on using the changeset viewer.