Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/12/16 17:09:12 (9 years ago)
Author:
jlodewyc
Message:

#2582 Security access implemented, directory renaming and choosing, adding more partials

Location:
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels/Jobs/FileOpeningViewModel.cs

    r13733 r13847  
    1 using HeuristicLab.Optimization;
    2 
     1using HeuristicLab.Clients.Hive.WebJobManager.Models;
     2using HeuristicLab.Optimization;
     3using System.Collections.Generic;
    34
    45namespace HeuristicLab.Clients.Hive.WebJobManager.ViewModels
     
    1011    {
    1112        public OptimizerHiveTask SelectedTask { get; set; }
     13        public List<string> directories { get; set; }
    1214        public IAlgorithm SelectedAlgorithm { get; set; }
    1315        public Experiment SelectedExperiment { get; set; }
    1416        public BatchRun SelectedBatchRun { get; set; }
    1517        public string message { get; set; }
     18        public HiveWebUser currentUser { get; set; }
     19
     20        public FileOpeningViewModel(HiveWebUser hwu)
     21        {
     22            currentUser = hwu;
     23        }
    1624    }
    1725}
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels/Jobs/JobViewModel.cs

    r13733 r13847  
    1 using System;
     1using HeuristicLab.Clients.Hive.WebJobManager.Models;
     2using System;
    23using System.Collections.Generic;
    34using System.Linq;
     
    1112    public class JobViewModel
    1213    {
     14        public HiveWebUser currentUser { get; set; }
    1315        public List<RefreshableJob> userJobs { get; set; }
    1416
     
    1719        public List<HiveTask> selectedHiveTasks { get; set; }
    1820        public string message { get; set; }
    19         public JobViewModel()
     21        public JobViewModel(HiveWebUser hwu)
    2022        {
    2123            userJobs = null;
     
    2325            selectedHiveTasks = new List<HiveTask>();
    2426            message = "";
     27            currentUser = hwu;
    2528        }
    2629    }
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels/Jobs/UploadedJobViewModel.cs

    r13733 r13847  
    1 using HeuristicLab.Optimization;
     1using HeuristicLab.Clients.Hive.WebJobManager.Models;
     2using HeuristicLab.Optimization;
    23using System;
    34using System.Collections.Generic;
     
    1213    public class UploadedJobViewModel
    1314    {
    14         public UploadedJobViewModel()
     15        public UploadedJobViewModel(HiveWebUser hwu)
     16        {
     17            FullDatePaths = new List<string>();
     18            DisplayDatePaths = new List<string>();
     19            FullFilesPaths = new List<string>();
     20            DisplayFilesPaths = new List<string>();
     21            SelectedIndex = -1;
     22            currentUser = hwu;
     23        }
     24        public void clear()
    1525        {
    1626            FullDatePaths = new List<string>();
     
    2030            SelectedIndex = -1;
    2131        }
    22 
    2332        public List<string> FullDatePaths { get; set; }
    2433        public List<string> DisplayDatePaths { get; set; }
     
    2736        public int SelectedIndex { get; set; }
    2837        public string message { get; set; }
    29 
     38        public HiveWebUser currentUser { get; set; }
    3039       
    3140    }
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels/NavbarViewModel.cs

    r13733 r13847  
    1 using System;
     1using HeuristicLab.Clients.Hive.WebJobManager.Models;
     2using System;
    23using System.Collections.Generic;
    34using System.Linq;
     
    1011
    1112        public string Active { get; set; }
     13        public HiveWebUser User { get; set; }
    1214
    13         public NavbarViewModel(string ac)
     15        public NavbarViewModel(string ac, HiveWebUser hwu )
    1416        {
    1517            Active = ac;
     18            User = hwu;
    1619        }
    1720    }
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/ViewModels/User/UserViewModel.cs

    r13805 r13847  
    11using HeuristicLab.Clients.Access.Administration;
     2using HeuristicLab.Clients.Hive.WebJobManager.Models;
    23using System;
    34using System.Collections.Generic;
     
    1213    public class UserViewModel
    1314    {
    14 
     15        public HiveWebUser currentUser { get; set; }
    1516        public string message { get; set; }
    1617        public AccessAdministrationClient accessClient { get; set; }
     
    3132        /// </summary>
    3233        /// <param name="ac">AccessAdminClient for connection</param>
    33         public UserViewModel(AccessAdministrationClient ac)
     34        public UserViewModel(AccessAdministrationClient ac, HiveWebUser hwu)
    3435        {
     36            currentUser = hwu;
    3537            users = new List<Access.User>();
    3638            accessClient = ac;
Note: See TracChangeset for help on using the changeset viewer.