Permissions Class |
Namespace: AskiaPortalCmn.Common
The Permissions type exposes the following members.
Name | Description | |
---|---|---|
![]() | Permissions(IContext, IUser) |
Initialize the permissions of the specified user
|
![]() | Permissions(IContext, IUserProfile) |
Initialize the permissions of the specified user
|
Name | Description | |
---|---|---|
![]() | IsModified |
Flag to indicates if the object
has been modified since his initialization.
|
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. |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetAllItems |
Returns all permission items.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | 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.
|
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | 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.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |