Package monashbook.models

Examples of monashbook.models.Patron


    private String categoryPageTitle;
    @PostConstruct
    public void init(){
        pageTitle = "Monash Books";
        // Create dummy Patron
        Patron patron1 = new Patron();
        patron1.setEmail("kingso.bboy@gmail.com");
        patron1.setPassword("8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92");
        patron1.setName("Leon");
        patron1.setPhone("0452507625");
       
        // Add the patron to the database
        bookService.addPatron(patron1);
       
        // Create dummy AdminUser
View Full Code Here


    public List<Review> getPatronReviews() {
        return loginedPatron.getReviews();
    }
   
    public String loginClick() {
        loginedPatron = new Patron();
        patrons = bookService.getAllPatrons();
        String url = "index.xhtml";
        FacesContext context = FacesContext.getCurrentInstance();
        context.getExternalContext().getSessionMap().put("email", email);
        patrons = bookService.getAllPatrons();
View Full Code Here

        }
       
       
        String url = "index.xhtml";
        if(loginedPatron == null){
            loginedPatron = new Patron();
            if(name.equals("")){
                signUpErrorMessage = "Name can not be empty.";
                url = "registration.xhtml";
            }else if(email.equals("")) {
                signUpErrorMessage = "Email can not be empty.";
View Full Code Here

TOP

Related Classes of monashbook.models.Patron

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.