Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package nl.fontys.pro.web;
- import java.io.Serializable;
- /**
- *
- * @author Dennis Pawlik
- */
- public class UserBean implements Serializable {
- private String user;
- private String password;
- public UserBean() {
- }
- public String getUser() {
- return user;
- }
- public String getPassword() {
- return password;
- }
- public void setUser(String user) {
- this.user = user;
- }
- public void setPassword(String password) {
- this.password = password;
- }
- public boolean checkLogin(UserBeanMapper mapper) {
- if (mapper.getPassword(this).equals(password)) {
- return true;
- } else {
- return false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement