1 package org.enhydra.pim.ejb.session; 2 3 import java.math.BigDecimal ; 4 5 import org.enhydra.pim.business.UserManager; 6 import org.enhydra.pim.business.UserManagerI; 7 import org.enhydra.pim.business.api.OwnerI; 8 import org.enhydra.pim.exception.EnhydraPimException; 9 10 11 41 public abstract class UserManagerBean implements UserManagerI, javax.ejb.SessionBean { 42 43 private javax.ejb.SessionContext _ctx = null; 44 private UserManager userManager=null; 45 46 47 public void setSessionContext(javax.ejb.SessionContext ctx){ 48 _ctx = ctx; 49 } 50 51 public void unsetSessionContext(){ 52 _ctx = null; 53 } 54 55 public void ejbActivate(){ 56 } 58 59 public void ejbPassivate(){ 60 } 62 63 64 public void ejbRemove(){ 65 userManager= null; 66 } 67 68 public void ejbCreate() throws javax.ejb.CreateException { 69 userManager = new UserManager(); 70 } 71 72 73 76 public OwnerI checkOwner(String username, String password) throws EnhydraPimException { 77 return userManager.checkOwner(username, password); 79 } 80 83 public OwnerI newOwner(BigDecimal handle, String username, String password) { 84 return userManager.newOwner(handle, username, password); 86 } 87 90 public OwnerI newOwner(String username, String password) { 91 return userManager.newOwner(username, password); 93 } 94 97 public OwnerI registerOwner(String username, String password) throws EnhydraPimException { 98 return userManager.registerOwner(username, password); 100 } 101 104 public void removeOwner(OwnerI owner) throws EnhydraPimException { 105 userManager.removeOwner(owner); 106 107 } 108 } | Popular Tags |