code: public void exportData(CmsObject cms, I_CmsImportExportHandler handler, I_CmsReport report)
      throws CmsConfigurationException, CmsImportExportException, CmsRoleViolationException {
  
          OpenCms.getRoleManager().checkRole(cms, CmsRole.DATABASE_MANAGER);
          handler.exportData(cms, report);
      }
docs: Checks if the current user has permissions to export Cms data of a specified export handler,
  and if so, triggers the handler to write the export.<p>
  
  @param cms the cms context
  @param handler handler containing the export data
  @param report the output report
  
  @throws CmsRoleViolationException if the current user is not a allowed to export the OpenCms database
  @throws CmsImportExportException if operation was not successful
  @throws CmsConfigurationException if something goes wrong
  
  @see I_CmsImportExportHandler