Changeset 4253 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/Facades
- Timestamp:
- 08/18/10 15:29:57 (14 years ago)
- Location:
- branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/Facades
- Files:
-
- 1 added
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/Facades/ServerConsoleFacade.cs
r4170 r4253 35 35 namespace HeuristicLab.Hive.Server.Core { 36 36 public class ServerConsoleFacade : IServerConsoleFacade { 37 private I ClientManager clientManager = ServiceLocator.GetClientManager();37 private ISlaveManager slaveManager = ServiceLocator.GetSlaveManager(); 38 38 39 39 private IJobManager jobManager = ServiceLocator.GetJobManager(); … … 67 67 using (contextFactory.GetContext(false)) { 68 68 secMan.Authorize("AccessClients", sessionID, Guid.Empty); 69 return clientManager.GetAllClients();69 return slaveManager.GetAllClients(); 70 70 } 71 71 } … … 74 74 using (contextFactory.GetContext(false)) { 75 75 //secMan.Authorize("AccessClientGroup", sessionID, Guid.Empty); 76 return clientManager.GetAllClientGroups();76 return slaveManager.GetAllClientGroups(); 77 77 } 78 78 } … … 81 81 using (contextFactory.GetContext(false)) { 82 82 secMan.Authorize("AccessStatistics", sessionID, Guid.Empty); 83 return clientManager.GetAllUpTimeStatistics();83 return slaveManager.GetAllUpTimeStatistics(); 84 84 } 85 85 } … … 88 88 using (contextFactory.GetContext()) { 89 89 secMan.Authorize("AddClientGroup", sessionID, Guid.Empty); 90 return clientManager.AddClientGroup(clientGroup);90 return slaveManager.AddClientGroup(clientGroup); 91 91 } 92 92 } … … 95 95 using (contextFactory.GetContext()) { 96 96 secMan.Authorize("AddResource", sessionID, Guid.Empty); 97 return clientManager.AddResourceToGroup(clientGroupId, resource);97 return slaveManager.AddResourceToGroup(clientGroupId, resource); 98 98 } 99 99 } … … 101 101 public Response DeleteResourceFromGroup(Guid clientGroupId, Guid resourceId) { 102 102 using (contextFactory.GetContext()) { 103 return clientManager.DeleteResourceFromGroup(clientGroupId, resourceId);103 return slaveManager.DeleteResourceFromGroup(clientGroupId, resourceId); 104 104 } 105 105 } … … 185 185 using (contextFactory.GetContext(false)) { 186 186 secMan.Authorize("AccessUserGroup", sessionID, Guid.Empty); 187 return clientManager.GetAllGroupsOfResource(resourceId);187 return slaveManager.GetAllGroupsOfResource(resourceId); 188 188 } 189 189 } … … 192 192 using (contextFactory.GetContext()) { 193 193 secMan.Authorize("DeleteClientGroup", sessionID, Guid.Empty); 194 return clientManager.DeleteClientGroup(clientGroupId);194 return slaveManager.DeleteClientGroup(clientGroupId); 195 195 } 196 196 } … … 233 233 public ResponseList<AppointmentDto> GetUptimeCalendarForResource(Guid guid) { 234 234 using (contextFactory.GetContext(false)) { 235 return clientManager.GetUptimeCalendarForResource(guid);235 return slaveManager.GetUptimeCalendarForResource(guid); 236 236 } 237 237 } … … 239 239 public Response SetUptimeCalendarForResource(Guid guid, IEnumerable<AppointmentDto> appointments, bool isForced) { 240 240 using (contextFactory.GetContext()) { 241 return clientManager.SetUptimeCalendarForResource(guid, appointments, isForced);241 return slaveManager.SetUptimeCalendarForResource(guid, appointments, isForced); 242 242 } 243 243 }
Note: See TracChangeset
for help on using the changeset viewer.