1 11 12 package freeforums.user; 13 14 import java.rmi.RemoteException ; 15 import javax.ejb.*; 16 17 public class UserBean implements EntityBean { 18 19 transient private EntityContext context; 20 21 public String userName, password, realName, emailAddress; 22 public boolean superUser; 23 24 public String ejbCreate(String userName) { 25 26 this.userName = userName; 27 return null; 28 29 } 30 31 public void ejbPostCreate(String userName) { } 32 33 public void setEntityContext(EntityContext context) { this.context = context; } 34 35 public void unsetEntityContext() { context = null; } 36 37 public void ejbActivate() { } 38 public void ejbPassivate() { } 39 public void ejbLoad() { } 40 public void ejbStore() { } 41 public void ejbRemove() { } 42 43 46 47 public String getUserName() throws RemoteException { return userName; } 48 public void setUserName(String userName) throws RemoteException { this.userName = userName; } 49 50 public String getPassword() throws RemoteException { return password; } 51 public void setPassword(String password) throws RemoteException { this.password = password; } 52 53 public String getRealName() throws RemoteException { return realName; } 54 public void setRealName(String realName) throws RemoteException { this.realName = realName; } 55 56 public String getEmailAddress() throws RemoteException { return emailAddress; } 57 public void setEmailAddress(String emailAddress) throws RemoteException { this.emailAddress = emailAddress; } 58 59 public boolean isSuperUser() throws RemoteException { return superUser; } 60 public void setSuperUser(boolean superUser) throws RemoteException { this.superUser = superUser; } 61 62 63 } 64 | Popular Tags |