001/*
002 * This library is part of OpenCms -
003 * the Open Source Content Management System
004 *
005 * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com)
006 *
007 * This library is free software; you can redistribute it and/or
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 (at your option) any 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 * For further information about Alkacon Software, please see the
018 * company website: http://www.alkacon.com
019 *
020 * For further information about OpenCms, please see the
021 * project website: http://www.opencms.org
022 *
023 * You should have received a copy of the GNU Lesser General Public
024 * License along with this library; if not, write to the Free Software
025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
026 */
027
028package org.opencms.configuration.preferences;
029
030import org.opencms.ade.galleries.CmsGalleryService;
031import org.opencms.configuration.CmsDefaultUserSettings;
032import org.opencms.i18n.CmsLocaleManager;
033import org.opencms.main.CmsContextInfo;
034
035/**
036 * Bean used to access the built-in preferences via reflection.<p>
037 *
038 * All getter/setter pairs in this class are assumed to correspond to user settings, and the corresponding
039 * property names can be used as keys in the new preference configuration format, so the method names should not
040 * be changed.
041 */
042public class CmsUserSettingsStringPropertyWrapper {
043
044    /** The m_settings. */
045    private CmsDefaultUserSettings m_settings;
046
047    /**
048     * Instantiates a new cms user settings string property wrapper.
049     *
050     * @param settings the settings
051     */
052    public CmsUserSettingsStringPropertyWrapper(CmsDefaultUserSettings settings) {
053
054        m_settings = settings;
055    }
056
057    /**
058     * Gets the allow broken relations.
059     *
060     * @return the allow broken relations
061     */
062    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
063    public String getAllowBrokenRelations() {
064
065        return "" + m_settings.isAllowBrokenRelations();
066    }
067
068    /**
069     * Gets the dialog copy file mode.
070     *
071     * @return the dialog copy file mode
072     */
073    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
074    public String getDialogCopyFileMode() {
075
076        return m_settings.getDialogCopyFileModeString();
077    }
078
079    /**
080     * Gets the dialog copy folder mode.
081     *
082     * @return the dialog copy folder mode
083     */
084    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
085    public String getDialogCopyFolderMode() {
086
087        return m_settings.getDialogCopyFolderModeString();
088    }
089
090    /**
091     * Gets the dialog delete file mode.
092     *
093     * @return the dialog delete file mode
094     */
095    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
096    public String getDialogDeleteFileMode() {
097
098        return m_settings.getDialogDeleteFileModeString();
099    }
100
101    /**
102     * Gets the dialog expand inherited permissions.
103     *
104     * @return the dialog expand inherited permissions
105     */
106    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
107    public String getDialogExpandInheritedPermissions() {
108
109        return m_settings.getDialogExpandInheritedPermissionsString();
110    }
111
112    /**
113     * Gets the dialog expand user permissions.
114     *
115     * @return the dialog expand user permissions
116     */
117    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
118    public String getDialogExpandUserPermissions() {
119
120        return m_settings.getDialogExpandUserPermissionsString();
121    }
122
123    /**
124     * Gets the dialog permissions inherit on folder.
125     *
126     * @return the dialog permissions inherit on folder
127     */
128    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
129    public String getDialogPermissionsInheritOnFolder() {
130
131        return m_settings.getDialogPermissionsInheritOnFolderString();
132    }
133
134    /**
135     * Gets the dialog publish siblings.
136     *
137     * @return the dialog publish siblings
138     */
139    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
140    public String getDialogPublishSiblings() {
141
142        return m_settings.getDialogPublishSiblingsString();
143    }
144
145    /**
146     * Gets the dialog show export settings.
147     *
148     * @return the dialog show export settings
149     */
150    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
151    public String getDialogShowExportSettings() {
152
153        return m_settings.getDialogShowExportSettingsString();
154    }
155
156    /**
157     * Gets the dialog show lock.
158     *
159     * @return the dialog show lock
160     */
161    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
162    public String getDialogShowLock() {
163
164        return m_settings.getDialogShowLockString();
165    }
166
167    /**
168     * Gets the direct edit button style.
169     *
170     * @return the direct edit button style
171     */
172    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
173    public String getDirectEditButtonStyle() {
174
175        return m_settings.getDirectEditButtonStyleString();
176    }
177
178    /**
179     * Gets the editor button style.
180     *
181     * @return the editor button style
182     */
183    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
184    public String getEditorButtonStyle() {
185
186        return m_settings.getEditorButtonStyleString();
187    }
188
189    /**
190     * Gets the element view.
191     *
192     * @return the element view
193     */
194    @PrefMetadata(type = CmsElementViewPreference.class)
195    public String getElementView() {
196
197        return m_settings.getAdditionalPreference(CmsElementViewPreference.PREFERENCE_NAME, false);
198    }
199
200    /**
201     * Gets the explorer button style.
202     *
203     * @return the explorer button style
204     */
205    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
206    public String getExplorerButtonStyle() {
207
208        return m_settings.getExplorerButtonStyleString();
209    }
210
211    /**
212     * Gets the default element view for the explorer.<p>
213     *
214     * @return the default element view for the explorer
215     */
216    @PrefMetadata(type = CmsExplorerElementViewPreference.class)
217    public String getExplorerElementView() {
218
219        return m_settings.getAdditionalPreference(CmsElementViewPreference.EXPLORER_PREFERENCE_NAME, false);
220    }
221
222    /**
223     * Gets the explorer file entries.
224     *
225     * @return the explorer file entries
226     */
227    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
228    public String getExplorerFileEntries() {
229
230        return "" + m_settings.getExplorerFileEntries();
231    }
232
233    /**
234     * Gets the explorer file entry options.
235     *
236     * @return the explorer file entry options
237     */
238    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
239    public String getExplorerFileEntryOptions() {
240
241        if (m_settings.getExplorerFileEntryOptions() == null) {
242            return "";
243        } else {
244            return "" + m_settings.getExplorerFileEntryOptions();
245        }
246    }
247
248    /**
249     * Gets the value of the 'show invalid elements in galleries'.<p>
250     *
251     * @return the 'show invalid elements in galleries' setting
252     */
253    @PrefMetadata(type = CmsGalleryShowInvalidDefaultPreference.class)
254    public String getGalleryShowInvalidDefault() {
255
256        return m_settings.getAdditionalPreference(CmsGalleryService.PREF_GALLERY_SHOW_INVALID_DEFAULT, false);
257    }
258
259    /**
260     * Gets the list all projects.
261     *
262     * @return the list all projects
263     */
264    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
265    public String getListAllProjects() {
266
267        return m_settings.getListAllProjectsString();
268    }
269
270    /**
271     * Gets the locale.
272     *
273     * @return the locale
274     */
275    @PrefMetadata(type = CmsLanguagePreference.class)
276    public String getLocale() {
277
278        return m_settings.getLocale().toString();
279    }
280
281    /**
282     * Gets the new folder create index page.
283     *
284     * @return the new folder create index page
285     */
286    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
287    public String getNewFolderCreateIndexPage() {
288
289        return m_settings.getNewFolderCreateIndexPage().toString();
290    }
291
292    /**
293     * Gets the new folder edit properties.
294     *
295     * @return the new folder edit properties
296     */
297    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
298    public String getNewFolderEditProperties() {
299
300        return m_settings.getNewFolderEditProperties().toString();
301    }
302
303    /**
304     * Gets the publish button appearance.
305     *
306     * @return the publish button appearance
307     */
308    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
309    public String getPublishButtonAppearance() {
310
311        return m_settings.getPublishButtonAppearance();
312    }
313
314    /**
315     * Gets the publish related resources mode.
316     *
317     * @return the publish related resources mode
318     */
319    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
320    public String getPublishRelatedResourcesMode() {
321
322        return "" + m_settings.getPublishRelatedResources();
323    }
324
325    /**
326     * Gets the restrict explorer view.
327     *
328     * @return the restrict explorer view
329     */
330    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
331    public String getRestrictExplorerView() {
332
333        return m_settings.getRestrictExplorerViewString();
334    }
335
336    /**
337     * Gets the show explorer file date created.
338     *
339     * @return the show explorer file date created
340     */
341    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
342    public String getShowExplorerFileDateCreated() {
343
344        return m_settings.getShowExplorerFileDateCreated();
345    }
346
347    /**
348     * Gets the show explorer file date expired.
349     *
350     * @return the show explorer file date expired
351     */
352    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
353    public String getShowExplorerFileDateExpired() {
354
355        return m_settings.getShowExplorerFileDateExpired();
356    }
357
358    /**
359     * Gets the show explorer file date last modified.
360     *
361     * @return the show explorer file date last modified
362     */
363    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
364    public String getShowExplorerFileDateLastModified() {
365
366        return m_settings.getShowExplorerFileDateLastModified();
367    }
368
369    /**
370     * Gets the show explorer file date released.
371     *
372     * @return the show explorer file date released
373     */
374    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
375    public String getShowExplorerFileDateReleased() {
376
377        return m_settings.getShowExplorerFileDateReleased();
378    }
379
380    /**
381     * Gets the show explorer file locked by.
382     *
383     * @return the show explorer file locked by
384     */
385    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
386    public String getShowExplorerFileLockedBy() {
387
388        return m_settings.getShowExplorerFileLockedBy();
389    }
390
391    /**
392     * Gets the show explorer file nav text.
393     *
394     * @return the show explorer file nav text
395     */
396    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
397    public String getShowExplorerFileNavText() {
398
399        return m_settings.getShowExplorerFileNavText();
400    }
401
402    /**
403     * Gets the show explorer file permissions.
404     *
405     * @return the show explorer file permissions
406     */
407    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
408    public String getShowExplorerFilePermissions() {
409
410        return m_settings.getShowExplorerFilePermissions();
411    }
412
413    /**
414     * Gets the show explorer file size.
415     *
416     * @return the show explorer file size
417     */
418    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
419    public String getShowExplorerFileSize() {
420
421        return m_settings.getShowExplorerFileSize();
422    }
423
424    /**
425     * Gets the show explorer file state.
426     *
427     * @return the show explorer file state
428     */
429    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
430    public String getShowExplorerFileState() {
431
432        return m_settings.getShowExplorerFileState();
433    }
434
435    /**
436     * Gets the show explorer file title.
437     *
438     * @return the show explorer file title
439     */
440    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
441    public String getShowExplorerFileTitle() {
442
443        return m_settings.getShowExplorerFileTitle();
444    }
445
446    /**
447     * Gets the show explorer file type.
448     *
449     * @return the show explorer file type
450     */
451    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
452    public String getShowExplorerFileType() {
453
454        return m_settings.getShowExplorerFileType();
455    }
456
457    /**
458     * Gets the show explorer file user created.
459     *
460     * @return the show explorer file user created
461     */
462    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
463    public String getShowExplorerFileUserCreated() {
464
465        return m_settings.getShowExplorerFileUserCreated();
466    }
467
468    /**
469     * Gets the show explorer file user last modified.
470     *
471     * @return the show explorer file user last modified
472     */
473    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
474    public String getShowExplorerFileUserLastModified() {
475
476        return m_settings.getShowExplorerFileUserLastModified();
477    }
478
479    /**
480     * Gets the show file upload button.
481     *
482     * @return the show file upload button
483     */
484    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
485    public String getShowFileUploadButton() {
486
487        return m_settings.getShowFileUploadButtonString();
488    }
489
490    /**
491     * Gets the show publish notification.
492     *
493     * @return the show publish notification
494     */
495    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
496    public String getShowPublishNotification() {
497
498        return m_settings.getShowPublishNotificationString();
499    }
500
501    /**
502     * Gets the show upload type dialog.
503     *
504     * @return the show upload type dialog
505     */
506    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
507    public String getShowUploadTypeDialog() {
508
509        return "" + m_settings.getShowUploadTypeDialog();
510    }
511
512    /**
513     * Gets the start folder.
514     *
515     * @return the start folder
516     */
517    @PrefMetadata(type = CmsStartFolderPreference.class)
518    public String getStartFolder() {
519
520        return m_settings.getStartFolder();
521    }
522
523    /**
524     * Gets the start project.
525     *
526     * @return the start project
527     */
528    @PrefMetadata(type = CmsProjectPreference.class)
529    public String getStartProject() {
530
531        return m_settings.getStartProject();
532    }
533
534    /**
535     * Gets the start site.
536     *
537     * @return the start site
538     */
539    @PrefMetadata(type = CmsSitePreference.class)
540    public String getStartSite() {
541
542        return m_settings.getStartSite();
543    }
544
545    /**
546     * Gets the start view.
547     *
548     * @return the start view
549     */
550    @PrefMetadata(type = CmsStartViewPreference.class)
551    public String getStartView() {
552
553        return m_settings.getStartView();
554    }
555
556    /**
557     * Gets the subsitemap creation mode.
558     *
559     * @return the subsitemap creation mode
560     */
561    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
562    public String getSubsitemapCreationMode() {
563
564        return "" + m_settings.getSubsitemapCreationMode();
565    }
566
567    /**
568     * Gets the time warp.
569     *
570     * @return the time warp
571     */
572    @PrefMetadata(type = CmsTimeWarpPreference.class)
573    public String getTimeWarp() {
574
575        long warp = m_settings.getTimeWarp();
576        return warp < 0 ? "" : "" + warp; // if timewarp < 0 (i.e. time warp is not set), use the empty string because we don't want the date selector widget to interpret the negative value
577    }
578
579    /**
580     * Gets the upload applet client folder.
581     *
582     * @return the upload applet client folder
583     */
584    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
585    public String getUploadAppletClientFolder() {
586
587        return m_settings.getUploadAppletClientFolder();
588    }
589
590    /**
591     * Gets the upload variant.
592     *
593     * @return the upload variant
594     */
595    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
596    public String getUploadVariant() {
597
598        return m_settings.getUploadVariant().toString();
599    }
600
601    /**
602     * Gets the workplace button style.
603     *
604     * @return the workplace button style
605     */
606    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
607    public String getWorkplaceButtonStyle() {
608
609        return m_settings.getWorkplaceButtonStyleString();
610    }
611
612    /**
613     * Gets the workplace mode.<p>
614     *
615     * @return the workplace mode
616     */
617    @PrefMetadata(type = CmsWorkplaceModePreference.class)
618    public String getWorkplaceMode() {
619
620        return m_settings.getAdditionalPreference(CmsWorkplaceModePreference.PREFERENCE_NAME, false);
621    }
622
623    /**
624     * Gets the workplace report type.
625     *
626     * @return the workplace report type
627     */
628    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
629    public String getWorkplaceReportType() {
630
631        return m_settings.getWorkplaceReportType();
632
633    }
634
635    /**
636     * Gets the workplace search index name.
637     *
638     * @return the workplace search index name
639     */
640    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
641    public String getWorkplaceSearchIndexName() {
642
643        return m_settings.getWorkplaceSearchIndexName();
644    }
645
646    /**
647     * Gets the workplace search view style.
648     *
649     * @return the workplace search view style
650     */
651    @PrefMetadata(type = CmsHiddenBuiltinPreference.class)
652    public String getWorkplaceSearchViewStyle() {
653
654        return m_settings.getWorkplaceSearchViewStyle().toString();
655    }
656
657    /**
658     * Sets the allow broken relations.
659     *
660     * @param s the new allow broken relations
661     */
662    public void setAllowBrokenRelations(String s) {
663
664        m_settings.setAllowBrokenRelations(s);
665    }
666
667    /**
668     * Sets the dialog copy file mode.
669     *
670     * @param s the new dialog copy file mode
671     */
672    public void setDialogCopyFileMode(String s) {
673
674        m_settings.setDialogCopyFileMode(s);
675
676    }
677
678    /**
679     * Sets the dialog copy folder mode.
680     *
681     * @param s the new dialog copy folder mode
682     */
683    public void setDialogCopyFolderMode(String s) {
684
685        m_settings.setDialogCopyFolderMode(s);
686    }
687
688    /**
689     * Sets the dialog delete file mode.
690     *
691     * @param s the new dialog delete file mode
692     */
693    public void setDialogDeleteFileMode(String s) {
694
695        m_settings.setDialogDeleteFileMode(s);
696    }
697
698    /**
699     * Sets the dialog expand inherited permissions.
700     *
701     * @param s the new dialog expand inherited permissions
702     */
703    public void setDialogExpandInheritedPermissions(String s) {
704
705        m_settings.setDialogExpandInheritedPermissions(s);
706    }
707
708    /**
709     * Sets the dialog expand user permissions.
710     *
711     * @param s the new dialog expand user permissions
712     */
713    public void setDialogExpandUserPermissions(String s) {
714
715        m_settings.setDialogExpandUserPermissions(s);
716    }
717
718    /**
719     * Sets the dialog permissions inherit on folder.
720     *
721     * @param s the new dialog permissions inherit on folder
722     */
723    public void setDialogPermissionsInheritOnFolder(String s) {
724
725        m_settings.setDialogPermissionsInheritOnFolder(s);
726    }
727
728    /**
729     * Sets the dialog publish siblings.
730     *
731     * @param s the new dialog publish siblings
732     */
733    public void setDialogPublishSiblings(String s) {
734
735        m_settings.setDialogPublishSiblings(s);
736    }
737
738    /**
739     * Sets the dialog show export settings.
740     *
741     * @param s the new dialog show export settings
742     */
743    public void setDialogShowExportSettings(String s) {
744
745        m_settings.setShowExportSettingsDialog(s);
746    }
747
748    /**
749     * Sets the dialog show lock.
750     *
751     * @param s the new dialog show lock
752     */
753    public void setDialogShowLock(String s) {
754
755        m_settings.setShowLockDialog(s);
756    }
757
758    /**
759     * Sets the direct edit button style.
760     *
761     * @param s the new direct edit button style
762     */
763    public void setDirectEditButtonStyle(String s) {
764
765        m_settings.setDirectEditButtonStyle(s);
766
767    }
768
769    /**
770     * Sets the editor button style.
771     *
772     * @param s the new editor button style
773     */
774    public void setEditorButtonStyle(String s) {
775
776        m_settings.setEditorButtonStyle(s);
777    }
778
779    /**
780     * Sets the element view.<p>
781     *
782     * @param elementView the element view
783     */
784    public void setElementView(String elementView) {
785
786        m_settings.setAdditionalPreference(CmsElementViewPreference.PREFERENCE_NAME, elementView);
787    }
788
789    /**
790     * Sets the explorer button style.
791     *
792     * @param s the new explorer button style
793     */
794    public void setExplorerButtonStyle(String s) {
795
796        m_settings.setExplorerButtonStyle(s);
797    }
798
799    /**
800     * Sets the explorer start element view.<p>
801     *
802     * @param view the start element view.
803     */
804    public void setExplorerElementView(String view) {
805
806        m_settings.setAdditionalPreference(CmsElementViewPreference.EXPLORER_PREFERENCE_NAME, view);
807    }
808
809    /**
810     * Sets the explorer file entries.
811     *
812     * @param s the new explorer file entries
813     */
814    public void setExplorerFileEntries(String s) {
815
816        m_settings.setExplorerFileEntries(s);
817    }
818
819    /**
820     * Sets the explorer file entry options.
821     *
822     * @param s the new explorer file entry options
823     */
824    public void setExplorerFileEntryOptions(String s) {
825
826        m_settings.setExplorerFileEntryOptions(s);
827
828    }
829
830    /**
831     * Sets the default value for the checkbox which enables/disables showing invalid results in the gallery result tab.<p>
832     *
833     * @param value the value to set
834     */
835    public void setGalleryShowInvalidDefault(String value) {
836
837        m_settings.setAdditionalPreference(CmsGalleryService.PREF_GALLERY_SHOW_INVALID_DEFAULT, value);
838    }
839
840    /**
841     * Sets the list all projects.
842     *
843     * @param s the new list all projects
844     */
845    public void setListAllProjects(String s) {
846
847        m_settings.setListAllProjects(s);
848    }
849
850    /**
851     * Sets the locale.
852     *
853     * @param s the new locale
854     */
855    public void setLocale(String s) {
856
857        m_settings.setLocale(CmsLocaleManager.getLocale(s));
858    }
859
860    /**
861     * Sets the new folder create index page.
862     *
863     * @param s the new new folder create index page
864     */
865    public void setNewFolderCreateIndexPage(String s) {
866
867        m_settings.setNewFolderCreateIndexPage(s);
868    }
869
870    /**
871     * Sets the new folder edit properties.
872     *
873     * @param s the new new folder edit properties
874     */
875    public void setNewFolderEditProperties(String s) {
876
877        m_settings.setNewFolderEditProperties(s);
878    }
879
880    /**
881     * Sets the publish button appearance.
882     *
883     * @param s the new publish button appearance
884     */
885    public void setPublishButtonAppearance(String s) {
886
887        m_settings.setPublishButtonAppearance(s);
888    }
889
890    /**
891     * Sets the publish related resources mode.
892     *
893     * @param mode the new publish related resources mode
894     */
895    public void setPublishRelatedResourcesMode(String mode) {
896
897        m_settings.setPublishRelatedResourcesMode(mode);
898    }
899
900    /**
901     * Sets the restrict explorer view.
902     *
903     * @param s the new restrict explorer view
904     */
905    public void setRestrictExplorerView(String s) {
906
907        m_settings.setRestrictExplorerView(s);
908    }
909
910    /**
911     * Sets the show explorer file date created.
912     *
913     * @param s the new show explorer file date created
914     */
915    public void setShowExplorerFileDateCreated(String s) {
916
917        m_settings.setShowExplorerFileDateCreated(s);
918
919    }
920
921    /**
922     * Sets the show explorer file date expired.
923     *
924     * @param s the new show explorer file date expired
925     */
926    public void setShowExplorerFileDateExpired(String s) {
927
928        m_settings.setShowExplorerFileDateExpired(s);
929    }
930
931    /**
932     * Sets the show explorer file date last modified.
933     *
934     * @param s the new show explorer file date last modified
935     */
936    public void setShowExplorerFileDateLastModified(String s) {
937
938        m_settings.setShowExplorerFileDateLastModified(s);
939    }
940
941    /**
942     * Sets the show explorer file date released.
943     *
944     * @param s the new show explorer file date released
945     */
946    public void setShowExplorerFileDateReleased(String s) {
947
948        m_settings.setShowExplorerFileDateReleased(s);
949    }
950
951    /**
952     * Sets the show explorer file locked by.
953     *
954     * @param s the new show explorer file locked by
955     */
956    public void setShowExplorerFileLockedBy(String s) {
957
958        m_settings.setShowExplorerFileLockedBy(s);
959    }
960
961    /**
962     * Sets the show explorer file nav text.
963     *
964     * @param s the new show explorer file nav text
965     */
966    public void setShowExplorerFileNavText(String s) {
967
968        m_settings.setShowExplorerFileNavText(s);
969    }
970
971    /**
972     * Sets the show explorer file permissions.
973     *
974     * @param s the new show explorer file permissions
975     */
976    public void setShowExplorerFilePermissions(String s) {
977
978        m_settings.setShowExplorerFilePermissions(s);
979    }
980
981    /**
982     * Sets the show explorer file size.
983     *
984     * @param s the new show explorer file size
985     */
986    public void setShowExplorerFileSize(String s) {
987
988        m_settings.setShowExplorerFileSize(s);
989    }
990
991    /**
992     * Sets the show explorer file state.
993     *
994     * @param s the new show explorer file state
995     */
996    public void setShowExplorerFileState(String s) {
997
998        m_settings.setShowExplorerFileState(s);
999    }
1000
1001    /**
1002     * Sets the show explorer file title.
1003     *
1004     * @param s the new show explorer file title
1005     */
1006    public void setShowExplorerFileTitle(String s) {
1007
1008        m_settings.setShowExplorerFileTitle(s);
1009    }
1010
1011    /**
1012     * Sets the show explorer file type.
1013     *
1014     * @param s the new show explorer file type
1015     */
1016    public void setShowExplorerFileType(String s) {
1017
1018        m_settings.setShowExplorerFileType(s);
1019
1020    }
1021
1022    /**
1023     * Sets the show explorer file user created.
1024     *
1025     * @param s the new show explorer file user created
1026     */
1027    public void setShowExplorerFileUserCreated(String s) {
1028
1029        m_settings.setShowExplorerFileUserCreated(s);
1030    }
1031
1032    /**
1033     * Sets the show explorer file user last modified.
1034     *
1035     * @param s the new show explorer file user last modified
1036     */
1037    public void setShowExplorerFileUserLastModified(String s) {
1038
1039        m_settings.setShowExplorerFileUserLastModified(s);
1040    }
1041
1042    /**
1043     * Sets the show file upload button.
1044     *
1045     * @param s the new show file upload button
1046     */
1047    public void setShowFileUploadButton(String s) {
1048
1049        m_settings.setShowFileUploadButton(s);
1050    }
1051
1052    /**
1053     * Sets the show publish notification.
1054     *
1055     * @param s the new show publish notification
1056     */
1057    public void setShowPublishNotification(String s) {
1058
1059        m_settings.setShowPublishNotification(s);
1060    }
1061
1062    /**
1063     * Sets the show upload type dialog.
1064     *
1065     * @param s the new show upload type dialog
1066     */
1067    public void setShowUploadTypeDialog(String s) {
1068
1069        m_settings.setShowUploadTypeDialog(s);
1070    }
1071
1072    /**
1073     * Sets the start folder.
1074     *
1075     * @param s the new start folder
1076     */
1077    public void setStartFolder(String s) {
1078
1079        m_settings.setStartFolder(s);
1080    }
1081
1082    /**
1083     * Sets the start project.
1084     *
1085     * @param s the new start project
1086     */
1087    public void setStartProject(String s) {
1088
1089        m_settings.setStartProject(s);
1090    }
1091
1092    /**
1093     * Sets the start site.
1094     *
1095     * @param s the new start site
1096     */
1097    public void setStartSite(String s) {
1098
1099        m_settings.setStartSite(s);
1100    }
1101
1102    /**
1103     * Sets the start view.
1104     *
1105     * @param s the new start view
1106     */
1107    public void setStartView(String s) {
1108
1109        m_settings.setStartView(s);
1110
1111    }
1112
1113    /**
1114     * Sets the subsitemap creation mode.
1115     *
1116     * @param mode the new subsitemap creation mode
1117     */
1118    public void setSubsitemapCreationMode(String mode) {
1119
1120        m_settings.setSubsitemapCreationMode(mode);
1121    }
1122
1123    /**
1124     * Sets the time warp.
1125     *
1126     * @param l the new time warp
1127     */
1128    public void setTimeWarp(String l) {
1129
1130        long warp = CmsContextInfo.CURRENT_TIME;
1131        try {
1132            warp = Long.parseLong(l);
1133        } catch (NumberFormatException e) {
1134            // if parsing the time warp fails, it will be set to -1 (i.e. disabled)
1135        }
1136        m_settings.setTimeWarp(warp);
1137    }
1138
1139    /**
1140     * Sets the upload applet client folder.
1141     *
1142     * @param s the new upload applet client folder
1143     */
1144    public void setUploadAppletClientFolder(String s) {
1145
1146        m_settings.setUploadAppletClientFolder(s);
1147
1148    }
1149
1150    /**
1151     * Sets the upload variant.
1152     *
1153     * @param s the new upload variant
1154     */
1155    public void setUploadVariant(String s) {
1156
1157        m_settings.setUploadVariant(s);
1158    }
1159
1160    /**
1161     * Sets the workplace button style.
1162     *
1163     * @param s the new workplace button style
1164     */
1165    public void setWorkplaceButtonStyle(String s) {
1166
1167        m_settings.setWorkplaceButtonStyle(s);
1168    }
1169
1170    /**
1171     * Sets the workplace mode.<p>
1172     *
1173     * @param workplaceMode the workplace mode
1174     */
1175    public void setWorkplaceMode(String workplaceMode) {
1176
1177        m_settings.setAdditionalPreference(CmsWorkplaceModePreference.PREFERENCE_NAME, workplaceMode);
1178    }
1179
1180    /**
1181     * Sets the workplace report type.
1182     *
1183     * @param s the new workplace report type
1184     */
1185    public void setWorkplaceReportType(String s) {
1186
1187        m_settings.setWorkplaceReportType(s);
1188    }
1189
1190    /**
1191     * Sets the workplace search index name.
1192     *
1193     * @param s the new workplace search index name
1194     */
1195    public void setWorkplaceSearchIndexName(String s) {
1196
1197        m_settings.setWorkplaceSearchIndexName(s);
1198    }
1199
1200    /**
1201     * Sets the workplace search view style.
1202     *
1203     * @param s the new workplace search view style
1204     */
1205    public void setWorkplaceSearchViewStyle(String s) {
1206
1207        m_settings.setWorkplaceSearchViewStyle(s);
1208
1209    }
1210}