[This is preliminary documentation and is subject to change.]
The Permission type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | Permission |
Creates the check instance against the minimum access level for this permission
|
Methods
Name | Description | |
---|---|---|
![]() ![]() | AuthorizeAction |
Checks the action represented by MemberInfo by checking the permission-derived attributes and returns false if
any of authorization attributes do not pass
|
![]() ![]() | AuthorizeAndGuardAction(MemberInfo, ISession, GetSessionFunc) |
Guards the action represented by MemberInfo by checking the permission-derived attributes and throwing exception if
any of authorization attributes do not pass
|
![]() ![]() | AuthorizeAndGuardAction(IEnumerable Permission , String, ISession, GetSessionFunc) |
Guards the action represented by enumerable of permissions by checking all permissions and throwing exception if
any of authorization attributes do not pass
|
![]() | Check(ISession) |
Checks the permission for requested action as specified in particular permission .ctor.
The check is performed in the scope of supplied session, or if no session was supplied then
current execution context session is assumed
|
![]() | Check(User) |
Shortcut method that creates a temp/mock BaseSession object thus checking permission in mock BaseSession context
|
![]() | DoCheckAccessLevel |
Override to perform access level checks per user's AccessLevel instance.
True if accessLevel satisfies permission requirements.
The default implementation checks the access.Level
|
![]() | ![]() | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from ![]() |
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() ![]() | FindAuthorizationFailingPermission |
Checks the action represented by MemberInfo by checking the permission-derived attributes and returns false if
any of authorization attributes do not pass
|
![]() | ![]() | Returns the hash code for this instance. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | ![]() | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from ![]() |
![]() | ![]() | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from ![]() |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() ![]() | MultipleFromConf |
Makes multiple permissions from conf node
|
![]() | ToString | (Overrides ![]() |
Extension Methods
Fields
Name | Description | |
---|---|---|
![]() ![]() | CONFIG_PERMISSION_SECTION | |
![]() ![]() | CONFIG_PERMISSIONS_SECTION |
Properties
Name | Description | |
---|---|---|
![]() | Description |
Returns the permission description - base implementation returns permission name
|
![]() | FullPath |
Returns full permission path - a concatenation of its path and name
|
![]() | Level |
Specifies the minimum access level for the permission check to pass
|
![]() | Name |
Returns the permission name - the last segment of the path
|
![]() | Path |
Returns a top-rooted path to this permission (without name)
|
![]() | ![]() | When implemented in a derived class, gets a unique identifier for this (Inherited from ![]() ![]() |
See Also