C# Class Domain.User

Inheritance: System.Data.Objects.DataClasses.EntityObject
Afficher le fichier Open project: phillipknauss/CqrsSiteEngine Class Usage Examples

Méthodes publiques

Méthode Description
AddToRole ( System.Guid userID, string role ) : void
Delete ( System.Guid userID ) : void
Invalidate ( System.Guid userID ) : void
RemoveFromRole ( System.Guid userID, string role ) : void
SetPassword ( System.Guid userID, string password ) : void
SetProperty ( System.Guid userID, string name, string value ) : void
User ( ) : System
User ( string name ) : System
Validate ( System.Guid userID, string name, string password ) : bool
Validated ( System.Guid userID ) : void

Méthodes protégées

Méthode Description
OnUserAddedToRoleEvent ( UserAddedToRoleEvent e ) : void
OnUserCreated ( UserCreatedEvent e ) : void
OnUserDeleted ( UserDeletedEvent e ) : void
OnUserInvalidated ( UserInvalidatedEvent e ) : void
OnUserPasswordSet ( UserPasswordSetEvent e ) : void
OnUserPropertySet ( UserPropertySetEvent e ) : void
OnUserRemovedFromRoleEvent ( UserRemovedFromRoleEvent e ) : void
OnUserValidated ( UserValidatedEvent e ) : void

Private Methods

Méthode Description
EncodePassword ( string originalPassword ) : string

Method Details

AddToRole() public méthode

public AddToRole ( System.Guid userID, string role ) : void
userID System.Guid
role string
Résultat void

Delete() public méthode

public Delete ( System.Guid userID ) : void
userID System.Guid
Résultat void

Invalidate() public méthode

public Invalidate ( System.Guid userID ) : void
userID System.Guid
Résultat void

OnUserAddedToRoleEvent() protected méthode

protected OnUserAddedToRoleEvent ( UserAddedToRoleEvent e ) : void
e UserAddedToRoleEvent
Résultat void

OnUserCreated() protected méthode

protected OnUserCreated ( UserCreatedEvent e ) : void
e UserCreatedEvent
Résultat void

OnUserDeleted() protected méthode

protected OnUserDeleted ( UserDeletedEvent e ) : void
e UserDeletedEvent
Résultat void

OnUserInvalidated() protected méthode

protected OnUserInvalidated ( UserInvalidatedEvent e ) : void
e UserInvalidatedEvent
Résultat void

OnUserPasswordSet() protected méthode

protected OnUserPasswordSet ( UserPasswordSetEvent e ) : void
e UserPasswordSetEvent
Résultat void

OnUserPropertySet() protected méthode

protected OnUserPropertySet ( UserPropertySetEvent e ) : void
e UserPropertySetEvent
Résultat void

OnUserRemovedFromRoleEvent() protected méthode

protected OnUserRemovedFromRoleEvent ( UserRemovedFromRoleEvent e ) : void
e UserRemovedFromRoleEvent
Résultat void

OnUserValidated() protected méthode

protected OnUserValidated ( UserValidatedEvent e ) : void
e UserValidatedEvent
Résultat void

RemoveFromRole() public méthode

public RemoveFromRole ( System.Guid userID, string role ) : void
userID System.Guid
role string
Résultat void

SetPassword() public méthode

public SetPassword ( System.Guid userID, string password ) : void
userID System.Guid
password string
Résultat void

SetProperty() public méthode

public SetProperty ( System.Guid userID, string name, string value ) : void
userID System.Guid
name string
value string
Résultat void

User() public méthode

public User ( ) : System
Résultat System

User() public méthode

public User ( string name ) : System
name string
Résultat System

Validate() public méthode

public Validate ( System.Guid userID, string name, string password ) : bool
userID System.Guid
name string
password string
Résultat bool

Validated() public méthode

public Validated ( System.Guid userID ) : void
userID System.Guid
Résultat void