/*
 * Copyright 2012 Wyona
 */
package org.wyona.yanel.resources.registration;

/**
 * User registration bean
 */
public class UserRegistrationBean {

    private String uuid;
    private String gender;
    private String firstname;
    private String lastname;
    private String email;
    private String password;
    private String streetName;
    private String zip;
    private String city;
    private String phone;

    /**
     *
     */
    public UserRegistrationBean(String gender, String firstname, String lastname, String email, String password, String city, String phone) {
        this.gender = gender;
        this.firstname = firstname;
        this.lastname = lastname;
        this.email = email;
        this.password = password;
        this.city = city;
        this.phone = phone;
    }

    /**
     *
     */
    public void setUUID(String uuid) {
        this.uuid = uuid;
    }

    /**
     *
     */
    public String getUUID() {
        return uuid;
    }

    /**
     *
     */
    public String getGender() {
        return gender;
    }

    /**
     *
     */
    public String getFirstname() {
        return firstname;
    }

    /**
     *
     */
    public String getLastname() {
        return lastname;
    }

    /**
     *
     */
    public String getEmail() {
        return email;
    }

    /**
     *
     */
    public String getPassword() {
        return password;
    }

    /**
     * Set street name
     * @param name Street name
     */
    public void setStreetName(String name) {
        this.streetName = name;
    }

    /**
     * Get street name
     */
    public String getStreetName() {
        return streetName;
    }

    /**
     * Set ZIP code
     * @param number ZIP code
     */
    public void setZipCode(String number) {
        this.zip = number;
    }

    /**
     * Get ZIP code
     */
    public String getZipCode() {
        return zip;
    }

    /**
     *
     */
    public String getCity() {
        return city;
    }

    /**
     *
     */
    public String getPhone() {
        return phone;
    }
}

@@ -417,16 +417,71 @@
 phone;%0A%0A
+    private boolean confirmedByAdministrator = false;%0A%0A
     /**%0A
@@ -947,32 +947,164 @@
  = uuid;%0A    %7D%0A%0A
+    /**%0A     *%0A     */%0A    public boolean hasAdministratorConfirmedRegistration() %7B%0A        return confirmedByAdministrator;%0A    %7D%0A%0A
     /**%0A     *%0A 

check whether administrator has confirmed registration request