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 DestinationEditForm 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 : view,edit,apply
024: */
025: private String operation;
026:
027: /**
028: * Selected queues
029: */
030: private String[] selectedQueues;
031:
032: /**
033: * Selected topics
034: */
035: private String[] selectedTopics;
036:
037: /**
038: * jndiName
039: */
040: private String jndiName = "sampleTopic";
041:
042: /**
043: * properties
044: */
045: private ArrayList properties;
046:
047: /**
048: * stat properties
049: */
050: private ArrayList statProperties;
051:
052: /**
053: * properties name
054: */
055: private ArrayList propertiesName;
056:
057: /**
058: * properties value
059: */
060: private ArrayList propertiesValue;
061:
062: /**
063: * isTopic
064: */
065: private boolean isTopic;
066:
067: /**
068: * get jndiname
069: * @return
070: */
071: public String getJndiName() {
072: return jndiName;
073: }
074:
075: /**
076: * set jndiname
077: * @param jndiName
078: */
079: public void setJndiName(String jndiName) {
080: this .jndiName = jndiName;
081: }
082:
083: /**
084: * add,modify,delete
085: * @return the operation
086: */
087: public String getOperation() {
088: return operation;
089: }
090:
091: /**
092: * add,modify,delete
093: * @param operation the operation to set
094: */
095: public void setOperation(String operation) {
096: this .operation = operation;
097: }
098:
099: /**
100: * Selected Queues
101: * @return the selected queues
102: */
103: public String[] getSelectedQueues() {
104: return selectedQueues;
105: }
106:
107: /**
108: * selected queues
109: * @param selectedQueues the selected queues to set
110: */
111: public void setSelectedQueues(String[] selectedQueues) {
112: this .selectedQueues = selectedQueues;
113: }
114:
115: /**
116: * Selected Topics
117: * @return the selected topics
118: */
119: public String[] getSelectedTopics() {
120: return selectedTopics;
121: }
122:
123: /**
124: * selected topics
125: * @param selectedTopics the selected topics to set
126: */
127: public void setSelectedTopics(String[] selectedTopics) {
128: this .selectedTopics = selectedTopics;
129: }
130:
131: /**
132: * @return the propertiesName
133: */
134: public ArrayList getPropertiesName() {
135: return propertiesName;
136: }
137:
138: /**
139: * @param propertiesName the propertiesName to set
140: */
141: public void setPropertiesName(ArrayList propertiesName) {
142: this .propertiesName = propertiesName;
143: }
144:
145: /**
146: * @return the propertiesValue
147: */
148: public ArrayList getPropertiesValue() {
149: return propertiesValue;
150: }
151:
152: /**
153: * @param propertiesValue the propertiesValue to set
154: */
155: public void setPropertiesValue(ArrayList propertiesValue) {
156: this .propertiesValue = propertiesValue;
157: }
158:
159: /**
160: * @return the properties
161: */
162: public ArrayList getProperties() {
163: return properties;
164: }
165:
166: /**
167: * @param statProperties the stat properties to set
168: */
169: public void setStatProperties(ArrayList statProperties) {
170: this .statProperties = statProperties;
171: }
172:
173: /**
174: * @return the stat properties
175: */
176: public ArrayList getStatProperties() {
177: return statProperties;
178: }
179:
180: /**
181: * @param properties the properties to set
182: */
183: public void setProperties(ArrayList properties) {
184: this .properties = properties;
185: }
186:
187: /**
188: * @return isTopic
189: */
190: public boolean getIsTopic() {
191: return isTopic;
192: }
193:
194: /**
195: * @param isTopic
196: */
197: public void setIsTopic(boolean isTopic) {
198: this.isTopic = isTopic;
199: }
200: }
|