From: Frank B. J. <bi...@us...> - 2004-05-05 07:50:26
|
Update of /cvsroot/openbroad/openbroad/src/org/openbroad/shared In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7679 Modified Files: User.java Log Message: Added an array of roles. Index: User.java =================================================================== RCS file: /cvsroot/openbroad/openbroad/src/org/openbroad/shared/User.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** User.java 15 Apr 2004 12:36:22 -0000 1.1.1.1 --- User.java 5 May 2004 07:50:03 -0000 1.2 *************** *** 18,237 **** package org.openbroad.shared; ! import java.util.*; /** * @jboss-net.xml-schema urn="OpenBroad:User" */ ! public class User implements java.io.Serializable { - - /** Creates a new instance of User */ - public User(String username, String password, String name,String address, String city, String zip, - String state,String country, String phone,String company,String fax, String email,String url) - { - - this.username=username; - this.password=password; - this.name=name; - this.company=company; - this.address=address; - this.zip=zip; - this.city=city; - this.state=state; - this.country=country; - this.phone=phone; - this.fax=fax; - this.email=email; - this.url=url; - } - public User() - {} - public String getUsername() - { - return username; - } - - public String getPassword() - { - return password; - } - - public String getName() - { - return name; - } - - public String getCompany() - { - return company; - } - - public String getAddress() - { - return address; - } - - public String getZip() - { - return zip; - } - - public String getState() - { - return state; - } - - public String getCity() - { - return city; - } - - public String getCountry() - { - return country; - } - - public String getPhone() - { - return phone; - } - - public String getFax() - { - return fax; - } - - public String getEmail() - { - return email; - } - - public String getUrl() - { - return url; - } - - public String toString() - { - return getUsername(); - } ! /** ! * Setter for property address. ! * @param address New value of property address. ! */ ! public void setAddress(String address) { ! this.address=address; ! } ! ! /** ! * Setter for property city. ! * @param city New value of property city. ! */ ! public void setCity(String city) { ! this.city=city; ! } ! ! /** ! * Setter for property company. ! * @param company New value of property company. ! */ ! public void setCompany(String company) { ! this.company=company; ! } ! ! /** ! * Setter for property country. ! * @param country New value of property country. ! */ ! public void setCountry(String country) { ! this.country=country; ! } ! ! /** ! * Setter for property email. ! * @param email New value of property email. ! */ ! public void setEmail(String email) { ! this.email=email; ! } ! ! /** ! * Setter for property fax. ! * @param fax New value of property fax. ! */ ! public void setFax(String fax) { ! this.fax=fax; ! } ! ! /** ! * Setter for property name. ! * @param name New value of property name. ! */ ! public void setName(String name) { ! this.name=name; ! } ! ! /** ! * Setter for property password. ! * @param password New value of property password. ! */ ! public void setPassword(String password) { ! this.password=password; ! } ! ! /** ! * Setter for property phone. ! * @param phone New value of property phone. ! */ ! public void setPhone(String phone) { ! this.phone=phone; ! } ! ! /** ! * Setter for property state. ! * @param state New value of property state. ! */ ! public void setState(String state) { ! this.state=state; ! } ! ! /** ! * Setter for property url. ! * @param url New value of property url. ! */ ! public void setUrl(String url) { ! this.url=url; ! } ! ! /** ! * Setter for property username. ! * @param username New value of property username. ! */ ! public void setUsername(String username) { ! this.username=username; ! } ! ! /** ! * Setter for property zip. ! * @param zip New value of property zip. ! */ ! public void setZip(String zip) { ! this.zip=zip; ! } ! ! private String username; ! private String password; ! private String name; ! private String company; ! private String address; ! private String zip; ! private String city; ! private String state; ! private String country; ! private String phone; ! private String fax; ! private String email; ! private String url; ! } \ No newline at end of file --- 18,266 ---- package org.openbroad.shared; ! import java.io.Serializable; /** * @jboss-net.xml-schema urn="OpenBroad:User" */ ! public class User implements Serializable { ! /** Creates a new instance of User */ ! public User(String username, String password, String name,String address, ! String city, String zip, String state,String country, String phone, ! String company,String fax, String email, String url, Object[] roles) ! { ! ! this.username = username; ! this.password = password; ! this.name = name; ! this.company = company; ! this.address = address; ! this.zip = zip; ! this.city = city; ! this.state = state; ! this.country = country; ! this.phone = phone; ! this.fax = fax; ! this.email = email; ! this.url = url; ! this.roles = roles; ! } ! public User() ! {} ! public String getUsername() ! { ! return username; ! } ! ! public String getPassword() ! { ! return password; ! } ! ! public String getName() ! { ! return name; ! } ! ! public String getCompany() ! { ! return company; ! } ! ! public String getAddress() ! { ! return address; ! } ! ! public String getZip() ! { ! return zip; ! } ! ! public String getState() ! { ! return state; ! } ! ! public String getCity() ! { ! return city; ! } ! ! public String getCountry() ! { ! return country; ! } ! ! public String getPhone() ! { ! return phone; ! } ! ! public String getFax() ! { ! return fax; ! } ! ! public String getEmail() ! { ! return email; ! } ! ! public String getUrl() ! { ! return url; ! } ! ! public Object[] getRoles() ! { ! return roles; ! } ! ! public String toString() ! { ! return getUsername(); ! } ! ! /** ! * Setter for property address. ! * @param address New value of property address. ! */ ! public void setAddress(String address) ! { ! this.address = address; ! } ! ! /** ! * Setter for property city. ! * @param city New value of property city. ! */ ! public void setCity(String city) ! { ! this.city = city; ! } ! ! /** ! * Setter for property company. ! * @param company New value of property company. ! */ ! public void setCompany(String company) ! { ! this.company = company; ! } ! ! /** ! * Setter for property country. ! * @param country New value of property country. ! */ ! public void setCountry(String country) ! { ! this.country = country; ! } ! ! /** ! * Setter for property email. ! * @param email New value of property email. ! */ ! public void setEmail(String email) ! { ! this.email = email; ! } ! ! /** ! * Setter for property fax. ! * @param fax New value of property fax. ! */ ! public void setFax(String fax) ! { ! this.fax = fax; ! } ! ! /** ! * Setter for property name. ! * @param name New value of property name. ! */ ! public void setName(String name) ! { ! this.name = name; ! } ! ! /** ! * Setter for property password. ! * @param password New value of property password. ! */ ! public void setPassword(String password) ! { ! this.password = password; ! } ! ! /** ! * Setter for property phone. ! * @param phone New value of property phone. ! */ ! public void setPhone(String phone) ! { ! this.phone = phone; ! } ! ! /** ! * Setter for property state. ! * @param state New value of property state. ! */ ! public void setState(String state) ! { ! this.state = state; ! } ! ! /** ! * Setter for property url. ! * @param url New value of property url. ! */ ! public void setUrl(String url) ! { ! this.url = url; ! } ! ! /** ! * Setter for property username. ! * @param username New value of property username. ! */ ! public void setUsername(String username) ! { ! this.username = username; ! } ! ! /** ! * Setter for property zip. ! * @param zip New value of property zip. ! */ ! public void setZip(String zip) ! { ! this.zip = zip; ! } ! ! /** ! * Setter for property role. ! * @param role New value of property role. ! */ ! public void setRoles(Object[] roles) ! { ! this.roles = roles; ! } ! ! private String username; ! private String password; ! private String name; ! private String company; ! private String address; ! private String zip; ! private String city; ! private String state; ! private String country; ! private String phone; ! private String fax; ! private String email; ! private String url; ! private Object[] roles; } \ No newline at end of file |