Class UserCanLoginVerifier


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

      • UserCanLoginVerifier

        protected UserCanLoginVerifier​(UserDetail user)
        Default constructor.
        Parameters:
        user -
    • Method Detail

      • getErrorDestination

        public String getErrorDestination()
        Gets the error destination.
        Returns:
      • setUser

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

        public UserDetail 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