IPermissions Methods |
The IPermissions type exposes the following members.
Name | Description | |
---|---|---|
Can(PermissionTo) |
Returns the value of the specified
`AskiaPortal` permission as boolean.
| |
Can(String, NullableGuid) |
Returns the value of the specified permission as boolean.
| |
Change(AccessTo, AccessLevel) |
Change the value of the
specified `AskiaPortal` permission. It will not save the change in the database unless you explicitly call the Save method. | |
Change(PermissionTo, Boolean) |
Change the value of the
specified `AskiaPortal` permission. It will not save the change in the database unless you explicitly call the Save method. | |
Change(String, AccessLevel, NullableGuid) |
Change the value of the specified permission. It will not save the change in the database unless you explicitly call the Save method. | |
Change(String, Boolean, NullableGuid) |
Change the value of the specified permission. It will not save the change in the database unless you explicitly call the Save method. | |
Clear |
Remove all permissions of the user It will not save the change in the database unless you explicitly call the Save method. | |
GetAllItems |
Returns all permission items.
| |
GetItems |
Returns the permission items of
the specified module guid.
| |
GetLevel(AccessTo) |
Returns the value of the specified `AskiaPortal` permission.
| |
GetLevel(String, NullableGuid) |
Returns the value of the specified permission.
| |
Reload |
Reload the permissions using the current database
values.
| |
Remove(AccessTo) |
Remove the specified AskiaPortal permission item. It will not save the change in the database unless you explicitly call the Save method. | |
Remove(PermissionTo) |
Remove the specified AskiaPortal permission item. It will not save the change in the database unless you explicitly call the Save method. | |
Remove(String, NullableGuid) |
Remove the specified permission item. It will not save the change in the database unless you explicitly call the Save method. | |
RemoveAll |
Remove all permissions of the specified module. It will not save the change in the database unless you explicitly call the Save method. | |
Save |
Save the modification in the database
if the object has been modified.
|