org.opencrx.kernel.backend
Class Exporter
java.lang.Object
org.opencrx.kernel.backend.Exporter
public class Exporter
- extends Object
|
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 |
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
Exporter
public Exporter(Backend backend,
RequestCollection target,
RequestCollection reader)
Exporter
public Exporter(Backend backend,
RequestCollection reader)
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.