
/*
* File   : $File$
* Date   : $Date: 2001/01/24 09:43:25 $
* Version: $Revision: 1.4 $
*
* Copyright (C) 2000  The OpenCms Group 
* 
* This File is part of OpenCms -
* the Open Source Content Mananagement System
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* 
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
* 
* For further information about OpenCms, please see the
* OpenCms Website: http://www.opencms.com
* 
* You should have received a copy of the GNU General Public License
* long with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

package com.opencms.workplace;

import com.opencms.file.*;
import com.opencms.core.*;
import com.opencms.util.*;
import com.opencms.template.*;
import java.util.*;
import java.io.*;

/**
 * Thread for create a new project.
 * Creation date: (13.10.00 14:39:20)
 * @author: Hanjo Riege
 */

public class CmsAdminDatabaseExportThread extends Thread implements I_CmsConstants {
    
    private CmsObject m_cms;
    
    private String m_fileName;
    
    private String[] m_exportPaths;
    
    private boolean m_excludeSystem;
    
    private boolean m_excludeUnchanged;
    
    /**
     * Insert the method's description here.
     * Creation date: (13.09.00 09:52:24)
     */
    
    public CmsAdminDatabaseExportThread(CmsObject cms, String fileName, 
            String[] exportPaths, boolean excludeSystem, boolean excludeUnchanged) {
        m_cms = cms;
        m_exportPaths = exportPaths;
        m_fileName = fileName;
        m_excludeSystem = excludeSystem;
        m_excludeUnchanged = excludeUnchanged;
    }
    
    public void run() {
        I_CmsSession session = m_cms.getRequestContext().getSession(true);
        try {
            
            // do the export   
            m_cms.exportResources(m_fileName, m_exportPaths, m_excludeSystem, m_excludeUnchanged);
        }
        catch(CmsException e) {
            session.putValue(C_SESSION_THREAD_ERROR, Utils.getStackTrace(e));
            if(A_OpenCms.isLogging()) {
                A_OpenCms.log(A_OpenCms.C_OPENCMS_CRITICAL, e.getMessage());
            }
        }
    }
}

@@ -43,21 +43,21 @@
 01/0
-1/24 09:43:25
+2/19 13:09:48
  $%0A*
@@ -79,17 +79,17 @@
 sion: 1.
-4
+5
  $%0A*%0A* C
@@ -124,20 +124,18 @@
 ms Group
- 
 %0A*
- 
 %0A* This 
@@ -457,17 +457,16 @@
 rsion.%0A*
- 
 %0A* This 
@@ -701,17 +701,16 @@
 tails.%0A*
- 
 %0A* For f
@@ -801,17 +801,16 @@
 ms.com%0A*
- 
 %0A* You s
@@ -1388,20 +1388,16 @@
 tants %7B%0A
-    
 %0A    pri
@@ -1418,20 +1418,16 @@
  m_cms;%0A
-    
 %0A    pri
@@ -1450,20 +1450,16 @@
 leName;%0A
-    
 %0A    pri
@@ -1487,20 +1487,16 @@
 tPaths;%0A
-    
 %0A    pri
@@ -1525,20 +1525,16 @@
 System;%0A
-    
 %0A    pri
@@ -1566,20 +1566,55 @@
 hanged;%0A
+%0A
     
+private boolean m_exportUserdata;%0A
 %0A    /**
@@ -1709,20 +1709,16 @@
      */%0A
-    
 %0A    pub
@@ -1781,17 +1781,16 @@
 ileName,
- 
 %0A       
@@ -1863,16 +1863,52 @@
 nchanged
+,%0A            boolean exportUserdata
 ) %7B%0A    
@@ -2080,26 +2080,65 @@
 hanged;%0A
+        m_exportUserdata = exportUserdata;%0A
     %7D%0A
-    
 %0A    pub
@@ -2243,28 +2243,16 @@
   try %7B%0A
-            
 %0A       
@@ -2272,19 +2272,16 @@
 e export
-   
 %0A       
@@ -2369,16 +2369,34 @@
 nchanged
+, m_exportUserdata
 );%0A     

call method exportResources with parameter exportUserdata