@ApplicationScoped public class ExportManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
WORKSPACE_EXTENSION |
Constructor and Description |
---|
ExportManager() |
Modifier and Type | Method and Description |
---|---|
CreateResult[] |
create(ImportResult[] results,
int[][] indexes)
Create the objects represented by given results.
|
ExportResult |
export(ExportData data)
Export workspaces and graphic resources
|
String[] |
getAllowedEntryExtensions() |
String |
getXmlHeader() |
ImportResult[] |
load(InputStream is)
Load an export definition from given stream
|
ImportResult |
loadXML(String name,
InputStream is) |
void |
setAllowedEntryExtensions(String[] allowedEntryExtensions) |
void |
setXmlHeader(String xmlHeader) |
public static final String WORKSPACE_EXTENSION
public String getXmlHeader()
public void setXmlHeader(String xmlHeader)
public String[] getAllowedEntryExtensions()
public void setAllowedEntryExtensions(String[] allowedEntryExtensions)
public ExportResult export(ExportData data) throws Exception
Exception
public ImportResult[] load(InputStream is)
is
- Stream to a zipped file containing an export resultpublic ImportResult loadXML(String name, InputStream is)
public CreateResult[] create(ImportResult[] results, int[][] indexes)
results
- import results to create.indexes
- filter for the results arrayCopyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.