C# Class MvcTemplate.Validators.AccountValidator

Inheritance: BaseValidator, IAccountValidator
Afficher le fichier Open project: NonFactors/MVC5.Template Class Usage Examples

Private Properties

Свойство Type Description
IsActive System.Boolean
IsAuthenticated System.Boolean
IsCorrectPassword System.Boolean
IsUniqueEmail System.Boolean
IsUniqueUsername System.Boolean
IsValidResetToken System.Boolean

Méthodes publiques

Méthode Description
AccountValidator ( IUnitOfWork unitOfWork, IHasher hasher ) : MvcTemplate.Components.Mvc
CanCreate ( AccountCreateView view ) : System.Boolean
CanDelete ( ProfileDeleteView view ) : System.Boolean
CanEdit ( AccountEditView view ) : System.Boolean
CanEdit ( ProfileEditView view ) : System.Boolean
CanLogin ( AccountLoginView view ) : System.Boolean
CanRecover ( MvcTemplate.Objects.AccountRecoveryView view ) : System.Boolean
CanRegister ( AccountRegisterView view ) : System.Boolean
CanReset ( MvcTemplate.Objects.AccountResetView view ) : System.Boolean

Private Methods

Méthode Description
IsActive ( String username ) : System.Boolean
IsAuthenticated ( String username, String password ) : System.Boolean
IsCorrectPassword ( Int32 accountId, String password ) : System.Boolean
IsUniqueEmail ( Int32 accountId, String email ) : System.Boolean
IsUniqueUsername ( Int32 accountId, String username ) : System.Boolean
IsValidResetToken ( String token ) : System.Boolean

Method Details

AccountValidator() public méthode

public AccountValidator ( IUnitOfWork unitOfWork, IHasher hasher ) : MvcTemplate.Components.Mvc
unitOfWork IUnitOfWork
hasher IHasher
Résultat MvcTemplate.Components.Mvc

CanCreate() public méthode

public CanCreate ( AccountCreateView view ) : System.Boolean
view MvcTemplate.Objects.AccountCreateView
Résultat System.Boolean

CanDelete() public méthode

public CanDelete ( ProfileDeleteView view ) : System.Boolean
view MvcTemplate.Objects.ProfileDeleteView
Résultat System.Boolean

CanEdit() public méthode

public CanEdit ( AccountEditView view ) : System.Boolean
view MvcTemplate.Objects.AccountEditView
Résultat System.Boolean

CanEdit() public méthode

public CanEdit ( ProfileEditView view ) : System.Boolean
view MvcTemplate.Objects.ProfileEditView
Résultat System.Boolean

CanLogin() public méthode

public CanLogin ( AccountLoginView view ) : System.Boolean
view MvcTemplate.Objects.AccountLoginView
Résultat System.Boolean

CanRecover() public méthode

public CanRecover ( MvcTemplate.Objects.AccountRecoveryView view ) : System.Boolean
view MvcTemplate.Objects.AccountRecoveryView
Résultat System.Boolean

CanRegister() public méthode

public CanRegister ( AccountRegisterView view ) : System.Boolean
view MvcTemplate.Objects.AccountRegisterView
Résultat System.Boolean

CanReset() public méthode

public CanReset ( MvcTemplate.Objects.AccountResetView view ) : System.Boolean
view MvcTemplate.Objects.AccountResetView
Résultat System.Boolean