Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/20/11 17:53:27 (13 years ago)
Author:
ascheibe
Message:

#1648

  • added a db layer for user management
  • added a user management clients project
  • worked on user management service
Location:
branches/ClientUserManagement/HeuristicLab.Services.UserManagement/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ClientUserManagement/HeuristicLab.Services.UserManagement/3.3

    • Property svn:ignore
      •  

        old new  
         1HeuristicLab.Services.UserManagement.csproj.user
        12bin
        23obj
  • branches/ClientUserManagement/HeuristicLab.Services.UserManagement/3.3/IUserManagementService.cs

    r6800 r6810  
    2020#endregion
    2121
    22 using System;
    2322using System.Collections.Generic;
    2423using System.Net.Security;
     
    2928  [ServiceContract(ProtectionLevel = ProtectionLevel.EncryptAndSign)]
    3029  public interface IUserManagementService {
     30
    3131    #region User
    3232    [OperationContract]
    33     User GetUser(Guid id);
     33    IEnumerable<User> GetUsers(Application application);
    3434
    3535    [OperationContract]
    36     IEnumerable<User> GetUsers();
     36    User AddUser(User user);
    3737
    3838    [OperationContract]
    39     IEnumerable<User> GetUsersForApplication(Guid applicationId);
    40 
    41     [OperationContract]
    42     Guid AddUser(User user);
    43 
    44     [OperationContract]
    45     void DeleteUser(Guid id);
     39    void DeleteUser(User user);
    4640
    4741    [OperationContract]
     
    4943
    5044    [OperationContract]
    51     void SetRoleForUser(Guid roleId, Guid userId);
     45    void AddUserToRole(Role role, User user);
    5246
    5347    [OperationContract]
    54     IEnumerable<User> GetUsersWithRole(Guid roleId);
     48    void RemoveUserFromRole(Role role, User user);
    5549
    5650    [OperationContract]
    57     void RemoveRoleFromUser(Guid roleId, Guid userId);
    58 
    59     [OperationContract]
    60     bool HasUserRole(Guid userId, Guid roleId);
     51    bool IsUserInRole(User user, Role role);
    6152
    6253    [OperationContract]
     
    6657    #region Role
    6758    [OperationContract]
    68     Role GetRole(Guid id);
     59    IEnumerable<Role> GetRoles(Application application);
    6960
    7061    [OperationContract]
    71     IEnumerable<Role> GetRoles();
    72 
    73     [OperationContract]
    74     IEnumerable<Role> GetRolesForApplication(Guid applicationId);
    75 
    76     [OperationContract]
    77     Guid AddRole(Role role);
     62    Role AddRole(Role role);
    7863
    7964    [OperationContract]
     
    8166
    8267    [OperationContract]
    83     void DeleteRole(Guid id);
     68    void DeleteRole(Role role);
    8469
    8570    [OperationContract]
    86     IEnumerable<Role> GetUserRoles(Guid userId);
     71    IEnumerable<Role> GetUserRoles(User user);
     72    #endregion
     73
     74    #region Application
     75    [OperationContract]
     76    IEnumerable<Application> GetApplications();
     77
     78    [OperationContract]
     79    IEnumerable<User> GetApplicationUsers(Application application);
     80
     81    [OperationContract]
     82    Application AddApplication(Application application);
     83
     84    [OperationContract]
     85    void UpdateApplication(Application application);
     86
     87    [OperationContract]
     88    void DeleteApplication(Application application);
     89    #endregion
     90
     91    #region Client specific methods
     92    [OperationContract]
     93    bool CheckUserExists(string application, string userName, string password);
     94
     95    [OperationContract]
     96    bool GetUser(string application, string userName, string password);
    8797    #endregion
    8898  }
Note: See TracChangeset for help on using the changeset viewer.