code: public void setFileViewSettings(CmsObject cms, CmsRfsFileViewer fileViewSettings) throws CmsRoleViolationException {
  
          if (OpenCms.getRunLevel() > OpenCms.RUNLEVEL_2_INITIALIZING) {
              OpenCms.getRoleManager().checkRole(cms, CmsRole.ROOT_ADMIN);
          }
          m_fileViewSettings = fileViewSettings;
          // disallow modifications of this "new original"
          m_fileViewSettings.setFrozen(true);
      }
docs: Sets the system-wide file view settings for the workplace.<p>
  
  @param cms the CmsObject for ensuring security constraints.
  
  @param fileViewSettings the system-wide file view settings for the workplace to set
  
  @throws CmsRoleViolationException if the current user does not own the administrator role ({@link CmsRole#ROOT_ADMIN})