Free cookie consent management tool by TermsFeed Policy Generator

source: branches/UserManagement/HeuristicLab.Services.Authentication/Interfaces/IAuthenticationService.cs @ 6765

Last change on this file since 6765 was 5257, checked in by mjesner, 14 years ago

#1196

File size: 2.9 KB
RevLine 
[5257]1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2010 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21using System;
[4584]22using System.Collections.Generic;
23using HeuristicLab.Services.Authentication.DataTransfer;
24using System.ServiceModel;
25using System.Net.Security;
26
[5257]27namespace HeuristicLab.Services.Authentication {
28  [ServiceContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)]
29  public interface IAuthenticationService {
[4590]30
[5257]31    #region User
[4588]32
[5257]33    [OperationContract]
34    User GetUser(Guid id);
[4964]35
[5257]36    [OperationContract()]
37    IEnumerable<User> GetUsers();
[4588]38
[5257]39    [OperationContract()]
40    IEnumerable<User> GetUsersForApplication(Guid applicationId);
[4647]41
[5257]42    [OperationContract]
43    Guid AddUser(User user);
[4590]44
[5257]45    [OperationContract]
46    void DeleteUser(Guid id);
[4590]47
[5257]48    [OperationContract]
49    void UpdateUser(User user);
[4590]50
[5257]51    [OperationContract]
52    void AddUserToRole(Guid roleId, Guid userId);
[4979]53
[5257]54    [OperationContract]
55    IEnumerable<Guid> GetUsersInRole(Guid roleId);
[4979]56
[5257]57    [OperationContract]
58    void RemoveUserFromRole(Guid roleId, Guid userId);
[4647]59
[5257]60    [OperationContract]
61    bool IsUserInRole(Guid userId, Guid roleId);
[4647]62
[5257]63    [OperationContract]
64    User ResetPassword(string applicationName, string userName, string password);
[4588]65
[5257]66    #endregion
[4590]67
[5257]68    #region Role
[4590]69
[5257]70    [OperationContract]
71    Role GetRole(Guid id);
[4590]72
[5257]73    [OperationContract()]
74    IEnumerable<Role> GetRoles();
[4647]75
[5257]76    [OperationContract()]
77    IEnumerable<Role> GetRolesForApplication(Guid applicationId);
[4590]78
[5257]79    [OperationContract]
80    Guid AddRole(Role role);
[4590]81
[5257]82    [OperationContract]
83    void UpdateRole(Role role);
[4590]84
[5257]85    [OperationContract]
86    void DeleteRole(Guid id);
[4979]87
[5257]88    [OperationContract]
89    IEnumerable<Guid> GetRolesForUser(Guid userId);
[4926]90
[5257]91    #endregion
[4979]92
[5257]93    #region Application
[4979]94
[5257]95    [OperationContract]
96    Application GetApplication(Guid id);
[4590]97
[5257]98    [OperationContract]
99    Guid AddApplication(Application application);
[4647]100
[5257]101    [OperationContract]
102    void DeleteApplication(Guid id);
[4590]103
[5257]104    [OperationContract]
105    IEnumerable<Application> GetApplications();
[4590]106
[5257]107    [OperationContract]
108    void UpdateApplication(Application application);
[4726]109
[5257]110    #endregion
111  }
[4584]112}
Note: See TracBrowser for help on using the repository browser.