Click or drag to resize

IUser Methods

The IUser type exposes the following members.

Methods
  NameDescription
Public methodActivate
Activate a user account.
It will not save the change in the database unless you explicitly call the Save method.
Public methodApprove
Approve a user account.
It will not save the change in the database unless you explicitly call the Save method.
Public methodBuildEncryptedKey
Build an encrypted key to perform the specified action.
Public methodCanReach
Indicates if the current user is allowed to reach the specified contact.
Public methodChangeGroup
Change the group of the user.
It will not save the change in the database unless you explicitly call the Save method
Public methodChangePassword
Change the user password.
It will not save the new password in the database unless you explicitly call the Save method
Public methodChangeUserProfile
Change the user profile to inherits.
It will not save the change in the database unless you explicitly call the Save method
Public methodDelete
Flag the entity as deleted in database
(Inherited from IEntityBase.)
Public methodDelete(Boolean)
Flag an entity as deleted or definitively delete it in the database.
(Inherited from IOwnerEntity.)
Public methodCode exampleDemoteASuperAdmin
Demote a super-administrator.
It will not save the change in the database unless you explicitly call the Save method
Public methodHasAdminRightToEdit(IGroup)
Indicates if the current user has the administrative privileges to edit the specified group.
Public methodHasAdminRightToEdit(IUser)
Indicates if the current user has the administrative privileges to edit the specified user.
Public methodHasAdminRightToView(IGroup)
Indicates if the current user has the administrative privileges to view the specified group.
Public methodHasAdminRightToView(IUser)
Indicates if the current user has the administrative privileges to view the specified user.
Public methodCode exampleIsPasswordMatch
Check whenever the specified password match the current user password
Public methodCode examplePromoteAsSuperAdmin
Promote the user as a super-administrator.
It will not save the change in the database unless you explicitly call the Save method
Public methodReload
Reload the entity, using the current database value. Returns successful value when the operation succeed
(Inherited from IOwnerEntity.)
Public methodResetLastSessionUsage
Reset the information of the latest user session, and save it in the database.
Public methodRestore
Restore an entity flag as deleted
(Inherited from IOwnerEntity.)
Public methodSave
Save (create or update) an entity
(Inherited from IEntityBase.)
Public methodSendActivationEmail
Send the activation email to the user.
Public methodTouchLastConnectionAt
Change the date of the latest user connection to now, and save it in the database.
Public methodTouchLastSessionUsage
Change the information about the latest user session, and save it in the database.
Public methodUnAuthorize
Unauthorize the user account.
It will not save the change in the database unless you explicitly call the Save method.
Public methodValidate
Validate the integrity of the entity
(Inherited from IEntityBase.)
Top
See Also