Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Security.Contracts/Interfaces/ISecurityManager.cs @ 1378

Last change on this file since 1378 was 1378, checked in by svonolfe, 15 years ago

Added security interfaces (#532)

File size: 776 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Text;
4using HeuristicLab.Security.Contracts.BusinessObjects;
5
6namespace HeuristicLab.Security.Contracts.Interfaces {
7  interface ISecurityManager {
8    User AddNewUser(User user);
9    bool RemoveUser(long userId);
10    User UpdateUser(User user);
11
12    UserGroup AddNewUserGroup(UserGroup group);
13    bool RemoveUserGroup(long groupId);
14    UserGroup UpdateUserGroup(UserGroup group);
15 
16    bool AddPermissionOwnerToGroup(long groupId, long permissionOwnerId);
17    bool RemovePermissionOwnerFromGroup(long groupId, long permissionOwnerId);
18
19    bool GrantPermission(long permissionOwnerId, Guid permissionToken);
20    bool RevokePermission(long permissionOwnerId, Guid permissionToken);
21  }
22}
Note: See TracBrowser for help on using the repository browser.