/*************************************************************************
 *
 *  $RCSfile: DataImporter.idl,v $
 *
 *  $Revision: 1.2 $
 *
 *  last change: $Author: rt $ $Date: 2003/04/17 14:13:38 $
 *
 *  The Contents of this file are made available subject to the terms of
 *  either of the following licenses
 *
 *         - GNU Lesser General Public License Version 2.1
 *         - Sun Industry Standards Source License Version 1.1
 *
 *  Sun Microsystems Inc., October, 2000
 *
 *  GNU Lesser General Public License Version 2.1
 *  =============================================
 *  Copyright 2000 by Sun Microsystems, Inc.
 *  901 San Antonio Road, Palo Alto, CA 94303, USA
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License version 2.1, as published by the Free Software Foundation.
 *
 *  This library 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
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *  MA  02111-1307  USA
 *
 *
 *  Sun Industry Standards Source License Version 1.1
 *  =================================================
 *  The contents of this file are subject to the Sun Industry Standards
 *  Source License Version 1.1 (the "License"); You may not use this file
 *  except in compliance with the License. You may obtain a copy of the
 *  License at http://www.openoffice.org/license.html.
 *
 *  Software provided under this License is provided on an "AS IS" basis,
 *  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
 *  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 *  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 *  See the License for the specific provisions governing your rights and
 *  obligations concerning the Software.
 *
 *  The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 *
 *  Copyright: 2002 by Sun Microsystems, Inc.
 *
 *  All Rights Reserved.
 *
 *  Contributor(s): _______________________________________
 *
 *
 ************************************************************************/
#ifndef __com_sun_star_configuration_backend_DataImporter_idl__
#define __com_sun_star_configuration_backend_DataImporter_idl__

#ifndef __com_sun_star_task_XJob_idl__
#include <com/sun/star/task/XJob.idl>
#endif 

//============================================================================= 

module com { module sun { module star { module configuration { module backend {

//============================================================================= 

/**
    allows importing data from one configuration repository into another. .
  
    @since #107959#
*/
service DataImporter
{
	//------------------------------------------------------------------------- 

    /** allows running an import job

        <p> The source and destination repositories are selected by arguments 
            passed to
            <member scope="com::sun::star::task">XJob::execute()</member>. 
            The names and meanings of such arguments depend on 
            the implementation. Each implementation must document such arguments.
        </p>
            
        <p> Implementations may return a value from 
            <member scope="com::sun::star::task">XJob::execute()</member>
            that indicates the status of job execution. The type and meaning of 
            such status indicators depend on the implementation. 
        </p>
         <p>If <void/> or <TRUE/> is returned, this indicates successful 
            execution. If an 
            <type scope="com::sun::star::uno">Exception</type> is returned, 
            it represents an error condition encountered during execution. 
        </p>

        <p> The following arguments to
            <member scope="com::sun::star::task">XJob::execute()</member>
            should be supported by implementations. Implementations must document 
            a failure to support any of these arguments:
        <dl>
            <dt><code>ImporterService</code> : <atom >string</atom></dt>
            <dd>A service or implementation name used to instantiate the 
                <type>Importer</type> to use for importing. If this parameter 
                is missing, the implementation selects an appropriate importer. 
                By default, a <type>MergeImporter</type> should be used.
            </dd>
            <dt><code>OverwriteExisting</code> : <atom >boolean</atom></dt>
            <dd>If <TRUE/>, specifies that no existing data should be 
                overwritten by the import. If the <type>Importer</type> used 
                does not support such protection, an error may be raised. 
                If some data is not imported, because there is existing 
                data, this is indicated by returning an appropriate exception. 
            </dd>
            <dt><code>TruncateExisting</code> : <atom >boolean</atom></dt>
            <dd>If <TRUE/>, specifies that existing data should be 
                discarded and replaced by the imported data. 
                If the <type>Importer</type> used does not support this 
                operation, an error may be raised. 
                By default, a <type>CopyImporter</type> is used to perform 
                truncating import.
            </dd>
            <dt><code>Entity</code> : <atom >string</atom></dt>
            <dd>An identifier for the entity in the destination backend for 
                which the imported data should apply. The value will be passed 
                to <member>XLayerImporter::importLayerForEntity()</member>.
                If this parameter is missing, the implementation uses 
                <member>XLayerImporter::importLayer()</member> instead.
            </dd>
            <dt><code>Component</code> : <atom >string</atom></dt>
            <dd>Names the component for which to import data. If this 
                parameter is missing, the selection of data to import depends 
                on implementation-specific parameters. 
            </dd>
        </dl>
        </p>

      */
    interface com::sun::star::task::XJob ;

	//------------------------------------------------------------------------- 
} ;

//============================================================================= 

} ; } ; } ; } ; } ; 

#endif 
