C# Class MvcTemplate.Validators.AccountValidator

Inheritance: BaseValidator, IAccountValidator
Mostra file Open project: NonFactors/MVC5.Template Class Usage Examples

Private Properties

Property Type Description
IsActive System.Boolean
IsAuthenticated System.Boolean
IsCorrectPassword System.Boolean
IsUniqueEmail System.Boolean
IsUniqueUsername System.Boolean
IsValidResetToken System.Boolean

Public Methods

Method 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

Method 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 method

public AccountValidator ( IUnitOfWork unitOfWork, IHasher hasher ) : MvcTemplate.Components.Mvc
unitOfWork IUnitOfWork
hasher IHasher
return MvcTemplate.Components.Mvc

CanCreate() public method

public CanCreate ( AccountCreateView view ) : System.Boolean
view MvcTemplate.Objects.AccountCreateView
return System.Boolean

CanDelete() public method

public CanDelete ( ProfileDeleteView view ) : System.Boolean
view MvcTemplate.Objects.ProfileDeleteView
return System.Boolean

CanEdit() public method

public CanEdit ( AccountEditView view ) : System.Boolean
view MvcTemplate.Objects.AccountEditView
return System.Boolean

CanEdit() public method

public CanEdit ( ProfileEditView view ) : System.Boolean
view MvcTemplate.Objects.ProfileEditView
return System.Boolean

CanLogin() public method

public CanLogin ( AccountLoginView view ) : System.Boolean
view MvcTemplate.Objects.AccountLoginView
return System.Boolean

CanRecover() public method

public CanRecover ( MvcTemplate.Objects.AccountRecoveryView view ) : System.Boolean
view MvcTemplate.Objects.AccountRecoveryView
return System.Boolean

CanRegister() public method

public CanRegister ( AccountRegisterView view ) : System.Boolean
view MvcTemplate.Objects.AccountRegisterView
return System.Boolean

CanReset() public method

public CanReset ( MvcTemplate.Objects.AccountResetView view ) : System.Boolean
view MvcTemplate.Objects.AccountResetView
return System.Boolean