Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/22/09 18:20:46 (16 years ago)
Author:
asimon
Message:

SecurityManager revised and PermissionManager implemented (ticket #537)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Security.Contracts/3.2/Interfaces/ISecurityManager.cs

    r1520 r1624  
    2020
    2121    [OperationContract]
     22    ICollection<User> GetAllUsers();
     23
     24    [OperationContract]
     25    User GetUserByName(string name);
     26
     27    [OperationContract]
    2228    UserGroup AddNewUserGroup(UserGroup group);
    2329
    2430    [OperationContract]
    25     bool RemoveUserGroup(UserGroup group);
     31    bool RemoveUserGroup(Guid userGroupId);
    2632
    2733    [OperationContract]
     
    2935
    3036    [OperationContract]
    31     bool AddPermissionOwnerToGroup(UserGroup userGroup, PermissionOwner permissionOwner);
     37    ICollection<UserGroup> GetAllUserGroups();
    3238
    3339    [OperationContract]
    34     bool RemovePermissionOwnerFromGroup(UserGroup userGroup, PermissionOwner permissionOwner);
     40    UserGroup GetUserGroupByName(string name);
    3541
    3642    [OperationContract]
    37     bool GrantPermission(PermissionOwner permissionOwner, Permission permission);
     43    PermissionOwner UpdatePermissionOwner(PermissionOwner permissionOwner);
    3844
    3945    [OperationContract]
    40     bool RevokePermission(PermissionOwner permissionOwner, Permission permission);
     46    bool AddPermissionOwnerToGroup(Guid userGroupId, Guid permissionOwnerId);
     47
     48    [OperationContract]
     49    bool RemovePermissionOwnerFromGroup(Guid userGroupId, Guid permissionOwnerId);
     50
     51    [OperationContract]
     52    bool GrantPermission(Guid permissionOwnerId, Guid permissionId, Guid entityId);
     53
     54    [OperationContract]
     55    Permission GetPermissionById(Guid permissionId);
     56
     57    [OperationContract]
     58    bool RevokePermission(Guid permissionOwnerId, Guid permissionId, Guid entityId);
    4159  }
    4260}
Note: See TracChangeset for help on using the changeset viewer.