Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Text;
|
---|
4 | using HeuristicLab.Security.Contracts.BusinessObjects;
|
---|
5 |
|
---|
6 | namespace 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.