Class UserPreferenceViewModel

java.lang.Object
io.jans.casa.ui.vm.user.UserViewModel
io.jans.casa.ui.vm.user.UserPreferenceViewModel

public class UserPreferenceViewModel extends UserViewModel
This is the ViewModel of page fragment preferred.zul (and the fragments included by it). It controls the functionality for setting the user's preferred authentication method when second factor authentication is enabled
  • Constructor Details

    • UserPreferenceViewModel

      public UserPreferenceViewModel()
  • Method Details

    • getMinCredsFor2FA

      public int getMinCredsFor2FA()
    • isEnableDisableAllowed

      public boolean isEnableDisableAllowed()
    • isUiNotEnoughCredsFor2FA

      public boolean isUiNotEnoughCredsFor2FA()
    • isMfaEnabled

      public boolean isMfaEnabled()
    • setMfaEnabled

      public void setMfaEnabled(boolean mfaEnabled)
    • getPreferredFragments

      public List<org.zkoss.util.Pair<String,String>> getPreferredFragments()
    • isUiPreferredWindowShown

      public boolean isUiPreferredWindowShown()
    • getAvailMethods

      public List<org.zkoss.util.Pair<String,String>> getAvailMethods()
    • getSelectedMethod

      public String getSelectedMethod()
    • childInit

      public void childInit()
    • change

      public void change()
    • prepareSelection

      public void prepareSelection()
    • cancelUpdate

      public void cancelUpdate(org.zkoss.zk.ui.event.Event event)
    • changePreferred

      public void changePreferred(String preferred)
    • update

      public void update()