001: package org.objectweb.jonas.webapp.jonasadmin.jonasmqconnect;
002:
003: import java.util.ArrayList;
004:
005: import org.apache.struts.action.ActionForm;
006:
007: public class ConnectionFactoryEditForm extends ActionForm {
008: /**
009: * debug or not
010: */
011: private boolean debug = false;
012:
013: /**
014: * printe debug msg
015: * @param s msg
016: */
017: private void debug(String s) {
018: if (debug)
019: System.out.println(s);
020: }
021:
022: /**
023: * operation : CF,TCF,QCF
024: */
025: private String type;
026:
027: /**
028: * operation : view,edit
029: */
030: private String operation;
031:
032: /**
033: * Selected queues
034: */
035: private String[] selectedQueues;
036:
037: /**
038: * Selected topics
039: */
040: private String[] selectedTopics;
041:
042: /**
043: * jndiName
044: */
045: private String jndiName = "sampleTopic";
046:
047: /**
048: * properties
049: */
050: private ArrayList properties;
051:
052: /**
053: * properties name
054: */
055: private ArrayList propertiesName;
056:
057: /**
058: * properties value
059: */
060: private ArrayList propertiesValue;
061:
062: /**
063: * get jndiname
064: * @return
065: */
066: public String getJndiName() {
067: return jndiName;
068: }
069:
070: /**
071: * set jndiname
072: * @param jndiName
073: */
074: public void setJndiName(String jndiName) {
075: this .jndiName = jndiName;
076: }
077:
078: /**
079: * type: CF,TCF,QCF
080: * @return the type
081: */
082: public String getType() {
083: return type;
084: }
085:
086: /**
087: * type: CF,TCF,QCF
088: * @param type the type to set
089: */
090: public void setType(String type) {
091: this .type = type;
092: }
093:
094: /**
095: * Selected Queues
096: * @return the selected queues
097: */
098: public String[] getSelectedQueues() {
099: return selectedQueues;
100: }
101:
102: /**
103: * selected queues
104: * @param selectedQueues the selected queues to set
105: */
106: public void setSelectedQueues(String[] selectedQueues) {
107: this .selectedQueues = selectedQueues;
108: }
109:
110: /**
111: * Selected Topics
112: * @return the selected topics
113: */
114: public String[] getSelectedTopics() {
115: return selectedTopics;
116: }
117:
118: /**
119: * selected topics
120: * @param selectedTopics the selected topics to set
121: */
122: public void setSelectedTopics(String[] selectedTopics) {
123: this .selectedTopics = selectedTopics;
124: }
125:
126: /**
127: * @return the propertiesName
128: */
129: public ArrayList getPropertiesName() {
130: return propertiesName;
131: }
132:
133: /**
134: * @param propertiesName the propertiesName to set
135: */
136: public void setPropertiesName(ArrayList propertiesName) {
137: this .propertiesName = propertiesName;
138: }
139:
140: /**
141: * @return the propertiesValue
142: */
143: public ArrayList getPropertiesValue() {
144: return propertiesValue;
145: }
146:
147: /**
148: * @param propertiesValue the propertiesValue to set
149: */
150: public void setPropertiesValue(ArrayList propertiesValue) {
151: this .propertiesValue = propertiesValue;
152: }
153:
154: /**
155: * @return the properties
156: */
157: public ArrayList getProperties() {
158: return properties;
159: }
160:
161: /**
162: * @param properties the properties to set
163: */
164: public void setProperties(ArrayList properties) {
165: this .properties = properties;
166: }
167:
168: /**
169: * @return the operation
170: */
171: public String getOperation() {
172: return operation;
173: }
174:
175: /**
176: * @param operation the operation to set
177: */
178: public void setOperation(String operation) {
179: this.operation = operation;
180: }
181: }
|