001: /*
002: * Copyright ? 2006 Sun Microsystems, Inc. All rights reserved.
003: *
004: * Sun Microsystems, Inc. has intellectual property rights relating to
005: * technology embodied in the product that is described in this document.
006: * In particular, and without limitation, these intellectual property
007: * rights may include one or more of the U.S. patents listed at
008: * http://www.sun.com/patents and one or more additional patents or
009: * pending patent applications in the U.S. and in other countries.
010: *
011: * U.S. Government Rights - Commercial software. Government users are subject
012: * to the Sun Microsystems, Inc. standard license agreement and applicable
013: * provisions of the FAR and its supplements. Use is subject to license terms.
014: * This distribution may include materials developed by third parties.
015: * Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered
016: * trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
017: */
018: package com.sun.portal.app.blog.model;
019:
020: public class EditUserBean {
021: private String selected = "";
022: private String userName;
023: private String fullName;
024: private String password;
025: private String confirmPassword;
026: private String email;
027: private boolean hasMembership;
028:
029: public void clear() {
030: userName = null;
031: fullName = null;
032: password = null;
033: confirmPassword = null;
034: email = null;
035: hasMembership = false;
036: selected = "";
037: }
038:
039: public boolean isExistingSelected() {
040: return selected.equals("existing");
041: }
042:
043: public boolean isNewSelected() {
044: return selected.equals("new");
045: }
046:
047: public String getUserName() {
048: return userName;
049: }
050:
051: public void setUserName(String userName) {
052: this .userName = userName;
053: }
054:
055: public String getPassword() {
056: return password;
057: }
058:
059: public void setPassword(String password) {
060: this .password = password;
061: }
062:
063: public String getConfirmPassword() {
064: return confirmPassword;
065: }
066:
067: public void setConfirmPassword(String confirmPassword) {
068: this .confirmPassword = confirmPassword;
069: }
070:
071: public String getEmail() {
072: return email;
073: }
074:
075: public void setEmail(String email) {
076: this .email = email;
077: }
078:
079: public String getFullName() {
080: return fullName;
081: }
082:
083: public void setFullName(String fullName) {
084: this .fullName = fullName;
085: }
086:
087: public boolean isHasMembership() {
088: return hasMembership;
089: }
090:
091: public void setHasMembership(boolean hasMembership) {
092: this .hasMembership = hasMembership;
093: }
094:
095: public String getSelected() {
096: return selected;
097: }
098:
099: public void setSelected(String selected) {
100: this.selected = selected;
101: }
102: }
|