C# Class Chaos.Mcm.Permission.InMemory.Folder

Inheritance: IFolder
Exibir arquivo Open project: CHAOS-Community/CHAOS.Portal.MCM Class Usage Examples

Public Methods

Method Description
AddGroup ( IEntityPermission groupPermission ) : void

Adds group permissions to a folder. If the group already exists then the permissions are merged

AddSubFolder ( IFolder folder ) : void
AddUser ( IEntityPermission userPermission ) : void

Adds user permissions to a folder. If the user already exists then the permissions are merged

DoesUserOrGroupHavePermission ( System.Guid userGuid, IEnumerable groupGuids, FolderPermission permission ) : bool

Return true if user or group has permission to folder

Folder ( ) : Chaos.Mcm.Data.Dto
GetAncestorFolders ( ) : IEnumerable
GetSubFolders ( ) : IEnumerable

Private Methods

Method Description
GroupsHavePermissionToFolder ( IEnumerable groupGuids, FolderPermission permission ) : bool
InheritParentPermissions ( IFolder folder ) : void

Adds of Combines the current folders permissions with that of the parent

PropagatePermissionsToSubFolders ( IFolder folder ) : void

Triggers all sub folders to inherit their parents permissions

SetEntityPermission ( FolderPermission>.IDictionary entityPermissions, System.Guid entityGuid, FolderPermission permission ) : void
UserHasPemissionToFolder ( System.Guid userGuid, FolderPermission permission ) : bool

Method Details

AddGroup() public method

Adds group permissions to a folder. If the group already exists then the permissions are merged
public AddGroup ( IEntityPermission groupPermission ) : void
groupPermission IEntityPermission
return void

AddSubFolder() public method

public AddSubFolder ( IFolder folder ) : void
folder IFolder
return void

AddUser() public method

Adds user permissions to a folder. If the user already exists then the permissions are merged
public AddUser ( IEntityPermission userPermission ) : void
userPermission IEntityPermission
return void

DoesUserOrGroupHavePermission() public method

Return true if user or group has permission to folder
public DoesUserOrGroupHavePermission ( System.Guid userGuid, IEnumerable groupGuids, FolderPermission permission ) : bool
userGuid System.Guid
groupGuids IEnumerable
permission Chaos.Mcm.Data.Dto.FolderPermission
return bool

Folder() public method

public Folder ( ) : Chaos.Mcm.Data.Dto
return Chaos.Mcm.Data.Dto

GetAncestorFolders() public method

public GetAncestorFolders ( ) : IEnumerable
return IEnumerable

GetSubFolders() public method

public GetSubFolders ( ) : IEnumerable
return IEnumerable