Click or drag to resize

Permissions Class

Manage the list of user permissions.
Inheritance Hierarchy
SystemObject
  AskiaPortalCmn.CommonPermissions

Namespace:  AskiaPortalCmn.Common
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
public class Permissions : IPermissions

The Permissions type exposes the following members.

Constructors
  NameDescription
Public methodPermissions(IContext, IUser)
Initialize the permissions of the specified user
Public methodPermissions(IContext, IUserProfile)
Initialize the permissions of the specified user
Top
Properties
  NameDescription
Public propertyIsModified
Flag to indicates if the object has been modified since his initialization.
Top
Methods
  NameDescription
Public methodCan(PermissionTo)
Returns the value of the specified `AskiaPortal` permission as boolean.
Public methodCan(String, NullableGuid)
Returns the value of the specified permission as boolean.
Public methodCode exampleChange(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.
Public methodChange(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.
Public methodCode exampleChange(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.
Public methodChange(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.
Public methodCode exampleClear
Remove all permissions of the user
It will not save the change in the database unless you explicitly call the Save method.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetAllItems
Returns all permission items.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetItems
Returns the permission items of the specified module guid.
Public methodGetLevel(AccessTo)
Returns the value of the specified `AskiaPortal` permission.
Public methodGetLevel(String, NullableGuid)
Returns the value of the specified permission.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReload
Reload the permissions using the current database values.
Public methodRemove(AccessTo)
Remove the specified AskiaPortal permission item.
It will not save the change in the database unless you explicitly call the Save method.
Public methodRemove(PermissionTo)
Remove the specified AskiaPortal permission item.
It will not save the change in the database unless you explicitly call the Save method.
Public methodRemove(String, NullableGuid)
Remove the specified permission item.
It will not save the change in the database unless you explicitly call the Save method.
Public methodRemoveAll
Remove all permissions of the specified module.
It will not save the change in the database unless you explicitly call the Save method.
Public methodSave
Save the modification in the database if the object has been modified.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also