Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/30/16 16:52:40 (9 years ago)
Author:
jlodewyc
Message:

#2582 Start angular OKB manager, data loaded

Location:
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services/Imports
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services/Imports/AccessAdministrationClient.cs

    r13844 r13862  
    2626using System.ServiceModel;
    2727using HeuristicLab.Clients.Hive.WebJobManager.ViewModels;
    28 using HeuristicLab.Clients.Hive.WebJobManager.Services;
    2928using System.Collections.Generic;
    3029using System.ServiceModel.Security;
    31 
    32 namespace HeuristicLab.Clients.Access.Administration
     30using HeuristicLab.Clients.Access;
     31
     32namespace HeuristicLab.Clients.Hive.WebJobManager.Services.Imports
    3333{
    3434    /// <summary>
     
    485485        }
    486486        #endregion
     487
     488        internal bool CheckLogin()
     489        {
     490            try
     491            {
     492                this.RefreshUsers();
     493                return true;
     494            }
     495            catch (SecurityAccessDeniedException e)
     496            {
     497                return false;
     498            }
     499            catch (MessageSecurityException e)
     500            {
     501                return false;
     502            }
     503        }
    487504    }
    488505}
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services/Imports/HiveAdminClientWeb.cs

    r13754 r13862  
    2525using HeuristicLab.Core;
    2626using HeuristicLab.Clients.Hive.WebJobManager.Services;
    27 
    28 namespace HeuristicLab.Clients.Hive
     27using System.ServiceModel.Security;
     28
     29namespace HeuristicLab.Clients.Hive.WebJobManager.Services.Imports
    2930{
    3031    [Item("Hive Administrator", "Hive Administrator")]
     
    99100                });
    100101            }
    101             catch
    102             {
    103                 throw;
     102            catch(Exception e)
     103            {
     104                throw e;
    104105            }
    105106            finally
     
    200201            }
    201202        }
     203
     204        internal bool CheckLogin()
     205        {
     206            try
     207            {
     208                this.Refresh();
     209                return true;
     210            }
     211            catch (MessageSecurityException e)
     212            {
     213                return false;
     214            }
     215            catch(SecurityAccessDeniedException e)
     216            {
     217                return false;
     218            }
     219        }
    202220    }
    203221}
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services/Imports/HiveClientWeb.cs

    r13860 r13862  
    3333using HeuristicLab.PluginInfrastructure;
    3434using TS = System.Threading.Tasks;
    35 using HeuristicLab.Clients.Hive.WebJobManager.Services;
    36 using HeuristicLab.Clients.Common.Properties;
    3735using Microsoft.AspNetCore.Hosting;
    38 using HeuristicLab.Clients.Hive.WebJobManager.Services.Imports;
    39 
    40 namespace HeuristicLab.Clients.Hive.WebJobManager
     36
     37namespace HeuristicLab.Clients.Hive.WebJobManager.Services.Imports
    4138{
    4239    /// <summary>
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services/Imports/HiveServiceLocatorWeb.cs

    r13860 r13862  
    1111using System.Threading.Tasks;
    1212
    13 namespace HeuristicLab.Clients.Hive.WebJobManager.Services
     13namespace HeuristicLab.Clients.Hive.WebJobManager.Services.Imports
    1414{
    1515    /// <summary>
Note: See TracChangeset for help on using the changeset viewer.