C# Class Domain.User

Inheritance: System.Data.Objects.DataClasses.EntityObject
Datei anzeigen Open project: phillipknauss/CqrsSiteEngine Class Usage Examples

Public Methods

Method 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

Protected Methods

Method 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

Method Description
EncodePassword ( string originalPassword ) : string

Method Details

AddToRole() public method

public AddToRole ( System.Guid userID, string role ) : void
userID System.Guid
role string
return void

Delete() public method

public Delete ( System.Guid userID ) : void
userID System.Guid
return void

Invalidate() public method

public Invalidate ( System.Guid userID ) : void
userID System.Guid
return void

OnUserAddedToRoleEvent() protected method

protected OnUserAddedToRoleEvent ( UserAddedToRoleEvent e ) : void
e UserAddedToRoleEvent
return void

OnUserCreated() protected method

protected OnUserCreated ( UserCreatedEvent e ) : void
e UserCreatedEvent
return void

OnUserDeleted() protected method

protected OnUserDeleted ( UserDeletedEvent e ) : void
e UserDeletedEvent
return void

OnUserInvalidated() protected method

protected OnUserInvalidated ( UserInvalidatedEvent e ) : void
e UserInvalidatedEvent
return void

OnUserPasswordSet() protected method

protected OnUserPasswordSet ( UserPasswordSetEvent e ) : void
e UserPasswordSetEvent
return void

OnUserPropertySet() protected method

protected OnUserPropertySet ( UserPropertySetEvent e ) : void
e UserPropertySetEvent
return void

OnUserRemovedFromRoleEvent() protected method

protected OnUserRemovedFromRoleEvent ( UserRemovedFromRoleEvent e ) : void
e UserRemovedFromRoleEvent
return void

OnUserValidated() protected method

protected OnUserValidated ( UserValidatedEvent e ) : void
e UserValidatedEvent
return void

RemoveFromRole() public method

public RemoveFromRole ( System.Guid userID, string role ) : void
userID System.Guid
role string
return void

SetPassword() public method

public SetPassword ( System.Guid userID, string password ) : void
userID System.Guid
password string
return void

SetProperty() public method

public SetProperty ( System.Guid userID, string name, string value ) : void
userID System.Guid
name string
value string
return void

User() public method

public User ( ) : System
return System

User() public method

public User ( string name ) : System
name string
return System

Validate() public method

public Validate ( System.Guid userID, string name, string password ) : bool
userID System.Guid
name string
password string
return bool

Validated() public method

public Validated ( System.Guid userID ) : void
userID System.Guid
return void