Class UserCanLoginVerifier


  • public class UserCanLoginVerifier
    extends Object
    Class that provides tools to verify if the user can connect in relation to its account state.
    Author:
    Yohann Chastagnier Date: 02/02/13
    • Field Detail

      • settings

        protected static final org.silverpeas.kernel.bundle.SettingBundle settings
      • otherSettings

        protected static final org.silverpeas.kernel.bundle.SettingBundle otherSettings
    • Constructor Detail

      • UserCanLoginVerifier

        protected UserCanLoginVerifier​(User user)
        Default constructor.
        Parameters:
        user - the user behind a connexion attempt.
    • Method Detail

      • getErrorDestination

        public String getErrorDestination()
        Gets the error destination.
        Returns:
        the relative path of the error web page.
      • setUser

        public void setUser​(User user)
        Sets the user.
        Parameters:
        user - the user to set
      • getUser

        public User getUser()
        Gets the user.
        Returns:
        the user
      • getUserById

        protected static UserDetail getUserById​(String userId)
        Gets a user from its identifier.
        Parameters:
        userId - the unique identifier of the user
        Returns:
        the user