Changeset 1384
- Timestamp:
- 03/20/09 20:27:15 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 added
- 1 deleted
- 10 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 } -
trunk/sources/HeuristicLab.Security.DataAccess/HeuristicLab.Security.DataAccess.csproj
r1378 r1384 56 56 </ItemGroup> 57 57 <ItemGroup> 58 <Compile Include="IDataAdapter.cs" /> 58 59 <Compile Include="IPermissionAdapter.cs" /> 59 60 <Compile Include="IPermissionOwnerAdapter.cs" /> -
trunk/sources/HeuristicLab.Security.DataAccess/IPermissionAdapter.cs
r1378 r1384 23 23 using System.Collections.Generic; 24 24 using System.Text; 25 using HeuristicLab.DataAccess;26 25 using HeuristicLab.Security.Contracts.BusinessObjects; 27 using HeuristicLab.DataAccess.Interfaces;28 26 29 namespace HeuristicLab. Hive.Server.Core.InternalInterfaces.DataAccess {27 namespace HeuristicLab.Security.DataAccess { 30 28 /// <summary> 31 29 /// The permission database adapter 32 30 /// </summary> 33 31 interface IPermissionAdapter: IDataAdapter<Permission> { 34 bool hasPermssion(String permissionOwnerId, Guid permissionToken, 32 /// <summary> 33 /// Determines, if the permission Owner has the permission on the entity 34 /// </summary> 35 /// <param name="permissionOwnerId"></param> 36 /// <param name="permissionId"></param> 37 /// <param name="entityId"></param> 38 /// <returns></returns> 39 GrantedPermission getPermssion(Guid permissionOwnerId, Guid permissionId, 40 Guid entityId); 41 42 /// <summary> 43 /// Adds a permission 44 /// </summary> 45 /// <param name="permissionOwnerId"></param> 46 /// <param name="permissionId"></param> 47 /// <param name="entityId"></param> 48 /// <returns></returns> 49 bool addPermission(Guid permissionOwnerId, Guid permissionId, 50 Guid entityId); 51 52 /// <summary> 53 /// Removes a permission 54 /// </summary> 55 /// <param name="permissionOwnerId"></param> 56 /// <param name="permissionId"></param> 57 /// <param name="entityId"></param> 58 /// <returns></returns> 59 bool removePermission(Guid permissionOwnerId, Guid permissionId, 35 60 Guid entityId); 36 61 } -
trunk/sources/HeuristicLab.Security.DataAccess/IPermissionOwnerAdapter.cs
r1378 r1384 23 23 using System.Collections.Generic; 24 24 using System.Text; 25 using HeuristicLab.DataAccess;26 25 using HeuristicLab.Security.Contracts.BusinessObjects; 27 using HeuristicLab.DataAccess.Interfaces;28 26 29 27 namespace HeuristicLab.Security.DataAccess { … … 32 30 /// </summary> 33 31 public interface IPermissionOwnerAdapter: IDataAdapter<PermissionOwner> { 34 /// <summary>35 /// Gets the permission owner and updates the values of the object36 /// </summary>37 /// <param name="resource"></param>38 /// <returns></returns>39 bool GetById(PermissionOwner permOwner);40 41 32 /// <summary> 42 33 /// Get the permission owner with the specified name -
trunk/sources/HeuristicLab.Security.DataAccess/IUserAdapter.cs
r1378 r1384 24 24 using System.Text; 25 25 using HeuristicLab.Security.Contracts.BusinessObjects; 26 using HeuristicLab.DataAccess.Interfaces;27 26 28 27 namespace HeuristicLab.Security.DataAccess { -
trunk/sources/HeuristicLab.Security.DataAccess/IUserGroupAdapter.cs
r1378 r1384 24 24 using System.Text; 25 25 using HeuristicLab.Security.Contracts.BusinessObjects; 26 using HeuristicLab.DataAccess.Interfaces;27 26 28 27 namespace HeuristicLab.Security.DataAccess {
Note: See TracChangeset
for help on using the changeset viewer.