001/* 002 * This library is part of OpenCms - 003 * the Open Source Content Management System 004 * 005 * Copyright (c) Alkacon Software GmbH & Co. KG (https://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: https://www.alkacon.com 019 * 020 * For further information about OpenCms, please see the 021 * project website: https://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 mode used to pre-process the search words entered in a gallery.<p> 250 * 251 * @return the gallery search word mode 252 */ 253 @PrefMetadata(type = CmsGallerySearchWordModePreference.class) 254 public String getGallerySearchWordMode() { 255 256 return m_settings.getAdditionalPreference(CmsGallerySearchWordModePreference.PREFERENCE_NAME, false); 257 } 258 259 /** 260 * Gets the value of the 'show invalid elements in galleries'.<p> 261 * 262 * @return the 'show invalid elements in galleries' setting 263 */ 264 @PrefMetadata(type = CmsGalleryShowInvalidDefaultPreference.class) 265 public String getGalleryShowInvalidDefault() { 266 267 return m_settings.getAdditionalPreference(CmsGalleryService.PREF_GALLERY_SHOW_INVALID_DEFAULT, false); 268 } 269 270 /** 271 * Gets the list all projects. 272 * 273 * @return the list all projects 274 */ 275 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 276 public String getListAllProjects() { 277 278 return m_settings.getListAllProjectsString(); 279 } 280 281 /** 282 * Gets the locale. 283 * 284 * @return the locale 285 */ 286 @PrefMetadata(type = CmsLanguagePreference.class) 287 public String getLocale() { 288 289 return m_settings.getLocale().toString(); 290 } 291 292 /** 293 * Gets the new folder create index page. 294 * 295 * @return the new folder create index page 296 */ 297 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 298 public String getNewFolderCreateIndexPage() { 299 300 return m_settings.getNewFolderCreateIndexPage().toString(); 301 } 302 303 /** 304 * Gets the new folder edit properties. 305 * 306 * @return the new folder edit properties 307 */ 308 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 309 public String getNewFolderEditProperties() { 310 311 return m_settings.getNewFolderEditProperties().toString(); 312 } 313 314 /** 315 * Gets the publish button appearance. 316 * 317 * @return the publish button appearance 318 */ 319 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 320 public String getPublishButtonAppearance() { 321 322 return m_settings.getPublishButtonAppearance(); 323 } 324 325 /** 326 * Gets the publish related resources mode. 327 * 328 * @return the publish related resources mode 329 */ 330 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 331 public String getPublishRelatedResourcesMode() { 332 333 return "" + m_settings.getPublishRelatedResources(); 334 } 335 336 /** 337 * Gets the restrict explorer view. 338 * 339 * @return the restrict explorer view 340 */ 341 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 342 public String getRestrictExplorerView() { 343 344 return m_settings.getRestrictExplorerViewString(); 345 } 346 347 /** 348 * Gets the show explorer file date created. 349 * 350 * @return the show explorer file date created 351 */ 352 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 353 public String getShowExplorerFileDateCreated() { 354 355 return m_settings.getShowExplorerFileDateCreated(); 356 } 357 358 /** 359 * Gets the show explorer file date expired. 360 * 361 * @return the show explorer file date expired 362 */ 363 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 364 public String getShowExplorerFileDateExpired() { 365 366 return m_settings.getShowExplorerFileDateExpired(); 367 } 368 369 /** 370 * Gets the show explorer file date last modified. 371 * 372 * @return the show explorer file date last modified 373 */ 374 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 375 public String getShowExplorerFileDateLastModified() { 376 377 return m_settings.getShowExplorerFileDateLastModified(); 378 } 379 380 /** 381 * Gets the show explorer file date released. 382 * 383 * @return the show explorer file date released 384 */ 385 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 386 public String getShowExplorerFileDateReleased() { 387 388 return m_settings.getShowExplorerFileDateReleased(); 389 } 390 391 /** 392 * Gets the show explorer file locked by. 393 * 394 * @return the show explorer file locked by 395 */ 396 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 397 public String getShowExplorerFileLockedBy() { 398 399 return m_settings.getShowExplorerFileLockedBy(); 400 } 401 402 /** 403 * Gets the show explorer file nav text. 404 * 405 * @return the show explorer file nav text 406 */ 407 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 408 public String getShowExplorerFileNavText() { 409 410 return m_settings.getShowExplorerFileNavText(); 411 } 412 413 /** 414 * Gets the show explorer file permissions. 415 * 416 * @return the show explorer file permissions 417 */ 418 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 419 public String getShowExplorerFilePermissions() { 420 421 return m_settings.getShowExplorerFilePermissions(); 422 } 423 424 /** 425 * Gets the show explorer file size. 426 * 427 * @return the show explorer file size 428 */ 429 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 430 public String getShowExplorerFileSize() { 431 432 return m_settings.getShowExplorerFileSize(); 433 } 434 435 /** 436 * Gets the show explorer file state. 437 * 438 * @return the show explorer file state 439 */ 440 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 441 public String getShowExplorerFileState() { 442 443 return m_settings.getShowExplorerFileState(); 444 } 445 446 /** 447 * Gets the show explorer file title. 448 * 449 * @return the show explorer file title 450 */ 451 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 452 public String getShowExplorerFileTitle() { 453 454 return m_settings.getShowExplorerFileTitle(); 455 } 456 457 /** 458 * Gets the show explorer file type. 459 * 460 * @return the show explorer file type 461 */ 462 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 463 public String getShowExplorerFileType() { 464 465 return m_settings.getShowExplorerFileType(); 466 } 467 468 /** 469 * Gets the show explorer file user created. 470 * 471 * @return the show explorer file user created 472 */ 473 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 474 public String getShowExplorerFileUserCreated() { 475 476 return m_settings.getShowExplorerFileUserCreated(); 477 } 478 479 /** 480 * Gets the show explorer file user last modified. 481 * 482 * @return the show explorer file user last modified 483 */ 484 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 485 public String getShowExplorerFileUserLastModified() { 486 487 return m_settings.getShowExplorerFileUserLastModified(); 488 } 489 490 /** 491 * Gets the show file upload button. 492 * 493 * @return the show file upload button 494 */ 495 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 496 public String getShowFileUploadButton() { 497 498 return m_settings.getShowFileUploadButtonString(); 499 } 500 501 /** 502 * Gets the show publish notification. 503 * 504 * @return the show publish notification 505 */ 506 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 507 public String getShowPublishNotification() { 508 509 return m_settings.getShowPublishNotificationString(); 510 } 511 512 /** 513 * Gets the show upload type dialog. 514 * 515 * @return the show upload type dialog 516 */ 517 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 518 public String getShowUploadTypeDialog() { 519 520 return "" + m_settings.getShowUploadTypeDialog(); 521 } 522 523 /** 524 * Gets the start folder. 525 * 526 * @return the start folder 527 */ 528 @PrefMetadata(type = CmsStartFolderPreference.class) 529 public String getStartFolder() { 530 531 return m_settings.getStartFolder(); 532 } 533 534 /** 535 * Gets the start project. 536 * 537 * @return the start project 538 */ 539 @PrefMetadata(type = CmsProjectPreference.class) 540 public String getStartProject() { 541 542 return m_settings.getStartProject(); 543 } 544 545 /** 546 * Gets the start site. 547 * 548 * @return the start site 549 */ 550 @PrefMetadata(type = CmsSitePreference.class) 551 public String getStartSite() { 552 553 return m_settings.getStartSite(); 554 } 555 556 /** 557 * Gets the start view. 558 * 559 * @return the start view 560 */ 561 @PrefMetadata(type = CmsStartViewPreference.class) 562 public String getStartView() { 563 564 return m_settings.getStartView(); 565 } 566 567 /** 568 * Gets the subsitemap creation mode. 569 * 570 * @return the subsitemap creation mode 571 */ 572 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 573 public String getSubsitemapCreationMode() { 574 575 return "" + m_settings.getSubsitemapCreationMode(); 576 } 577 578 /** 579 * Gets the time warp. 580 * 581 * @return the time warp 582 */ 583 @PrefMetadata(type = CmsTimeWarpPreference.class) 584 public String getTimeWarp() { 585 586 long warp = m_settings.getTimeWarp(); 587 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 588 } 589 590 /** 591 * Gets the upload applet client folder. 592 * 593 * @return the upload applet client folder 594 */ 595 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 596 public String getUploadAppletClientFolder() { 597 598 return m_settings.getUploadAppletClientFolder(); 599 } 600 601 /** 602 * Gets the upload variant. 603 * 604 * @return the upload variant 605 */ 606 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 607 public String getUploadVariant() { 608 609 return m_settings.getUploadVariant().toString(); 610 } 611 612 /** 613 * Gets the workplace button style. 614 * 615 * @return the workplace button style 616 */ 617 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 618 public String getWorkplaceButtonStyle() { 619 620 return m_settings.getWorkplaceButtonStyleString(); 621 } 622 623 /** 624 * Gets the workplace mode.<p> 625 * 626 * @return the workplace mode 627 */ 628 @PrefMetadata(type = CmsWorkplaceModePreference.class) 629 public String getWorkplaceMode() { 630 631 return m_settings.getAdditionalPreference(CmsWorkplaceModePreference.PREFERENCE_NAME, false); 632 } 633 634 /** 635 * Gets the workplace report type. 636 * 637 * @return the workplace report type 638 */ 639 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 640 public String getWorkplaceReportType() { 641 642 return m_settings.getWorkplaceReportType(); 643 644 } 645 646 /** 647 * Gets the workplace search index name. 648 * 649 * @return the workplace search index name 650 */ 651 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 652 public String getWorkplaceSearchIndexName() { 653 654 return m_settings.getWorkplaceSearchIndexName(); 655 } 656 657 /** 658 * Gets the workplace search view style. 659 * 660 * @return the workplace search view style 661 */ 662 @PrefMetadata(type = CmsHiddenBuiltinPreference.class) 663 public String getWorkplaceSearchViewStyle() { 664 665 return m_settings.getWorkplaceSearchViewStyle().toString(); 666 } 667 668 /** 669 * Sets the allow broken relations. 670 * 671 * @param s the new allow broken relations 672 */ 673 public void setAllowBrokenRelations(String s) { 674 675 m_settings.setAllowBrokenRelations(s); 676 } 677 678 /** 679 * Sets the dialog copy file mode. 680 * 681 * @param s the new dialog copy file mode 682 */ 683 public void setDialogCopyFileMode(String s) { 684 685 m_settings.setDialogCopyFileMode(s); 686 687 } 688 689 /** 690 * Sets the dialog copy folder mode. 691 * 692 * @param s the new dialog copy folder mode 693 */ 694 public void setDialogCopyFolderMode(String s) { 695 696 m_settings.setDialogCopyFolderMode(s); 697 } 698 699 /** 700 * Sets the dialog delete file mode. 701 * 702 * @param s the new dialog delete file mode 703 */ 704 public void setDialogDeleteFileMode(String s) { 705 706 m_settings.setDialogDeleteFileMode(s); 707 } 708 709 /** 710 * Sets the dialog expand inherited permissions. 711 * 712 * @param s the new dialog expand inherited permissions 713 */ 714 public void setDialogExpandInheritedPermissions(String s) { 715 716 m_settings.setDialogExpandInheritedPermissions(s); 717 } 718 719 /** 720 * Sets the dialog expand user permissions. 721 * 722 * @param s the new dialog expand user permissions 723 */ 724 public void setDialogExpandUserPermissions(String s) { 725 726 m_settings.setDialogExpandUserPermissions(s); 727 } 728 729 /** 730 * Sets the dialog permissions inherit on folder. 731 * 732 * @param s the new dialog permissions inherit on folder 733 */ 734 public void setDialogPermissionsInheritOnFolder(String s) { 735 736 m_settings.setDialogPermissionsInheritOnFolder(s); 737 } 738 739 /** 740 * Sets the dialog publish siblings. 741 * 742 * @param s the new dialog publish siblings 743 */ 744 public void setDialogPublishSiblings(String s) { 745 746 m_settings.setDialogPublishSiblings(s); 747 } 748 749 /** 750 * Sets the dialog show export settings. 751 * 752 * @param s the new dialog show export settings 753 */ 754 public void setDialogShowExportSettings(String s) { 755 756 m_settings.setShowExportSettingsDialog(s); 757 } 758 759 /** 760 * Sets the dialog show lock. 761 * 762 * @param s the new dialog show lock 763 */ 764 public void setDialogShowLock(String s) { 765 766 m_settings.setShowLockDialog(s); 767 } 768 769 /** 770 * Sets the direct edit button style. 771 * 772 * @param s the new direct edit button style 773 */ 774 public void setDirectEditButtonStyle(String s) { 775 776 m_settings.setDirectEditButtonStyle(s); 777 778 } 779 780 /** 781 * Sets the editor button style. 782 * 783 * @param s the new editor button style 784 */ 785 public void setEditorButtonStyle(String s) { 786 787 m_settings.setEditorButtonStyle(s); 788 } 789 790 /** 791 * Sets the element view.<p> 792 * 793 * @param elementView the element view 794 */ 795 public void setElementView(String elementView) { 796 797 m_settings.setAdditionalPreference(CmsElementViewPreference.PREFERENCE_NAME, elementView); 798 } 799 800 /** 801 * Sets the explorer button style. 802 * 803 * @param s the new explorer button style 804 */ 805 public void setExplorerButtonStyle(String s) { 806 807 m_settings.setExplorerButtonStyle(s); 808 } 809 810 /** 811 * Sets the explorer start element view.<p> 812 * 813 * @param view the start element view. 814 */ 815 public void setExplorerElementView(String view) { 816 817 m_settings.setAdditionalPreference(CmsElementViewPreference.EXPLORER_PREFERENCE_NAME, view); 818 } 819 820 /** 821 * Sets the explorer file entries. 822 * 823 * @param s the new explorer file entries 824 */ 825 public void setExplorerFileEntries(String s) { 826 827 m_settings.setExplorerFileEntries(s); 828 } 829 830 /** 831 * Sets the explorer file entry options. 832 * 833 * @param s the new explorer file entry options 834 */ 835 public void setExplorerFileEntryOptions(String s) { 836 837 m_settings.setExplorerFileEntryOptions(s); 838 839 } 840 841 /** 842 * Sets the mode used to pre-process the search words entered in a gallery.<p> 843 * 844 * @param value the value to set 845 */ 846 public void setGallerySearchWordMode(String value) { 847 848 m_settings.setAdditionalPreference(CmsGallerySearchWordModePreference.PREFERENCE_NAME, value); 849 } 850 851 /** 852 * Sets the default value for the checkbox which enables/disables showing invalid results in the gallery result tab.<p> 853 * 854 * @param value the value to set 855 */ 856 public void setGalleryShowInvalidDefault(String value) { 857 858 m_settings.setAdditionalPreference(CmsGalleryService.PREF_GALLERY_SHOW_INVALID_DEFAULT, value); 859 } 860 861 /** 862 * Sets the list all projects. 863 * 864 * @param s the new list all projects 865 */ 866 public void setListAllProjects(String s) { 867 868 m_settings.setListAllProjects(s); 869 } 870 871 /** 872 * Sets the locale. 873 * 874 * @param s the new locale 875 */ 876 public void setLocale(String s) { 877 878 m_settings.setLocale(CmsLocaleManager.getLocale(s)); 879 } 880 881 /** 882 * Sets the new folder create index page. 883 * 884 * @param s the new new folder create index page 885 */ 886 public void setNewFolderCreateIndexPage(String s) { 887 888 m_settings.setNewFolderCreateIndexPage(s); 889 } 890 891 /** 892 * Sets the new folder edit properties. 893 * 894 * @param s the new new folder edit properties 895 */ 896 public void setNewFolderEditProperties(String s) { 897 898 m_settings.setNewFolderEditProperties(s); 899 } 900 901 /** 902 * Sets the publish button appearance. 903 * 904 * @param s the new publish button appearance 905 */ 906 public void setPublishButtonAppearance(String s) { 907 908 m_settings.setPublishButtonAppearance(s); 909 } 910 911 /** 912 * Sets the publish related resources mode. 913 * 914 * @param mode the new publish related resources mode 915 */ 916 public void setPublishRelatedResourcesMode(String mode) { 917 918 m_settings.setPublishRelatedResourcesMode(mode); 919 } 920 921 /** 922 * Sets the restrict explorer view. 923 * 924 * @param s the new restrict explorer view 925 */ 926 public void setRestrictExplorerView(String s) { 927 928 m_settings.setRestrictExplorerView(s); 929 } 930 931 /** 932 * Sets the show explorer file date created. 933 * 934 * @param s the new show explorer file date created 935 */ 936 public void setShowExplorerFileDateCreated(String s) { 937 938 m_settings.setShowExplorerFileDateCreated(s); 939 940 } 941 942 /** 943 * Sets the show explorer file date expired. 944 * 945 * @param s the new show explorer file date expired 946 */ 947 public void setShowExplorerFileDateExpired(String s) { 948 949 m_settings.setShowExplorerFileDateExpired(s); 950 } 951 952 /** 953 * Sets the show explorer file date last modified. 954 * 955 * @param s the new show explorer file date last modified 956 */ 957 public void setShowExplorerFileDateLastModified(String s) { 958 959 m_settings.setShowExplorerFileDateLastModified(s); 960 } 961 962 /** 963 * Sets the show explorer file date released. 964 * 965 * @param s the new show explorer file date released 966 */ 967 public void setShowExplorerFileDateReleased(String s) { 968 969 m_settings.setShowExplorerFileDateReleased(s); 970 } 971 972 /** 973 * Sets the show explorer file locked by. 974 * 975 * @param s the new show explorer file locked by 976 */ 977 public void setShowExplorerFileLockedBy(String s) { 978 979 m_settings.setShowExplorerFileLockedBy(s); 980 } 981 982 /** 983 * Sets the show explorer file nav text. 984 * 985 * @param s the new show explorer file nav text 986 */ 987 public void setShowExplorerFileNavText(String s) { 988 989 m_settings.setShowExplorerFileNavText(s); 990 } 991 992 /** 993 * Sets the show explorer file permissions. 994 * 995 * @param s the new show explorer file permissions 996 */ 997 public void setShowExplorerFilePermissions(String s) { 998 999 m_settings.setShowExplorerFilePermissions(s); 1000 } 1001 1002 /** 1003 * Sets the show explorer file size. 1004 * 1005 * @param s the new show explorer file size 1006 */ 1007 public void setShowExplorerFileSize(String s) { 1008 1009 m_settings.setShowExplorerFileSize(s); 1010 } 1011 1012 /** 1013 * Sets the show explorer file state. 1014 * 1015 * @param s the new show explorer file state 1016 */ 1017 public void setShowExplorerFileState(String s) { 1018 1019 m_settings.setShowExplorerFileState(s); 1020 } 1021 1022 /** 1023 * Sets the show explorer file title. 1024 * 1025 * @param s the new show explorer file title 1026 */ 1027 public void setShowExplorerFileTitle(String s) { 1028 1029 m_settings.setShowExplorerFileTitle(s); 1030 } 1031 1032 /** 1033 * Sets the show explorer file type. 1034 * 1035 * @param s the new show explorer file type 1036 */ 1037 public void setShowExplorerFileType(String s) { 1038 1039 m_settings.setShowExplorerFileType(s); 1040 1041 } 1042 1043 /** 1044 * Sets the show explorer file user created. 1045 * 1046 * @param s the new show explorer file user created 1047 */ 1048 public void setShowExplorerFileUserCreated(String s) { 1049 1050 m_settings.setShowExplorerFileUserCreated(s); 1051 } 1052 1053 /** 1054 * Sets the show explorer file user last modified. 1055 * 1056 * @param s the new show explorer file user last modified 1057 */ 1058 public void setShowExplorerFileUserLastModified(String s) { 1059 1060 m_settings.setShowExplorerFileUserLastModified(s); 1061 } 1062 1063 /** 1064 * Sets the show file upload button. 1065 * 1066 * @param s the new show file upload button 1067 */ 1068 public void setShowFileUploadButton(String s) { 1069 1070 m_settings.setShowFileUploadButton(s); 1071 } 1072 1073 /** 1074 * Sets the show publish notification. 1075 * 1076 * @param s the new show publish notification 1077 */ 1078 public void setShowPublishNotification(String s) { 1079 1080 m_settings.setShowPublishNotification(s); 1081 } 1082 1083 /** 1084 * Sets the show upload type dialog. 1085 * 1086 * @param s the new show upload type dialog 1087 */ 1088 public void setShowUploadTypeDialog(String s) { 1089 1090 m_settings.setShowUploadTypeDialog(s); 1091 } 1092 1093 /** 1094 * Sets the start folder. 1095 * 1096 * @param s the new start folder 1097 */ 1098 public void setStartFolder(String s) { 1099 1100 m_settings.setStartFolder(s); 1101 } 1102 1103 /** 1104 * Sets the start project. 1105 * 1106 * @param s the new start project 1107 */ 1108 public void setStartProject(String s) { 1109 1110 m_settings.setStartProject(s); 1111 } 1112 1113 /** 1114 * Sets the start site. 1115 * 1116 * @param s the new start site 1117 */ 1118 public void setStartSite(String s) { 1119 1120 m_settings.setStartSite(s); 1121 } 1122 1123 /** 1124 * Sets the start view. 1125 * 1126 * @param s the new start view 1127 */ 1128 public void setStartView(String s) { 1129 1130 m_settings.setStartView(s); 1131 1132 } 1133 1134 /** 1135 * Sets the subsitemap creation mode. 1136 * 1137 * @param mode the new subsitemap creation mode 1138 */ 1139 public void setSubsitemapCreationMode(String mode) { 1140 1141 m_settings.setSubsitemapCreationMode(mode); 1142 } 1143 1144 /** 1145 * Sets the time warp. 1146 * 1147 * @param l the new time warp 1148 */ 1149 public void setTimeWarp(String l) { 1150 1151 long warp = CmsContextInfo.CURRENT_TIME; 1152 try { 1153 warp = Long.parseLong(l); 1154 } catch (NumberFormatException e) { 1155 // if parsing the time warp fails, it will be set to -1 (i.e. disabled) 1156 } 1157 m_settings.setTimeWarp(warp); 1158 } 1159 1160 /** 1161 * Sets the upload applet client folder. 1162 * 1163 * @param s the new upload applet client folder 1164 */ 1165 public void setUploadAppletClientFolder(String s) { 1166 1167 m_settings.setUploadAppletClientFolder(s); 1168 1169 } 1170 1171 /** 1172 * Sets the upload variant. 1173 * 1174 * @param s the new upload variant 1175 */ 1176 public void setUploadVariant(String s) { 1177 1178 m_settings.setUploadVariant(s); 1179 } 1180 1181 /** 1182 * Sets the workplace button style. 1183 * 1184 * @param s the new workplace button style 1185 */ 1186 public void setWorkplaceButtonStyle(String s) { 1187 1188 m_settings.setWorkplaceButtonStyle(s); 1189 } 1190 1191 /** 1192 * Sets the workplace mode.<p> 1193 * 1194 * @param workplaceMode the workplace mode 1195 */ 1196 public void setWorkplaceMode(String workplaceMode) { 1197 1198 m_settings.setAdditionalPreference(CmsWorkplaceModePreference.PREFERENCE_NAME, workplaceMode); 1199 } 1200 1201 /** 1202 * Sets the workplace report type. 1203 * 1204 * @param s the new workplace report type 1205 */ 1206 public void setWorkplaceReportType(String s) { 1207 1208 m_settings.setWorkplaceReportType(s); 1209 } 1210 1211 /** 1212 * Sets the workplace search index name. 1213 * 1214 * @param s the new workplace search index name 1215 */ 1216 public void setWorkplaceSearchIndexName(String s) { 1217 1218 m_settings.setWorkplaceSearchIndexName(s); 1219 } 1220 1221 /** 1222 * Sets the workplace search view style. 1223 * 1224 * @param s the new workplace search view style 1225 */ 1226 public void setWorkplaceSearchViewStyle(String s) { 1227 1228 m_settings.setWorkplaceSearchViewStyle(s); 1229 1230 } 1231}