KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas_ejb > deployment > xml > CommonEjb


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  *
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or 1any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20  * USA
21  *
22  * Initial developer: JOnAS team
23  * --------------------------------------------------------------------------
24  * $Id: CommonEjb.java,v 1.5 2004/05/10 11:45:44 sauthieg Exp $
25  * --------------------------------------------------------------------------
26  */

27 package org.objectweb.jonas_ejb.deployment.xml;
28
29 import org.objectweb.jonas_lib.deployment.xml.AbsEnvironmentElement;
30 import org.objectweb.jonas_lib.deployment.xml.JLinkedList;
31 import org.objectweb.jonas_lib.deployment.xml.SecurityRoleRef;
32
33 /**
34  * This class defines the implementation of the element session
35  *
36  * @author JOnAS team
37  */

38
39 public abstract class CommonEjb extends AbsEnvironmentElement implements CommonEjbXml {
40
41
42
43     /**
44      * ejb-name
45      */

46     private String JavaDoc ejbName = null;
47
48     /**
49      * home
50      */

51     private String JavaDoc home = null;
52
53     /**
54      * remote
55      */

56     private String JavaDoc remote = null;
57
58     /**
59      * local-home
60      */

61     private String JavaDoc localHome = null;
62
63     /**
64      * local
65      */

66     private String JavaDoc local = null;
67
68     /**
69      * ejb-class
70      */

71     private String JavaDoc ejbClass = null;
72
73
74     /**
75      * messaging-type
76      */

77     private String JavaDoc messagingType = null;
78
79     /**
80      * transaction-type
81      */

82     private String JavaDoc transactionType = null;
83
84
85     /**
86      * security-role-ref
87      */

88     private JLinkedList securityRoleRefList = null;
89
90     /**
91      * security-identity
92      */

93     private SecurityIdentity securityIdentity = null;
94
95     /**
96      * Constructor
97      */

98     public CommonEjb() {
99         super();
100         securityRoleRefList = new JLinkedList("security-role-ref");
101     }
102
103     /**
104      * Gets the ejb-name
105      * @return the ejb-name
106      */

107     public String JavaDoc getEjbName() {
108         return ejbName;
109     }
110
111     /**
112      * Set the ejb-name
113      * @param ejbName ejbName
114      */

115     public void setEjbName(String JavaDoc ejbName) {
116         this.ejbName = ejbName;
117     }
118
119     /**
120      * Gets the home
121      * @return the home
122      */

123     public String JavaDoc getHome() {
124         return home;
125     }
126
127     /**
128      * Set the home
129      * @param home home
130      */

131     public void setHome(String JavaDoc home) {
132         this.home = home;
133     }
134
135     /**
136      * Gets the remote
137      * @return the remote
138      */

139     public String JavaDoc getRemote() {
140         return remote;
141     }
142
143     /**
144      * Set the remote
145      * @param remote remote
146      */

147     public void setRemote(String JavaDoc remote) {
148         this.remote = remote;
149     }
150
151     /**
152      * Gets the local-home
153      * @return the local-home
154      */

155     public String JavaDoc getLocalHome() {
156         return localHome;
157     }
158
159     /**
160      * Set the local-home
161      * @param localHome localHome
162      */

163     public void setLocalHome(String JavaDoc localHome) {
164         this.localHome = localHome;
165     }
166
167     /**
168      * Gets the local
169      * @return the local
170      */

171     public String JavaDoc getLocal() {
172         return local;
173     }
174
175     /**
176      * Set the local
177      * @param local local
178      */

179     public void setLocal(String JavaDoc local) {
180         this.local = local;
181     }
182
183     /**
184      * Gets the ejb-class
185      * @return the ejb-class
186      */

187     public String JavaDoc getEjbClass() {
188         return ejbClass;
189     }
190
191     /**
192      * Set the ejb-class
193      * @param ejbClass ejbClass
194      */

195     public void setEjbClass(String JavaDoc ejbClass) {
196         this.ejbClass = ejbClass;
197     }
198
199     /**
200      * Gets the messaging-type
201      * @return the messaging-type
202      */

203     public String JavaDoc getMessagingType() {
204         return messagingType;
205     }
206
207     /**
208      * Set the messaging-type
209      * @param messagingType messagingType
210      */

211     public void setMessagingType(String JavaDoc messagingType) {
212         this.messagingType = messagingType;
213     }
214
215     /**
216      * Gets the transaction-type
217      * @return the transaction-type
218      */

219     public String JavaDoc getTransactionType() {
220         return transactionType;
221     }
222
223     /**
224      * Set the transaction-type
225      * @param transactionType transactionType
226      */

227     public void setTransactionType(String JavaDoc transactionType) {
228         this.transactionType = transactionType;
229     }
230
231     /**
232      * Gets the security-role-ref
233      * @return the security-role-ref
234      */

235     public JLinkedList getSecurityRoleRefList() {
236         return securityRoleRefList;
237     }
238
239     /**
240      * Set the security-role-ref
241      * @param securityRoleRefList securityRoleRef
242      */

243     public void setSecurityRoleRefList(JLinkedList securityRoleRefList) {
244         this.securityRoleRefList = securityRoleRefList;
245     }
246
247     /**
248      * Add a new security-role-ref element to this object
249      * @param securityRoleRef the securityRoleRefobject
250      */

251     public void addSecurityRoleRef(SecurityRoleRef securityRoleRef) {
252         securityRoleRefList.add(securityRoleRef);
253     }
254
255     /**
256      * Gets the security-identity
257      * @return the security-identity
258      */

259     public SecurityIdentity getSecurityIdentity() {
260         return securityIdentity;
261     }
262
263     /**
264      * Set the security-identity
265      * @param securityIdentity securityIdentity
266      */

267     public void setSecurityIdentity(SecurityIdentity securityIdentity) {
268         this.securityIdentity = securityIdentity;
269     }
270
271
272 }
273
Popular Tags