hi guys ,

I am ne wto JavaEE . i want to buil e-commerce webiste using java but i am confused with design patterns that which class should contain functions like

confirmEmail
AuthenticateUser
Addtocart
ForgotPassword
ResetPassword


If i can get some sample so that i know in which class should i put these functions i mean in UserClass oe UserService or something else