@ApplicationScoped public class ImportManagerImpl extends Object implements ImportManager
Modifier and Type | Field and Description |
---|---|
protected DataDisplayerManager |
dataDisplayerManager |
Constructor and Description |
---|
ImportManagerImpl() |
Modifier and Type | Method and Description |
---|---|
ImportOptions |
createImportOptions() |
ImportResults |
createImportResults() |
ImportResults |
parse(InputStream xml)
Creates elements (KPI, DataProvider ,..) parsing the specified XML stream.
|
ImportResults |
parse(InputStream xml,
ImportOptions options)
Creates elements (KPI, DataProvider ,..) parsing the specified XML stream.
|
ImportResults |
parse(NodeList xmlNodes,
ImportOptions options)
Creates elements (KPI, DataProvider ,..) parsing the specified XML nodes.
|
ImportResults |
parse(String xml)
Creates elements (KPI, DataProvider ,..) parsing the specified XML fragment.
|
ImportResults |
parse(String xml,
ImportOptions options)
Creates elements (KPI, DataProvider ,..) parsing the specified XML fragment.
|
protected void |
parseKPIs(NodeList xmlNodes,
ImportResults results) |
void |
parseProviders(NodeList xmlNodes,
ImportResults results) |
void |
save(ImportResults importResults)
Save the elements (KPI, DataProvider) contained in the import results instance.
|
protected void |
saveOrUpdate(ImportResults importResults,
boolean update)
Saves or update from persistence the elements (KPI, DataProvider) contained in the import results instance.
|
void |
update(ImportResults importResults)
Updates the elements (KPI, DataProvider) contained in the import results instance.
|
@Inject protected DataDisplayerManager dataDisplayerManager
public ImportOptions createImportOptions()
createImportOptions
in interface ImportManager
public ImportResults createImportResults()
createImportResults
in interface ImportManager
public void save(ImportResults importResults) throws Exception
save
in interface ImportManager
Exception
- If the specified import results contains ERROR messages.public void update(ImportResults importResults) throws Exception
update
in interface ImportManager
Exception
- If the specified import results contains ERROR messages.protected void saveOrUpdate(ImportResults importResults, boolean update) throws Exception
Exception
public ImportResults parse(String xml) throws Exception
parse
in interface ImportManager
Exception
public ImportResults parse(InputStream xml) throws Exception
parse
in interface ImportManager
Exception
public ImportResults parse(String xml, ImportOptions options) throws Exception
parse
in interface ImportManager
Exception
public ImportResults parse(InputStream xml, ImportOptions options) throws Exception
parse
in interface ImportManager
Exception
public ImportResults parse(NodeList xmlNodes, ImportOptions options) throws Exception
parse
in interface ImportManager
Exception
protected void parseKPIs(NodeList xmlNodes, ImportResults results) throws Exception
Exception
public void parseProviders(NodeList xmlNodes, ImportResults results) throws Exception
Exception
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.