protected override void ExecuteParticular(MainModel model) { logger.Info("begin"); RuoloInfo ruolo = NavigationHandler.RuoloInfo; bool result = WSStub.isAllowedOTP(ruolo); if (result) { model.HSMIsAllowedOTP = true; } else { model.HSMIsAllowedOTP = false; } logger.Info("end"); }
protected override void ExecuteParticular(MainModel model) { logger.Info("begin"); RuoloInfo ruolo = NavigationHandler.RuoloInfo; bool result = WSStub.LibroFirmaIsAutorized(ruolo); if (result) { model.IsAutorizedLF = true; } else { model.IsAutorizedLF = false; } logger.Info("end"); }
protected override void ExecuteParticular(MainModel model) { logger.Info("begin"); UserInfo userInfo = NavigationHandler.CurrentUser; RuoloInfo ruolo = NavigationHandler.RuoloInfo; model.TabModel = NavigationHandler.Model.TabModel; bool result = WSStub.ExistsElementWithSignPades(userInfo, ruolo); if (result) { (model.TabModel as LibroFirmaModel).ExistsSignPades = true; } else { (model.TabModel as LibroFirmaModel).ExistsSignPades = false; } logger.Info("end"); }
public Ruolo(RuoloInfo input) { this.Id = input.Id; this.Descrizione = input.Descrizione; }
public bool LibroFirmaIsAutorized(RuoloInfo info) { return(MobileManager.LibroFirmaIsAutorized(info)); }
public bool ExistsElementWithSignPades(UserInfo userInfo, RuoloInfo roleInfo) { return(MobileManager.ExistsElementWithSignPades(userInfo, roleInfo)); }
/// <summary> /// Verifica se il ruolo è abilitato alla funzione richedi OTP /// </summary> /// <param name="info"></param> /// <returns></returns> public bool isAllowedOTP(RuoloInfo info) { return(MobileManager.isAllowedOTP(info)); }