KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > roller > pojos > RollerConfigData


1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. The ASF licenses this file to You
4 * under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License. For additional information regarding
15 * copyright in this work, please see the NOTICE file in the top level
16 * directory of this distribution.
17 */

18 package org.apache.roller.pojos;
19
20 import java.io.File JavaDoc;
21 import java.lang.reflect.AccessibleObject JavaDoc;
22 import java.lang.reflect.Field JavaDoc;
23 import java.math.BigDecimal JavaDoc;
24 import java.util.Arrays JavaDoc;
25 import java.util.List JavaDoc;
26
27 import org.apache.commons.lang.StringUtils;
28 import org.apache.roller.RollerException;
29 import org.apache.roller.model.Roller;
30 import org.apache.roller.model.RollerFactory;
31 import org.apache.roller.util.PojoUtil;
32
33 /**
34  * Configuration object for Roller. Reads and writes roller-config.xml.
35  * RollerConfig extends Struts ActionForm so that it can be extended by
36  * RollerConfigForm in the administrator pages.
37  * <p />
38  * This is where you set default Roller configuration values.
39  *
40  * @ejb:bean name="RollerConfigData"
41  * @struts.form include-all="true"
42  * @hibernate.class lazy="false" table="rollerconfig"
43  */

44 public class RollerConfigData
45     extends org.apache.roller.pojos.PersistentObject
46     implements java.io.Serializable JavaDoc
47 {
48     static final long serialVersionUID = -6354583200913127875L;
49
50     protected java.lang.String JavaDoc id = null;
51     
52     /**
53      * Roller database version.
54      */

55     protected String JavaDoc mDatabaseVersion = "995"; // 1.0 will be '1000'
56

57     /**
58      * Absolute URL for site, for cases where infered absolute URL doesn't work.
59      */

60     protected String JavaDoc mAbsoluteURL = null;
61
62     /**
63      * Should Roller cache return RSS pages.
64      */

65     protected Boolean JavaDoc mRssUseCache = Boolean.FALSE;
66
67     /**
68      * Duration to cache RSS pages (in seconds).
69      */

70     protected Integer JavaDoc mRssCacheTime = new Integer JavaDoc(3000);
71
72     /**
73      * Does Roller allow the creation of new users.
74      */

75     protected Boolean JavaDoc mNewUserAllowed = Boolean.TRUE;
76
77     /**
78      * @deprecated Admins now indicated by roles in userroles table.
79      */

80     protected String JavaDoc mAdminUsers = "admin";
81
82     /**
83      * Where to get Themes presented to new users.
84      */

85     protected String JavaDoc mUserThemes = "/themes";
86
87     /**
88      * List of "editor pages" for the Weblog entry editor
89      * seperated with commas.
90      */

91     protected String JavaDoc mEditorPages =
92            "editor-text.jsp,editor-text-js.jsp,editor-rte.jsp,editor-dhtml.jsp,editor-ekit.jsp,editor-wiki-js.jsp";
93
94     /**
95      * Dis/enble RSS aggregation capabilities.
96      */

97     protected Boolean JavaDoc mEnableAggregator = Boolean.FALSE;
98
99     /**
100      * Are file uploads enabled.
101      */

102     protected Boolean JavaDoc mUploadEnabled = Boolean.TRUE;
103
104     /**
105      * The maximum size of each user's upload directory.
106      */

107     protected BigDecimal JavaDoc mUploadMaxDirMB = new BigDecimal JavaDoc("2");
108
109     /**
110      * The maximum size allowed per uploaded file.
111      */

112     protected BigDecimal JavaDoc mUploadMaxFileMB = new BigDecimal JavaDoc(".5");
113
114     /**
115      * List of permitted file extensions (not including the "dot")
116      * seperated with commas.
117      * This attribute is mutually exclusive with uploadForbid.
118      */

119     protected String JavaDoc mUploadAllow = "";
120
121     /**
122      * List of forbidden file extensions (not including the "dot")
123      * seperated with commas.
124      * This attribute is mutually exclusive with uploadAllow.
125      */

126     protected String JavaDoc mUploadForbid = "";
127
128     /**
129      * Directory where uploaded files will be stored.
130      * May end with a slash. Optional, this value will
131      * default to RollerContext.USER_RESOURCES. If specified,
132      * should be a full path on the system harddrive or
133      * relative to the WebApp.
134      */

135     protected String JavaDoc mUploadDir = "";
136
137     /**
138      * The path from which the webserver will serve upload files.
139      * This values must not end in a slash.
140      */

141     protected String JavaDoc uploadPath = "/resources";
142
143     protected Boolean JavaDoc mMemDebug = Boolean.FALSE;
144
145     /**
146      * Determines if the Comment page will "autoformat"
147      * comments. That is, replace carriage-returns with <br />.
148      */

149     protected Boolean JavaDoc mAutoformatComments = Boolean.FALSE;
150
151     /**
152      * Determines if the Comment page will escape html in comments.
153      */

154     protected Boolean JavaDoc mEscapeCommentHtml = Boolean.FALSE;
155
156     /**
157      * Determines if e-mailing comments is enabled.
158      */

159     protected Boolean JavaDoc mEmailComments = Boolean.FALSE;
160
161     /**
162      * Enable linkback extraction.
163      */

164     protected Boolean JavaDoc mEnableLinkback = Boolean.FALSE;
165
166     /**
167      * Name of this site
168      */

169     protected String JavaDoc mSiteName = "Roller-based Site";
170
171     /**
172      * Description of this site
173      */

174     protected String JavaDoc mSiteDescription = "Roller-based Site";
175
176     /**
177      * Site administrator's email address
178      */

179     protected String JavaDoc mEmailAddress = "";
180
181     /**
182      * Lucene index directory
183      */

184     protected String JavaDoc mIndexDir = "${user.home}" + File.separator
185                                  + "roller-index";
186     
187     /**
188      * Flag for encrypting passwords
189      */

190     protected Boolean JavaDoc mEncryptPasswords = Boolean.FALSE;
191     
192     protected String JavaDoc mAlgorithm = "SHA";
193     
194     /**
195      * Comma-delimited list of "words" for filtering referrer spam.
196      */

197     protected String JavaDoc mRefererSpamWords = "";
198     
199     //-------------------------------------- begin requisite getters & setters
200

201     /**
202      * Not remote since primary key may be extracted by other means.
203      *
204      * @struts.validator type="required" msgkey="errors.required"
205      * @ejb:persistent-field
206      * @hibernate.id column="id"
207      * generator-class="uuid.hex" unsaved-value="null"
208      */

209     public String JavaDoc getId() {
210         return this.id;
211     }
212
213     /** @ejb:persistent-field */
214     public void setId(String JavaDoc id) {
215         this.id = id;
216     }
217
218     /**
219      * @ejb:persistent-field
220      * @hibernate.property column="absoluteurl" non-null="false" unique="false"
221      */

222     public String JavaDoc getAbsoluteURL()
223     {
224         return mAbsoluteURL;
225     }
226     /** @ejb:persistent-field */
227     public void setAbsoluteURL(String JavaDoc string)
228     {
229         mAbsoluteURL = string;
230     }
231
232     /**
233      * @ejb:persistent-field
234      * @hibernate.property column="rssusecache" non-null="true" unique="false"
235      */

236     public Boolean JavaDoc getRssUseCache()
237     {
238         return mRssUseCache;
239     }
240     /** @ejb:persistent-field */
241     public void setRssUseCache(Boolean JavaDoc use)
242     {
243         mRssUseCache = use;
244     }
245
246     /**
247      * @ejb:persistent-field
248      * @hibernate.property column="rsscachetime" non-null="true" unique="false"
249      */

250     public Integer JavaDoc getRssCacheTime()
251     {
252         return mRssCacheTime;
253     }
254     /** @ejb:persistent-field */
255     public void setRssCacheTime(Integer JavaDoc cacheTime)
256     {
257         mRssCacheTime = cacheTime;
258     }
259
260     /**
261     * @ejb:persistent-field
262     * @hibernate.property column="newuserallowed" non-null="true" unique="false"
263     */

264     public Boolean JavaDoc getNewUserAllowed()
265     {
266         return mNewUserAllowed;
267     }
268     /** @ejb:persistent-field */
269     public void setNewUserAllowed(Boolean JavaDoc use)
270     {
271         mNewUserAllowed = use;
272     }
273
274     /**
275      * @deprecated Admins now indicated by roles in userroles table.
276      */

277     public String JavaDoc getAdminUsers()
278     {
279         return mAdminUsers;
280     }
281     /**
282      * @deprecated Admins now indicated by roles in userroles table.
283      */

284     public void setAdminUsers(String JavaDoc _adminUsers)
285     {
286         mAdminUsers = _adminUsers;
287     }
288
289     /**
290      * @ejb:persistent-field
291      * @hibernate.property column="userthemes" non-null="true" unique="false"
292      */

293     public String JavaDoc getUserThemes()
294     {
295         return mUserThemes;
296     }
297     /** @ejb:persistent-field */
298     public void setUserThemes(String JavaDoc str)
299     {
300         mUserThemes = str;
301     }
302
303     /**
304      * @ejb:persistent-field
305      * @hibernate.property column="editorpages" non-null="false" unique="false"
306      */

307     public String JavaDoc getEditorPages()
308     {
309         return mEditorPages;
310     }
311     /** @ejb:persistent-field */
312     public void setEditorPages(String JavaDoc _editorPages)
313     {
314         mEditorPages = _editorPages;
315     }
316
317     /**
318     * @ejb:persistent-field
319     * @hibernate.property column="enableaggregator" non-null="true" unique="false"
320     */

321     public Boolean JavaDoc getEnableAggregator()
322     {
323         return mEnableAggregator;
324     }
325     /** @ejb:persistent-field */
326     public void setEnableAggregator(Boolean JavaDoc use)
327     {
328         mEnableAggregator = use;
329     }
330
331     /**
332     * @ejb:persistent-field
333     * @hibernate.property column="uploadenabled" non-null="true" unique="false"
334     */

335     public Boolean JavaDoc getUploadEnabled()
336     {
337         return mUploadEnabled;
338     }
339     /** @ejb:persistent-field */
340     public void setUploadEnabled(Boolean JavaDoc use)
341     {
342         mUploadEnabled = use;
343     }
344
345     /**
346     * @ejb:persistent-field
347     * @hibernate.property column="uploadmaxdirmb"
348     * non-null="true" unique="false" type="big_decimal"
349     */

350     public BigDecimal JavaDoc getUploadMaxDirMB()
351     {
352         return mUploadMaxDirMB;
353     }
354     /** @ejb:persistent-field */
355     public void setUploadMaxDirMB(BigDecimal JavaDoc use)
356     {
357         mUploadMaxDirMB = use;
358     }
359
360     /**
361     * @ejb:persistent-field
362     * @hibernate.property column="uploadmaxfilemb"
363     * non-null="true" unique="false" type="big_decimal"
364     */

365     public BigDecimal JavaDoc getUploadMaxFileMB()
366     {
367         return mUploadMaxFileMB;
368     }
369     /** @ejb:persistent-field */
370     public void setUploadMaxFileMB(BigDecimal JavaDoc use)
371     {
372         mUploadMaxFileMB = use;
373     }
374
375     /**
376      * @ejb:persistent-field
377      * @hibernate.property column="uploadallow" non-null="true" unique="false"
378      */

379     public String JavaDoc getUploadAllow()
380     {
381         return mUploadAllow;
382     }
383     /** @ejb:persistent-field */
384     public void setUploadAllow(String JavaDoc _uploadAllow)
385     {
386         mUploadAllow = _uploadAllow;
387     }
388
389     /**
390      * @ejb:persistent-field
391      * @hibernate.property column="uploadforbid" non-null="true" unique="false"
392      */

393     public String JavaDoc getUploadForbid()
394     {
395         return mUploadForbid;
396     }
397     /** @ejb:persistent-field */
398     public void setUploadForbid(String JavaDoc _uploadForbid)
399     {
400         mUploadForbid = _uploadForbid;
401     }
402
403     /**
404      * @ejb:persistent-field
405      * @hibernate.property column="uploaddir" non-null="true" unique="false"
406      */

407     public String JavaDoc getUploadDir()
408     {
409         return mUploadDir;
410     }
411     /** @ejb:persistent-field */
412     public void setUploadDir(String JavaDoc str)
413     {
414         mUploadDir = str;
415     }
416
417     /**
418      * @ejb:persistent-field
419      * @hibernate.property column="uploadpath" non-null="true" unique="false"
420      */

421     public String JavaDoc getUploadPath()
422     {
423         return uploadPath;
424     }
425     /** @ejb:persistent-field */
426     public void setUploadPath(String JavaDoc str)
427     {
428         uploadPath = str;
429     }
430
431     /**
432     * @ejb:persistent-field
433     * @hibernate.property column="memdebug" non-null="true" unique="false"
434     */

435     public Boolean JavaDoc getMemDebug() { return mMemDebug; }
436
437     /**
438      * Set memory debugging on or off.
439      * @param mMemDebug The mMemDebug to set
440      * @ejb:persistent-field
441      */

442     public void setMemDebug(Boolean JavaDoc memDebug)
443     {
444         mMemDebug = memDebug;
445     }
446
447     /**
448     * @ejb:persistent-field
449     * @hibernate.property column="autoformatcomments" non-null="true" unique="false"
450     */

451     public Boolean JavaDoc getAutoformatComments()
452     {
453         return mAutoformatComments;
454     }
455     /** @ejb:persistent-field */
456     public void setAutoformatComments(Boolean JavaDoc value)
457     {
458         mAutoformatComments = value;
459     }
460
461     /**
462     * @ejb:persistent-field
463     * @hibernate.property column="escapecommenthtml" non-null="true" unique="false"
464     */

465     public Boolean JavaDoc getEscapeCommentHtml()
466     {
467         return mEscapeCommentHtml;
468     }
469     /** @ejb:persistent-field */
470     public void setEscapeCommentHtml(Boolean JavaDoc value)
471     {
472         mEscapeCommentHtml = value;
473     }
474     
475     /**
476      * Does website allow Should Comments be emailed to participants?
477      *
478      * @ejb:persistent-field
479      * @hibernate.property column="emailcomments" non-null="true" unique="false"
480      */

481     public Boolean JavaDoc getEmailComments()
482     {
483         return mEmailComments;
484     }
485
486     /**
487      * @ejb:persistent-field
488      */

489     public void setEmailComments(Boolean JavaDoc emailComments)
490     {
491         this.mEmailComments = emailComments;
492     }
493
494     /**
495      * Enable linkback.
496      * @ejb:persistent-field
497      * @hibernate.property column="enablelinkback" non-null="true" unique="false"
498     */

499     public Boolean JavaDoc getEnableLinkback()
500     {
501         return mEnableLinkback;
502     }
503
504     /**
505      * Enable linkback.
506      * @ejb:persistent-field
507      */

508     public void setEnableLinkback(Boolean JavaDoc b)
509     {
510         mEnableLinkback = b;
511     }
512
513
514     /**
515      * @ejb:persistent-field
516      * @hibernate.property column="sitedescription" non-null="false" unique="false"
517      */

518     public String JavaDoc getSiteDescription()
519     {
520         return mSiteDescription;
521     }
522
523     /**
524      * @param string
525      * @ejb:persistent-field
526      */

527     public void setSiteDescription(String JavaDoc string)
528     {
529         mSiteDescription = string;
530     }
531
532     /**
533      * @ejb:persistent-field
534      * @hibernate.property column="sitename" non-null="false" unique="false"
535      */

536     public String JavaDoc getSiteName()
537     {
538         return mSiteName;
539     }
540
541     /**
542      * @param string
543      * @ejb:persistent-field
544      */

545     public void setSiteName(String JavaDoc string)
546     {
547         mSiteName = string;
548     }
549
550     /**
551      * @ejb:persistent-field
552      * @hibernate.property column="emailaddress" non-null="false" unique="false"
553      */

554     public String JavaDoc getEmailAddress()
555     {
556         return mEmailAddress;
557     }
558
559     /**
560      * @param string
561      * @ejb:persistent-field
562      */

563     public void setEmailAddress(String JavaDoc emailAddress)
564     {
565         mEmailAddress = emailAddress;
566     }
567
568     /**
569      * @ejb:persistent-field
570      * @hibernate.property column="indexdir" non-null="false" unique="false"
571      */

572     public String JavaDoc getIndexDir() {
573
574         return mIndexDir;
575     }
576
577     /**
578      * @param the new index directory
579      * @ejb:persistent-field
580      */

581     public void setIndexDir(String JavaDoc indexDir)
582     {
583         mIndexDir = indexDir;
584     }
585
586     /**
587      * @ejb:persistent-field
588      * @hibernate.property column="encryptpasswords" non-null="true" unique="false"
589      */

590     public Boolean JavaDoc getEncryptPasswords()
591     {
592         return mEncryptPasswords;
593     }
594     /** @ejb:persistent-field */
595     public void setEncryptPasswords(Boolean JavaDoc value)
596     {
597         mEncryptPasswords = value;
598     }
599     
600     /**
601      * @ejb:persistent-field
602      * @hibernate.property column="algorithm" non-null="false" unique="false"
603      */

604     public String JavaDoc getAlgorithm() {
605
606         return mAlgorithm;
607     }
608
609     /**
610      * @param the new algorithm for encrypting passwords
611      * @ejb:persistent-field
612      */

613     public void setAlgorithm(String JavaDoc algorithm)
614     {
615         mAlgorithm = algorithm;
616     }
617         
618     /**
619      * @return Returns the mDatabaseVersion.
620      * @hibernate.property column="dbversion" non-null="false" unique="false"
621      */

622     public String JavaDoc getDatabaseVersion() {
623         return mDatabaseVersion;
624     }
625     /**
626      * @param databaseVersion The mDatabaseVersion to set.
627      * @ejb:persistent-field
628      */

629     public void setDatabaseVersion(String JavaDoc databaseVersion) {
630         mDatabaseVersion = databaseVersion;
631     }
632
633     /**
634      * @return Returns the mRefererSpamWords.
635      * @hibernate.property column="refspamwords" non-null="false" unique="false"
636      */

637     public String JavaDoc getRefererSpamWords()
638     {
639         return this.mRefererSpamWords;
640     }
641     /**
642      * @param refererSpamWords The mRefererSpamWords to set.
643      * @ejb:persistent-field
644      */

645     public void setRefererSpamWords(String JavaDoc refererSpamWords)
646     {
647         this.mRefererSpamWords = refererSpamWords;
648     }
649
650     //---------------------------------------- end requisite getters & setters
651

652     /**
653      * Convenience method for getAdminUsers.
654      **/

655     public String JavaDoc[] adminUsersArray()
656     {
657         return StringUtils.split(StringUtils.deleteWhitespace(mAdminUsers), ",");
658     }
659
660     /**
661      * Convenience method for getEditorPages.
662      **/

663     public List JavaDoc getEditorPagesList()
664     {
665         return Arrays.asList(
666             StringUtils.split(StringUtils.deleteWhitespace(mEditorPages), ","));
667     }
668
669     /**
670      * Convenience method for getUploadAllow.
671      **/

672     public String JavaDoc[] uploadAllowArray()
673     {
674         return StringUtils.split(StringUtils.deleteWhitespace(mUploadAllow), ",");
675     }
676
677     /**
678      * Convenience method for getUploadForbid.
679      **/

680     public String JavaDoc[] uploadForbidArray()
681     {
682         return StringUtils.split(StringUtils.deleteWhitespace(mUploadForbid), ",");
683     }
684
685     /**
686      * Convenience method for getRefererSpamWords.
687      **/

688     public String JavaDoc[] refererSpamWordsArray()
689     {
690         return StringUtils.split(StringUtils.deleteWhitespace(mRefererSpamWords), ",");
691     }
692
693     public void updateValues( RollerConfigData child )
694     {
695         this.mAbsoluteURL = child.getAbsoluteURL();
696         this.mRssUseCache = child.getRssUseCache();
697         this.mRssCacheTime = child.getRssCacheTime();
698         this.mNewUserAllowed = child.getNewUserAllowed();
699         this.mAdminUsers = child.getAdminUsers();
700         this.mDatabaseVersion = child.getDatabaseVersion();
701         this.mUserThemes = child.getUserThemes();
702         this.mEditorPages = child.getEditorPages();
703         this.mEnableAggregator = child.getEnableAggregator();
704         this.mUploadEnabled = child.getUploadEnabled();
705         this.mUploadMaxDirMB = child.getUploadMaxDirMB();
706         this.mUploadMaxFileMB = child.getUploadMaxFileMB();
707         this.mUploadAllow = child.getUploadAllow();
708         this.mUploadForbid = child.getUploadForbid();
709         this.mUploadDir = child.getUploadDir();
710         this.uploadPath = child.getUploadPath();
711         this.mMemDebug = child.getMemDebug();
712         this.mAutoformatComments = child.getAutoformatComments();
713         this.mEscapeCommentHtml = child.getEscapeCommentHtml();
714         this.mEmailComments = child.getEmailComments();
715         this.mEnableLinkback = child.getEnableLinkback();
716         this.mSiteName = child.getSiteName();
717         this.mSiteDescription = child.getSiteDescription();
718         this.mEmailAddress = child.getEmailAddress();
719         this.mIndexDir = child.getIndexDir();
720         this.mEncryptPasswords = child.getEncryptPasswords();
721         this.mAlgorithm = child.getAlgorithm();
722         this.mRefererSpamWords = child.getRefererSpamWords();
723     }
724
725     /** nice output for debugging */
726     public String JavaDoc toString()
727     {
728         StringBuffer JavaDoc buf = new StringBuffer JavaDoc();
729         buf.append("RollerConfig \n");
730         Class JavaDoc clazz = getClass();
731         Field JavaDoc[] fields = clazz.getDeclaredFields();
732
733         try {
734             AccessibleObject.setAccessible(fields, true);
735             for (int i = 0; i < fields.length; i++) {
736                 buf.append(
737                     "\t["
738                         + fields[i].getName()
739                         + "="
740                         + fields[i].get(this)
741                         + "], \n");
742             }
743         } catch (Exception JavaDoc e) {
744             // ignored!
745
}
746
747         return buf.toString();
748     }
749
750
751     public void setData(PersistentObject vo) {
752         if (vo instanceof RollerConfigData) {
753             this.id = ((RollerConfigData)vo).id;
754             updateValues((RollerConfigData)vo);
755         }
756     }
757
758     public boolean equals(Object JavaDoc pOther)
759     {
760         if (pOther instanceof WebsiteData)
761         {
762             RollerConfigData lTest = (RollerConfigData) pOther;
763             boolean lEquals = true;
764
765             lEquals = PojoUtil.equals(lEquals, this.id, lTest.id);
766             lEquals = PojoUtil.equals(lEquals, this.mAbsoluteURL, lTest.getAbsoluteURL());
767             lEquals = PojoUtil.equals(lEquals, this.mRssUseCache, lTest.getRssUseCache());
768             lEquals = PojoUtil.equals(lEquals, this.mRssCacheTime, lTest.getRssCacheTime());
769             lEquals = PojoUtil.equals(lEquals, this.mNewUserAllowed, lTest.getNewUserAllowed());
770             lEquals = PojoUtil.equals(lEquals, this.mAdminUsers, lTest.getAdminUsers());
771             lEquals = PojoUtil.equals(lEquals, this.mUserThemes, lTest.getUserThemes());
772             lEquals = PojoUtil.equals(lEquals, this.mEditorPages, lTest.getEditorPages());
773             lEquals = PojoUtil.equals(lEquals, this.mEnableAggregator, lTest.getEnableAggregator());
774             lEquals = PojoUtil.equals(lEquals, this.mUploadEnabled, lTest.getUploadEnabled());
775             lEquals = PojoUtil.equals(lEquals, this.mUploadMaxDirMB, lTest.getUploadMaxDirMB());
776             lEquals = PojoUtil.equals(lEquals, this.mUploadMaxFileMB, lTest.getUploadMaxFileMB());
777             lEquals = PojoUtil.equals(lEquals, this.mUploadAllow, lTest.getUploadAllow());
778             lEquals = PojoUtil.equals(lEquals, this.mUploadForbid, lTest.getUploadForbid());
779             lEquals = PojoUtil.equals(lEquals, this.mUploadDir, lTest.getUploadDir());
780             lEquals = PojoUtil.equals(lEquals, this.uploadPath, lTest.getUploadPath());
781             lEquals = PojoUtil.equals(lEquals, this.mMemDebug, lTest.getMemDebug());
782             lEquals = PojoUtil.equals(lEquals, this.mAutoformatComments, lTest.getAutoformatComments());
783             lEquals = PojoUtil.equals(lEquals, this.mEscapeCommentHtml, lTest.getEscapeCommentHtml());
784             lEquals = PojoUtil.equals(lEquals, this.mEmailComments, lTest.getEmailComments());
785             lEquals = PojoUtil.equals(lEquals, this.mEnableLinkback, lTest.getEnableLinkback());
786             lEquals = PojoUtil.equals(lEquals, this.mSiteName, lTest.getSiteName());
787             lEquals = PojoUtil.equals(lEquals, this.mSiteDescription, lTest.getSiteDescription());
788             lEquals = PojoUtil.equals(lEquals, this.mEmailAddress, lTest.getEmailAddress());
789             lEquals = PojoUtil.equals(lEquals, this.mIndexDir, lTest.getIndexDir());
790             lEquals = PojoUtil.equals(lEquals, this.mEncryptPasswords, lTest.getEncryptPasswords());
791             lEquals = PojoUtil.equals(lEquals, this.mAlgorithm, lTest.getAlgorithm());
792             lEquals = PojoUtil.equals(lEquals, this.mRefererSpamWords, lTest.getRefererSpamWords());
793
794             return lEquals;
795         }
796         else
797         {
798             return false;
799         }
800     }
801     
802     public int hashCode()
803     {
804         return super.hashCode();
805     }
806
807 }
808
Popular Tags