Class UserController

  • @RestController
    public class UserController
    extends Object
    • Constructor Detail

      • UserController

        public UserController()
    • Method Detail

      • checkName

        public boolean checkName​(String name,
                                 javax.servlet.http.HttpSession session)
        Verifies that user name is available: if user is not logged in, that there's no such user, or user's name in the database matches name in current session.
        name - user name to verify
        session - http session, automatically provide
        true if user can log in with given name