code: public void setPublishButtonAppearance(String publishButtonAppearance) {
  
          String value = CmsDefaultUserSettings.PUBLISHBUTTON_SHOW_ALWAYS;
          if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(publishButtonAppearance)) {
              publishButtonAppearance = publishButtonAppearance.trim().toLowerCase();
              if (CmsDefaultUserSettings.PUBLISHBUTTON_SHOW_AUTO.equals(publishButtonAppearance)) {
                  value = CmsDefaultUserSettings.PUBLISHBUTTON_SHOW_AUTO;
              } else if (CmsDefaultUserSettings.PUBLISHBUTTON_SHOW_NEVER.equals(publishButtonAppearance)) {
                  value = CmsDefaultUserSettings.PUBLISHBUTTON_SHOW_NEVER;
              }
          }
          m_publishButtonAppearance = value;
      }
docs: Sets the appearance of the "publish project" button.<p>
  
  Allowed values are either {@link CmsDefaultUserSettings#PUBLISHBUTTON_SHOW_ALWAYS},
  {@link CmsDefaultUserSettings#PUBLISHBUTTON_SHOW_AUTO} or
  {@link CmsDefaultUserSettings#PUBLISHBUTTON_SHOW_NEVER}.<p>
  
  @param publishButtonAppearance the appearance of the "publish project" button