001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: *
008: * modify it under the terms of the GNU Lesser General Public
009: * License as published by the Free Software Foundation; either
010: * version 2.1 of the License, or 1any later version.
011: *
012: * This library is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this library; if not, write to the Free Software
019: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
020: * USA
021: *
022: * Initial developer: JOnAS team
023: * --------------------------------------------------------------------------
024: * $Id: CommonEjb.java 4716 2004-05-10 11:45:44Z sauthieg $
025: * --------------------------------------------------------------------------
026: */package org.objectweb.jonas_ejb.deployment.xml;
027:
028: import org.objectweb.jonas_lib.deployment.xml.AbsEnvironmentElement;
029: import org.objectweb.jonas_lib.deployment.xml.JLinkedList;
030: import org.objectweb.jonas_lib.deployment.xml.SecurityRoleRef;
031:
032: /**
033: * This class defines the implementation of the element session
034: *
035: * @author JOnAS team
036: */
037:
038: public abstract class CommonEjb extends AbsEnvironmentElement implements
039: CommonEjbXml {
040:
041: /**
042: * ejb-name
043: */
044: private String ejbName = null;
045:
046: /**
047: * home
048: */
049: private String home = null;
050:
051: /**
052: * remote
053: */
054: private String remote = null;
055:
056: /**
057: * local-home
058: */
059: private String localHome = null;
060:
061: /**
062: * local
063: */
064: private String local = null;
065:
066: /**
067: * ejb-class
068: */
069: private String ejbClass = null;
070:
071: /**
072: * messaging-type
073: */
074: private String messagingType = null;
075:
076: /**
077: * transaction-type
078: */
079: private String transactionType = null;
080:
081: /**
082: * security-role-ref
083: */
084: private JLinkedList securityRoleRefList = null;
085:
086: /**
087: * security-identity
088: */
089: private SecurityIdentity securityIdentity = null;
090:
091: /**
092: * Constructor
093: */
094: public CommonEjb() {
095: super ();
096: securityRoleRefList = new JLinkedList("security-role-ref");
097: }
098:
099: /**
100: * Gets the ejb-name
101: * @return the ejb-name
102: */
103: public String getEjbName() {
104: return ejbName;
105: }
106:
107: /**
108: * Set the ejb-name
109: * @param ejbName ejbName
110: */
111: public void setEjbName(String ejbName) {
112: this .ejbName = ejbName;
113: }
114:
115: /**
116: * Gets the home
117: * @return the home
118: */
119: public String getHome() {
120: return home;
121: }
122:
123: /**
124: * Set the home
125: * @param home home
126: */
127: public void setHome(String home) {
128: this .home = home;
129: }
130:
131: /**
132: * Gets the remote
133: * @return the remote
134: */
135: public String getRemote() {
136: return remote;
137: }
138:
139: /**
140: * Set the remote
141: * @param remote remote
142: */
143: public void setRemote(String remote) {
144: this .remote = remote;
145: }
146:
147: /**
148: * Gets the local-home
149: * @return the local-home
150: */
151: public String getLocalHome() {
152: return localHome;
153: }
154:
155: /**
156: * Set the local-home
157: * @param localHome localHome
158: */
159: public void setLocalHome(String localHome) {
160: this .localHome = localHome;
161: }
162:
163: /**
164: * Gets the local
165: * @return the local
166: */
167: public String getLocal() {
168: return local;
169: }
170:
171: /**
172: * Set the local
173: * @param local local
174: */
175: public void setLocal(String local) {
176: this .local = local;
177: }
178:
179: /**
180: * Gets the ejb-class
181: * @return the ejb-class
182: */
183: public String getEjbClass() {
184: return ejbClass;
185: }
186:
187: /**
188: * Set the ejb-class
189: * @param ejbClass ejbClass
190: */
191: public void setEjbClass(String ejbClass) {
192: this .ejbClass = ejbClass;
193: }
194:
195: /**
196: * Gets the messaging-type
197: * @return the messaging-type
198: */
199: public String getMessagingType() {
200: return messagingType;
201: }
202:
203: /**
204: * Set the messaging-type
205: * @param messagingType messagingType
206: */
207: public void setMessagingType(String messagingType) {
208: this .messagingType = messagingType;
209: }
210:
211: /**
212: * Gets the transaction-type
213: * @return the transaction-type
214: */
215: public String getTransactionType() {
216: return transactionType;
217: }
218:
219: /**
220: * Set the transaction-type
221: * @param transactionType transactionType
222: */
223: public void setTransactionType(String transactionType) {
224: this .transactionType = transactionType;
225: }
226:
227: /**
228: * Gets the security-role-ref
229: * @return the security-role-ref
230: */
231: public JLinkedList getSecurityRoleRefList() {
232: return securityRoleRefList;
233: }
234:
235: /**
236: * Set the security-role-ref
237: * @param securityRoleRefList securityRoleRef
238: */
239: public void setSecurityRoleRefList(JLinkedList securityRoleRefList) {
240: this .securityRoleRefList = securityRoleRefList;
241: }
242:
243: /**
244: * Add a new security-role-ref element to this object
245: * @param securityRoleRef the securityRoleRefobject
246: */
247: public void addSecurityRoleRef(SecurityRoleRef securityRoleRef) {
248: securityRoleRefList.add(securityRoleRef);
249: }
250:
251: /**
252: * Gets the security-identity
253: * @return the security-identity
254: */
255: public SecurityIdentity getSecurityIdentity() {
256: return securityIdentity;
257: }
258:
259: /**
260: * Set the security-identity
261: * @param securityIdentity securityIdentity
262: */
263: public void setSecurityIdentity(SecurityIdentity securityIdentity) {
264: this.securityIdentity = securityIdentity;
265: }
266:
267: }
|