KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > pim > ejb > session > UserManagerBean


1 package org.enhydra.pim.ejb.session;
2
3 import java.math.BigDecimal JavaDoc;
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 /**
12  *
13  * <!-- begin-user-doc --> A generated session bean <!-- end-user-doc --> *
14  <!-- lomboz.beginDefinition -->
15  <?xml version="1.0" encoding="UTF-8"?>
16  <lomboz:EJB xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:lomboz="http://lomboz.objectlearn.com/xml/lomboz">
17  <lomboz:session>
18  <lomboz:sessionEjb>
19  <j2ee:display-name>UserManager</j2ee:display-name>
20  <j2ee:ejb-name>UserManagerEjb</j2ee:ejb-name>
21  <j2ee:ejb-class>org.enhydra.pim.ejb.session.UserManagerBean</j2ee:ejb-class>
22  <j2ee:session-type>Stateless</j2ee:session-type>
23  <j2ee:transaction-type>Container</j2ee:transaction-type>
24  </lomboz:sessionEjb>
25  </lomboz:session>
26  </lomboz:EJB>
27  <!-- lomboz.endDefinition -->
28  *
29  * <!-- begin-xdoclet-definition -->
30  * @ejb.bean name="UserManager"
31  * jndi-name="UserManagerEjb"
32  * local-jndi-name="LocalUserManagerEjb"
33  * remote-business-interface="org.enhydra.pim.business.UserManagerI"
34  * local-business-interface="org.enhydra.pim.business.UserManagerI"
35  * type="Stateless"
36  * transaction-type="Container"
37  *
38  * <!-- end-xdoclet-definition -->
39  * @generated
40  */

41 public abstract class UserManagerBean implements UserManagerI, javax.ejb.SessionBean JavaDoc{
42
43     private javax.ejb.SessionContext JavaDoc _ctx = null;
44     private UserManager userManager=null;
45     
46     
47     public void setSessionContext(javax.ejb.SessionContext JavaDoc ctx){
48         _ctx = ctx;
49     }
50
51     public void unsetSessionContext(){
52         _ctx = null;
53     }
54     
55     public void ejbActivate(){
56         // TODO Auto-generated method stub
57
}
58
59     public void ejbPassivate(){
60         // TODO Auto-generated method stub
61
}
62
63     
64     public void ejbRemove(){
65         userManager= null;
66     }
67
68     public void ejbCreate() throws javax.ejb.CreateException JavaDoc{
69         userManager = new UserManager();
70     }
71
72         
73     /* (non-Javadoc)
74      * @see org.enhydra.pim.business.UserManagerI#checkOwner(java.lang.String, java.lang.String)
75      */

76     public OwnerI checkOwner(String JavaDoc username, String JavaDoc password) throws EnhydraPimException {
77         // TODO Auto-generated method stub
78
return userManager.checkOwner(username, password);
79     }
80     /* (non-Javadoc)
81      * @see org.enhydra.pim.business.UserManagerI#newOwner(java.math.BigDecimal, java.lang.String, java.lang.String)
82      */

83     public OwnerI newOwner(BigDecimal JavaDoc handle, String JavaDoc username, String JavaDoc password) {
84         // TODO Auto-generated method stub
85
return userManager.newOwner(handle, username, password);
86     }
87     /* (non-Javadoc)
88      * @see org.enhydra.pim.business.UserManagerI#newOwner(java.lang.String, java.lang.String)
89      */

90     public OwnerI newOwner(String JavaDoc username, String JavaDoc password) {
91         // TODO Auto-generated method stub
92
return userManager.newOwner(username, password);
93     }
94     /* (non-Javadoc)
95      * @see org.enhydra.pim.business.UserManagerI#registerOwner(java.lang.String, java.lang.String)
96      */

97     public OwnerI registerOwner(String JavaDoc username, String JavaDoc password) throws EnhydraPimException {
98         // TODO Auto-generated method stub
99
return userManager.registerOwner(username, password);
100     }
101     /* (non-Javadoc)
102      * @see org.enhydra.pim.business.UserManagerI#removeOwner(org.enhydra.pim.business.api.OwnerI)
103      */

104     public void removeOwner(OwnerI owner) throws EnhydraPimException {
105         userManager.removeOwner(owner);
106
107     }
108 }
Popular Tags