Changeset 1384 for trunk/sources/HeuristicLab.Security.Contracts
- Timestamp:
- 03/20/09 20:27:15 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Security.Contracts
- Files:
-
- 2 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Security.Contracts/BusinessObjects/Permission.cs
r1378 r1384 24 24 using System.Text; 25 25 using System.Runtime.Serialization; 26 using HeuristicLab.DataAccess;27 26 28 27 namespace HeuristicLab.Security.Contracts.BusinessObjects { … … 31 30 public class Permission: PersistableObject { 32 31 [DataMember] 33 public String Name { get; set; } 32 public String Description { get; set; } 33 34 [DataMember] 35 public Guid EntityId { get; set; } 34 36 } 35 37 } -
trunk/sources/HeuristicLab.Security.Contracts/BusinessObjects/PermissionOwner.cs
r1378 r1384 24 24 using System.Text; 25 25 using System.Runtime.Serialization; 26 using HeuristicLab.DataAccess;27 26 28 27 namespace HeuristicLab.Security.Contracts.BusinessObjects { … … 32 31 [DataMember] 33 32 public string Name { get; set; } 33 34 [DataMember] 35 public Guid EntityId { get; set; } 34 36 } 35 37 } -
trunk/sources/HeuristicLab.Security.Contracts/HeuristicLab.Security.Contracts.csproj
r1378 r1384 42 42 --> 43 43 <ItemGroup> 44 <Compile Include="BusinessObjects\GrantedPermission s.cs" />44 <Compile Include="BusinessObjects\GrantedPermission.cs" /> 45 45 <Compile Include="BusinessObjects\Permission.cs" /> 46 46 <Compile Include="BusinessObjects\PermissionOwner.cs" /> 47 47 <Compile Include="BusinessObjects\User.cs" /> 48 48 <Compile Include="BusinessObjects\UserGroup.cs" /> 49 <Compile Include="BusinessObjects\PersistableObject.cs" /> 49 50 <Compile Include="SecurityContractsPlugin.cs" /> 50 51 <Compile Include="Interfaces\IPermissionManager.cs" /> -
trunk/sources/HeuristicLab.Security.Contracts/Interfaces/IPermissionManager.cs
r1378 r1384 6 6 interface IPermissionManager { 7 7 Guid Authenticate(String userName, String password); 8 bool CheckPermission(Guid sessionId, Guid permission Token,8 bool CheckPermission(Guid sessionId, Guid permissionId, 9 9 Guid enitityId); 10 10 void EndSession(Guid sessionId); -
trunk/sources/HeuristicLab.Security.Contracts/Interfaces/ISecurityManager.cs
r1378 r1384 7 7 interface ISecurityManager { 8 8 User AddNewUser(User user); 9 bool RemoveUser( longuserId);9 bool RemoveUser(Guid userId); 10 10 User UpdateUser(User user); 11 11 12 12 UserGroup AddNewUserGroup(UserGroup group); 13 bool RemoveUserGroup( longgroupId);13 bool RemoveUserGroup(Guid groupId); 14 14 UserGroup UpdateUserGroup(UserGroup group); 15 16 bool AddPermissionOwnerToGroup(long groupId, long permissionOwnerId);17 bool RemovePermissionOwnerFromGroup(long groupId, long permissionOwnerId);18 15 19 bool GrantPermission(long permissionOwnerId, Guid permissionToken); 20 bool RevokePermission(long permissionOwnerId, Guid permissionToken); 16 bool AddPermissionOwnerToGroup(Guid groupId, Guid permissionOwnerId); 17 bool RemovePermissionOwnerFromGroup(Guid groupId, Guid permissionOwnerId); 18 19 bool GrantPermission(Guid permissionOwnerId, Guid permissionId); 20 bool RevokePermission(Guid permissionOwnerId, Guid permissionId); 21 21 } 22 22 }
Note: See TracChangeset
for help on using the changeset viewer.