|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.importexport.ExportManager
public class ExportManager
Implements the interface which defines methods for managing the export requests
Field Summary | |
---|---|
(package private) it.eng.spago.base.SourceBean |
connections
|
private ExporterMetadata |
exporter
|
private boolean |
exportSubObjects
|
private java.lang.String |
nameExportFile
|
private java.lang.String |
pathBaseFolder
|
private java.lang.String |
pathContentFolder
|
private java.lang.String |
pathDBFolder
|
private java.lang.String |
pathExportFolder
|
private org.hibernate.Session |
session
|
private org.hibernate.SessionFactory |
sessionFactory
|
Constructor Summary | |
---|---|
ExportManager()
|
Method Summary | |
---|---|
private void |
checkConnection(ModalitiesValue lov,
it.eng.spago.base.SourceBean conns)
Checks if a list of value object is a query type and in this case exports the name of the SpagoBI connection pool associated to the query |
void |
cleanExportEnvironment()
Clean the export environment (close sessions and delete temporary files) |
private void |
closeSession()
Close hibernate session and session factory relative to the export database |
private void |
compressFolder(java.lang.String pathFolder,
java.util.zip.ZipOutputStream out)
Compress contents of a folder into an output stream |
private java.lang.String |
createExportArchive()
Creates the compress export file |
private void |
deleteTmpFolder()
Delete the temporary folder created for export purpose |
private void |
exportBIParamsBIObj(java.util.List biparams,
BIObject biobj)
Exports the BIParameters of a BIObject |
private void |
exportConnectionFile(it.eng.spago.base.SourceBean conns)
Creates the file describing the connections expoted |
private void |
exportDomains()
Exports SpagoBI Domain Objects |
private void |
exportFunctionalities(java.lang.String path)
Export a single functionality |
private void |
exportFunctRoles(java.util.List roles,
LowFunctionality funct,
java.lang.String state)
Export an association between a functionality and a list of roles |
java.lang.String |
exportObjects(java.util.List objIds)
Exports objects and creates the archive export file |
private void |
exportParUses(java.util.List paruses)
Export a list ot Parameter use Objects |
private void |
exportPropertiesFile()
Creates the export properties file |
private void |
exportRoles(java.util.List roles)
Export a list of SpagoBI roles |
private void |
exportSingleObj(java.lang.String idObj)
Export A single SpagoBI BiObject |
private void |
exportTemplate(BIObject biobj)
Export the template of a single SpagoBI Object |
void |
prepareExport(java.lang.String pathExpFold,
java.lang.String nameExpFile,
boolean expSubObj)
Prepare the environment for export |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String nameExportFile
private java.lang.String pathExportFolder
private java.lang.String pathBaseFolder
private java.lang.String pathDBFolder
private java.lang.String pathContentFolder
private org.hibernate.SessionFactory sessionFactory
private org.hibernate.Session session
private ExporterMetadata exporter
private boolean exportSubObjects
it.eng.spago.base.SourceBean connections
Constructor Detail |
---|
public ExportManager()
Method Detail |
---|
public void prepareExport(java.lang.String pathExpFold, java.lang.String nameExpFile, boolean expSubObj) throws EMFUserError
prepareExport
in interface IExportManager
pathExpFold
- Path of the export foldernameExpFile
- the name to give to the exported fileexpSubObj
- Flag which tells if it's necessary to export subobjects
EMFUserError
public java.lang.String exportObjects(java.util.List objIds) throws EMFUserError
exportObjects
in interface IExportManager
objPaths
- List of path of the objects to export
EMFUserError
private void deleteTmpFolder()
private java.lang.String createExportArchive() throws EMFUserError
EMFUserError
private void compressFolder(java.lang.String pathFolder, java.util.zip.ZipOutputStream out) throws EMFUserError
pathFolder
- The path of the folder to compressout
- The Compress output stream
EMFUserError
private void exportPropertiesFile() throws EMFUserError
EMFUserError
private void exportDomains() throws EMFUserError
EMFUserError
private void exportSingleObj(java.lang.String idObj) throws EMFUserError
path
- The path of the biobject to export
EMFUserError
private void exportTemplate(BIObject biobj) throws EMFUserError
biobj
- The BIObject to which the template belongs
EMFUserError
private void exportBIParamsBIObj(java.util.List biparams, BIObject biobj) throws EMFUserError
biparams
- List ot the BIParameters belonging to the BIObjectbiobj
- The BIObject to which the parametes belong
EMFUserError
private void exportParUses(java.util.List paruses) throws EMFUserError
paruses
- The list of parameter use objects
EMFUserError
private void checkConnection(ModalitiesValue lov, it.eng.spago.base.SourceBean conns) throws EMFUserError
lov
- List of values Objectconns
- SourceBean that defines the connection pools of the current SpagoBI platform
EMFUserError
private void exportFunctionalities(java.lang.String path) throws EMFUserError
path
- The path of the fuctionality to export
EMFUserError
private void exportFunctRoles(java.util.List roles, LowFunctionality funct, java.lang.String state) throws EMFUserError
roles
- The list of roles to associate to the functionalityfunct
- The functionality which is part of the associationstate
- The state of the association
EMFUserError
private void exportRoles(java.util.List roles) throws EMFUserError
roles
- The list of roles to export
EMFUserError
private void exportConnectionFile(it.eng.spago.base.SourceBean conns) throws EMFUserError
conns
- SourceBean describing the connections to export
EMFUserError
private void closeSession()
public void cleanExportEnvironment()
cleanExportEnvironment
in interface IExportManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |