C# Class SenseNet.ContentRepository.Storage.Security.SecurityHandler

Show file Open project: maxpavlov/FlexNet Class Usage Examples

Private Properties

Property Type Description
Assert void
AssertSubtree void
BitsToString string
BreakInheritanceWithoutReset void
Delete void
GetAccessDeniedException System.Exception
GetAllPermissions PermissionValue[]
GetAllPermissions PermissionValue[]
GetEntriesFromAcl IEnumerable
GetNodeNotFoundEx System.Exception
GetPermission PermissionValue
GetPermission PermissionValue
GetSubtreePermission PermissionValue
GetSubtreePermission PermissionValue
HasPermission bool
HasSubTreePermission bool
HasSubTreePermission bool
ImportPermissionExceptionHelper System.Exception
Move void
RemoveBreakInheritanceWithoutReset void
RemoveExplicitEntriesWithoutReset void
Rename void
SecurityHandler System
SetAcl void
SetBits void
SetBits void
SetPermissionsWithoutReset void
WriteEntries void

Public Methods

Method Description
Assert ( ) : void
Assert ( System.Data.Node node ) : void
Assert ( System.Data.Node node, string message ) : void
Assert ( NodeHead nodeHead ) : void
Assert ( NodeHead nodeHead, string message ) : void
Assert ( string message ) : void
AssertSubtree ( ) : void
AssertSubtree ( System.Data.Node node ) : void
AssertSubtree ( System.Data.Node node, string message ) : void
AssertSubtree ( NodeHead nodeHead ) : void
AssertSubtree ( NodeHead nodeHead, string message ) : void
AssertSubtree ( string message ) : void
BreakInheritance ( ) : void
ExplicateGroupMembership ( ) : void
ExplicateOrganizationUnitMemberships ( IUser user ) : void
ExportPermissions ( XmlWriter writer ) : void
GetAcl ( ) : SnAccessControlList
GetAcl ( int nodeId, string path, int creatorId, int lastModifierId ) : SnAccessControlList
GetAclEditor ( ) : AclEditor
GetAllEntries ( ) : SenseNet.ContentRepository.Storage.Security.SecurityEntry[]
GetAllPermissions ( ) : PermissionValue[]
GetAllPermissions ( IUser user ) : PermissionValue[]
GetAllPermissions ( IUser user, System.Data.Node node ) : PermissionValue[]
GetAllPermissions ( IUser user, NodeHead nodeHead ) : PermissionValue[]
GetAllPermissions ( System.Data.Node node ) : PermissionValue[]
GetAllPermissions ( NodeHead nodeHead ) : PermissionValue[]
GetEffectiveEntries ( ) : SenseNet.ContentRepository.Storage.Security.SecurityEntry[]
GetEffectiveEntries ( string path ) : SenseNet.ContentRepository.Storage.Security.SecurityEntry[]
GetExplicitEntries ( ) : SenseNet.ContentRepository.Storage.Security.SecurityEntry[]
GetPermission ( ) : PermissionValue
GetPermission ( IUser user ) : PermissionValue
GetPermission ( IUser user, System.Data.Node node ) : PermissionValue
GetPermission ( IUser user, NodeHead nodeHead ) : PermissionValue
GetPermission ( System.Data.Node node ) : PermissionValue
GetPermission ( NodeHead nodeHead ) : PermissionValue
GetPermittedLevel ( NodeHead nodeHead ) : PermittedLevel
GetPermittedLevel ( string path, int creatorId, int lastModifierId ) : PermittedLevel
GetPermittedLevel ( string path, int creatorId, int lastModifierId, IUser user ) : PermittedLevel
GetPrincipals ( ) : List
GetSubtreePermission ( ) : PermissionValue
GetSubtreePermission ( IUser user ) : PermissionValue
GetSubtreePermission ( IUser user, System.Data.Node node ) : PermissionValue
GetSubtreePermission ( IUser user, NodeHead nodeHead ) : PermissionValue
GetSubtreePermission ( System.Data.Node node ) : PermissionValue
GetSubtreePermission ( NodeHead nodeHead ) : PermissionValue
HasPermission ( ) : bool
HasPermission ( IUser user ) : bool
HasPermission ( IUser user, System.Data.Node node ) : bool
HasPermission ( IUser user, NodeHead nodeHead ) : bool
HasPermission ( IUser user, string path, int creatorId, int lastModifierId ) : bool
HasPermission ( System.Data.Node node ) : bool
HasPermission ( NodeHead nodeHead ) : bool
HasSubTreePermission ( ) : bool
HasSubTreePermission ( IUser user ) : bool
HasSubTreePermission ( IUser user, System.Data.Node node ) : bool
HasSubTreePermission ( IUser user, NodeHead nodeHead ) : bool
HasSubTreePermission ( System.Data.Node node ) : bool
HasSubTreePermission ( NodeHead nodeHead ) : bool
ImportPermissions ( XmlNode permissionsNode, string metadataPath ) : void
IsInGroup ( int groupId ) : bool
RemoveBreakInheritance ( ) : void
RemoveExplicitEntries ( ) : void
Reset ( ) : void
SetAcl ( SnAccessControlList acl ) : void
SetAcl ( SnAccessControlList acl, int nodeId ) : void
SetAcl ( SnAccessControlList acl, string path ) : void
SetPermission ( IGroup group, bool isInheritable, PermissionType permissionType, PermissionValue permissionValue ) : void
SetPermission ( IOrganizationalUnit orgUnit, bool isInheritable, PermissionType permissionType, PermissionValue permissionValue ) : void
SetPermission ( ISecurityMember securityMember, bool isInheritable, PermissionType permissionType, PermissionValue permissionValue ) : void
SetPermission ( IUser user, bool isInheritable, PermissionType permissionType, PermissionValue permissionValue ) : void
SetPermissions ( int principalId, bool isInheritable, PermissionValue permissionValues ) : void

Private Methods

Method Description
Assert ( string path, int creatorId, int lastModifierId, string message ) : void
AssertSubtree ( string path, int creatorId, int lastModifierId, string message ) : void
BitsToString ( int allowBits, int denyBits ) : string
BreakInheritanceWithoutReset ( ) : void
Delete ( string sourcePath ) : void
GetAccessDeniedException ( string path, int creatorId, int lastModifierId, string message, PermissionType permissionTypes, IUser user ) : Exception
GetAllPermissions ( IUser user, string path, int creatorId, int lastModifierId ) : PermissionValue[]
GetAllPermissions ( string path, int creatorId, int lastModifierId ) : PermissionValue[]
GetEntriesFromAcl ( AclEditor ed, SnAccessControlList origAcl, SnAccessControlList acl ) : IEnumerable
GetNodeNotFoundEx ( object idOrPath ) : Exception
GetPermission ( IUser user, string path, int creatorId, int lastModifierId ) : PermissionValue
GetPermission ( string path, int creatorId, int lastModifierId ) : PermissionValue
GetSubtreePermission ( IUser user, string path, int creatorId, int lastModifierId ) : PermissionValue
GetSubtreePermission ( string path, int creatorId, int lastModifierId ) : PermissionValue
HasPermission ( string path, int creatorId, int lastModifierId ) : bool
HasSubTreePermission ( IUser user, string path, int creatorId, int lastModifierId ) : bool
HasSubTreePermission ( string path, int creatorId, int lastModifierId ) : bool
ImportPermissionExceptionHelper ( string message, string metadataPath, Exception innerException ) : Exception
Move ( string sourcePath, string targetPath ) : void
RemoveBreakInheritanceWithoutReset ( ) : void
RemoveExplicitEntriesWithoutReset ( ) : void
Rename ( string originalPath, string newPath ) : void
SecurityHandler ( System.Data.Node node ) : System
SetAcl ( System.Data.Node node, SnAccessControlList acl ) : void
SetBits ( int &allowBits, int &denyBits ) : void
SetBits ( int &allowBits, int &denyBits, PermissionType permissionType, PermissionValue permissionValue ) : void
SetPermissionsWithoutReset ( int principalId, bool isInheritable, PermissionValue permissionValues ) : void
WriteEntries ( IEnumerable entries ) : void

Method Details

Assert() public method

public Assert ( ) : void
return void

Assert() public static method

public static Assert ( System.Data.Node node ) : void
node System.Data.Node
return void

Assert() public static method

public static Assert ( System.Data.Node node, string message ) : void
node System.Data.Node
message string
return void

Assert() public static method

public static Assert ( NodeHead nodeHead ) : void
nodeHead NodeHead
return void

Assert() public static method

public static Assert ( NodeHead nodeHead, string message ) : void
nodeHead NodeHead
message string
return void

Assert() public method

public Assert ( string message ) : void
message string
return void

AssertSubtree() public method

public AssertSubtree ( ) : void
return void

AssertSubtree() public static method

public static AssertSubtree ( System.Data.Node node ) : void
node System.Data.Node
return void

AssertSubtree() public static method

public static AssertSubtree ( System.Data.Node node, string message ) : void
node System.Data.Node
message string
return void

AssertSubtree() public static method

public static AssertSubtree ( NodeHead nodeHead ) : void
nodeHead NodeHead
return void

AssertSubtree() public static method

public static AssertSubtree ( NodeHead nodeHead, string message ) : void
nodeHead NodeHead
message string
return void

AssertSubtree() public method

public AssertSubtree ( string message ) : void
message string
return void

BreakInheritance() public method

public BreakInheritance ( ) : void
return void

ExplicateGroupMembership() public static method

public static ExplicateGroupMembership ( ) : void
return void

ExplicateOrganizationUnitMemberships() public static method

public static ExplicateOrganizationUnitMemberships ( IUser user ) : void
user IUser
return void

ExportPermissions() public method

public ExportPermissions ( XmlWriter writer ) : void
writer System.Xml.XmlWriter
return void

GetAcl() public method

public GetAcl ( ) : SnAccessControlList
return SnAccessControlList

GetAcl() public static method

public static GetAcl ( int nodeId, string path, int creatorId, int lastModifierId ) : SnAccessControlList
nodeId int
path string
creatorId int
lastModifierId int
return SnAccessControlList

GetAclEditor() public method

public GetAclEditor ( ) : AclEditor
return AclEditor

GetAllEntries() public method

public GetAllEntries ( ) : SenseNet.ContentRepository.Storage.Security.SecurityEntry[]
return SenseNet.ContentRepository.Storage.Security.SecurityEntry[]

GetAllPermissions() public method

public GetAllPermissions ( ) : PermissionValue[]
return PermissionValue[]

GetAllPermissions() public method

public GetAllPermissions ( IUser user ) : PermissionValue[]
user IUser
return PermissionValue[]

GetAllPermissions() public method

public GetAllPermissions ( IUser user, System.Data.Node node ) : PermissionValue[]
user IUser
node System.Data.Node
return PermissionValue[]

GetAllPermissions() public method

public GetAllPermissions ( IUser user, NodeHead nodeHead ) : PermissionValue[]
user IUser
nodeHead NodeHead
return PermissionValue[]

GetAllPermissions() public static method

public static GetAllPermissions ( System.Data.Node node ) : PermissionValue[]
node System.Data.Node
return PermissionValue[]

GetAllPermissions() public static method

public static GetAllPermissions ( NodeHead nodeHead ) : PermissionValue[]
nodeHead NodeHead
return PermissionValue[]

GetEffectiveEntries() public method

public GetEffectiveEntries ( ) : SenseNet.ContentRepository.Storage.Security.SecurityEntry[]
return SenseNet.ContentRepository.Storage.Security.SecurityEntry[]

GetEffectiveEntries() public static method

public static GetEffectiveEntries ( string path ) : SenseNet.ContentRepository.Storage.Security.SecurityEntry[]
path string
return SenseNet.ContentRepository.Storage.Security.SecurityEntry[]

GetExplicitEntries() public method

public GetExplicitEntries ( ) : SenseNet.ContentRepository.Storage.Security.SecurityEntry[]
return SenseNet.ContentRepository.Storage.Security.SecurityEntry[]

GetPermission() public method

public GetPermission ( ) : PermissionValue
return PermissionValue

GetPermission() public method

public GetPermission ( IUser user ) : PermissionValue
user IUser
return PermissionValue

GetPermission() public method

public GetPermission ( IUser user, System.Data.Node node ) : PermissionValue
user IUser
node System.Data.Node
return PermissionValue

GetPermission() public method

public GetPermission ( IUser user, NodeHead nodeHead ) : PermissionValue
user IUser
nodeHead NodeHead
return PermissionValue

GetPermission() public static method

public static GetPermission ( System.Data.Node node ) : PermissionValue
node System.Data.Node
return PermissionValue

GetPermission() public static method

public static GetPermission ( NodeHead nodeHead ) : PermissionValue
nodeHead NodeHead
return PermissionValue

GetPermittedLevel() public static method

public static GetPermittedLevel ( NodeHead nodeHead ) : PermittedLevel
nodeHead NodeHead
return PermittedLevel

GetPermittedLevel() public static method

public static GetPermittedLevel ( string path, int creatorId, int lastModifierId ) : PermittedLevel
path string
creatorId int
lastModifierId int
return PermittedLevel

GetPermittedLevel() public static method

public static GetPermittedLevel ( string path, int creatorId, int lastModifierId, IUser user ) : PermittedLevel
path string
creatorId int
lastModifierId int
user IUser
return PermittedLevel

GetPrincipals() public method

public GetPrincipals ( ) : List
return List

GetSubtreePermission() public method

public GetSubtreePermission ( ) : PermissionValue
return PermissionValue

GetSubtreePermission() public method

public GetSubtreePermission ( IUser user ) : PermissionValue
user IUser
return PermissionValue

GetSubtreePermission() public method

public GetSubtreePermission ( IUser user, System.Data.Node node ) : PermissionValue
user IUser
node System.Data.Node
return PermissionValue

GetSubtreePermission() public method

public GetSubtreePermission ( IUser user, NodeHead nodeHead ) : PermissionValue
user IUser
nodeHead NodeHead
return PermissionValue

GetSubtreePermission() public static method

public static GetSubtreePermission ( System.Data.Node node ) : PermissionValue
node System.Data.Node
return PermissionValue

GetSubtreePermission() public static method

public static GetSubtreePermission ( NodeHead nodeHead ) : PermissionValue
nodeHead NodeHead
return PermissionValue

HasPermission() public method

public HasPermission ( ) : bool
return bool

HasPermission() public method

public HasPermission ( IUser user ) : bool
user IUser
return bool

HasPermission() public method

public HasPermission ( IUser user, System.Data.Node node ) : bool
user IUser
node System.Data.Node
return bool

HasPermission() public method

public HasPermission ( IUser user, NodeHead nodeHead ) : bool
user IUser
nodeHead NodeHead
return bool

HasPermission() public static method

public static HasPermission ( IUser user, string path, int creatorId, int lastModifierId ) : bool
user IUser
path string
creatorId int
lastModifierId int
return bool

HasPermission() public static method

public static HasPermission ( System.Data.Node node ) : bool
node System.Data.Node
return bool

HasPermission() public static method

public static HasPermission ( NodeHead nodeHead ) : bool
nodeHead NodeHead
return bool

HasSubTreePermission() public method

public HasSubTreePermission ( ) : bool
return bool

HasSubTreePermission() public method

public HasSubTreePermission ( IUser user ) : bool
user IUser
return bool

HasSubTreePermission() public static method

public static HasSubTreePermission ( IUser user, System.Data.Node node ) : bool
user IUser
node System.Data.Node
return bool

HasSubTreePermission() public static method

public static HasSubTreePermission ( IUser user, NodeHead nodeHead ) : bool
user IUser
nodeHead NodeHead
return bool

HasSubTreePermission() public static method

public static HasSubTreePermission ( System.Data.Node node ) : bool
node System.Data.Node
return bool

HasSubTreePermission() public static method

public static HasSubTreePermission ( NodeHead nodeHead ) : bool
nodeHead NodeHead
return bool

ImportPermissions() public method

public ImportPermissions ( XmlNode permissionsNode, string metadataPath ) : void
permissionsNode System.Xml.XmlNode
metadataPath string
return void

IsInGroup() public method

public IsInGroup ( int groupId ) : bool
groupId int
return bool

RemoveBreakInheritance() public method

public RemoveBreakInheritance ( ) : void
return void

RemoveExplicitEntries() public method

public RemoveExplicitEntries ( ) : void
return void

Reset() public static method

public static Reset ( ) : void
return void

SetAcl() public method

public SetAcl ( SnAccessControlList acl ) : void
acl SnAccessControlList
return void

SetAcl() public static method

public static SetAcl ( SnAccessControlList acl, int nodeId ) : void
acl SnAccessControlList
nodeId int
return void

SetAcl() public static method

public static SetAcl ( SnAccessControlList acl, string path ) : void
acl SnAccessControlList
path string
return void

SetPermission() public method

public SetPermission ( IGroup group, bool isInheritable, PermissionType permissionType, PermissionValue permissionValue ) : void
group IGroup
isInheritable bool
permissionType SenseNet.ContentRepository.Storage.Schema.PermissionType
permissionValue PermissionValue
return void

SetPermission() public method

public SetPermission ( IOrganizationalUnit orgUnit, bool isInheritable, PermissionType permissionType, PermissionValue permissionValue ) : void
orgUnit IOrganizationalUnit
isInheritable bool
permissionType SenseNet.ContentRepository.Storage.Schema.PermissionType
permissionValue PermissionValue
return void

SetPermission() public method

public SetPermission ( ISecurityMember securityMember, bool isInheritable, PermissionType permissionType, PermissionValue permissionValue ) : void
securityMember ISecurityMember
isInheritable bool
permissionType SenseNet.ContentRepository.Storage.Schema.PermissionType
permissionValue PermissionValue
return void

SetPermission() public method

public SetPermission ( IUser user, bool isInheritable, PermissionType permissionType, PermissionValue permissionValue ) : void
user IUser
isInheritable bool
permissionType SenseNet.ContentRepository.Storage.Schema.PermissionType
permissionValue PermissionValue
return void

SetPermissions() public method

public SetPermissions ( int principalId, bool isInheritable, PermissionValue permissionValues ) : void
principalId int
isInheritable bool
permissionValues PermissionValue
return void