org.opencrx.kernel.backend
Class Exporter

java.lang.Object
  extended by org.opencrx.kernel.backend.Exporter

public class Exporter
extends Object


Field Summary
protected  Backend backend
           
protected  int currentEntryId
           
protected  String exportMimeType
           
protected  Map<String,List<String>> exportOptions
           
static String FILE_EXT_BIN
           
static String FILE_EXT_XLS
           
static String FILE_EXT_XML
           
static String FILE_EXT_ZIP
           
protected static int MAX_LEVELS
           
static String MIME_TYPE_EXCEL
           
static String MIME_TYPE_XML
           
protected  Set<String> referenceFilter
           
protected  RequestCollection source
           
protected  RequestCollection target
           
 
Constructor Summary
Exporter(Backend backend, RequestCollection reader)
           
Exporter(Backend backend, RequestCollection target, RequestCollection reader)
           
 
Method Summary
 void exportItem(OutputStream out, PrintStream ps, List<Path> startPoints, Set<Path> allExportedObjects, Set<Path> allReferencedObjects, Map<String,Object> context, int level)
           
 Object[] exportItem(Path startFromIdentity, ExportProfile exportProfile, String referenceFilter, String itemMimeType)
          Export object with identity startFromIdentity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIME_TYPE_XML

public static final String MIME_TYPE_XML
See Also:
Constant Field Values

MIME_TYPE_EXCEL

public static final String MIME_TYPE_EXCEL
See Also:
Constant Field Values

FILE_EXT_XLS

public static final String FILE_EXT_XLS
See Also:
Constant Field Values

FILE_EXT_XML

public static final String FILE_EXT_XML
See Also:
Constant Field Values

FILE_EXT_BIN

public static final String FILE_EXT_BIN
See Also:
Constant Field Values

FILE_EXT_ZIP

public static final String FILE_EXT_ZIP
See Also:
Constant Field Values

MAX_LEVELS

protected static final int MAX_LEVELS
See Also:
Constant Field Values

currentEntryId

protected int currentEntryId

backend

protected final Backend backend

target

protected final RequestCollection target

source

protected final RequestCollection source

referenceFilter

protected Set<String> referenceFilter

exportOptions

protected Map<String,List<String>> exportOptions

exportMimeType

protected String exportMimeType
Constructor Detail

Exporter

public Exporter(Backend backend,
                RequestCollection target,
                RequestCollection reader)

Exporter

public Exporter(Backend backend,
                RequestCollection reader)
Method Detail

exportItem

public void exportItem(OutputStream out,
                       PrintStream ps,
                       List<Path> startPoints,
                       Set<Path> allExportedObjects,
                       Set<Path> allReferencedObjects,
                       Map<String,Object> context,
                       int level)
                throws IOException,
                       ServiceException
Throws:
IOException
ServiceException

exportItem

public Object[] exportItem(Path startFromIdentity,
                           ExportProfile exportProfile,
                           String referenceFilter,
                           String itemMimeType)
                    throws ServiceException
Export object with identity startFromIdentity. The export format is specified by exportProfile.

Returns:
exported object as array of {name as String, mimeTypeas String, content as byte[]}
Throws:
ServiceException


This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.