|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.importexport.ImportManager
public class ImportManager
Implements the interface which defines methods for managing the import requests
Field Summary | |
---|---|
private java.lang.String |
exportedFileName
|
private ImporterMetadata |
importer
|
private MetadataAssociations |
metaAss
|
private MetadataLogger |
metaLog
|
private java.lang.String |
pathBaseFolder
|
private java.lang.String |
pathContentFolder
|
private java.lang.String |
pathDBFolder
|
private java.lang.String |
pathImportTmpFolder
|
private java.util.Properties |
props
|
private org.hibernate.Session |
sessionCurrDB
|
private org.hibernate.Session |
sessionExpDB
|
private org.hibernate.SessionFactory |
sessionFactoryExpDB
|
private org.hibernate.Transaction |
txCurrDB
|
private org.hibernate.Transaction |
txExpDB
|
Constructor Summary | |
---|---|
ImportManager()
|
Method Summary | |
---|---|
void |
checkExistingMetadata()
Check the existance of the exported metadata into the current system metadata and insert their associations into the association object MeatadataAssociation |
void |
checkRoleReferences(java.util.Map roleAssociations)
checks if two or more exported roles are associate to the same current role |
private void |
closeSession()
Close Hibernate sessions for exported and current database |
private void |
closeSessionFactory()
Closes Hibernate session factory for the exported database |
java.lang.String |
commitAllChanges()
Commits all changes made on exported and current databases |
private java.lang.String |
getCurrentCmsBaseFolder()
Gets the path of the cms base folder of the current SpagoBI cms repository |
java.lang.String |
getCurrentVersion()
Gets the current SpagobI version |
private java.lang.String |
getExportedCmsBaseFolder()
Gets the path of the cms base folder of the exported archive |
java.util.List |
getExportedConnections()
Gets the list of exported connections |
java.util.List |
getExportedEngines()
Gets the list of all exported engines |
java.util.List |
getExportedRoles()
Gets the list of all exported roles |
java.lang.String |
getExportVersion()
Gets the SpagoBI version of the exported file |
MetadataAssociations |
getMetadataAssociation()
Gets the object which contains the association between exported metadata and the current system metadata |
private void |
importBIObjects()
import exported biobjects |
private void |
importBIObjPar()
Imports associations between exported biobjects and parameters |
private void |
importChecks()
Import exported checks |
private void |
importEngines()
Imports exported engines |
private void |
importFunctionalities()
Imports exported functionalities |
private void |
importFunctObject()
Imports associations between functionalities and objects |
private void |
importFunctRoles()
Imports associations between functionalities and roles |
private void |
importLovs()
Import exported lovs |
void |
importObjects()
Imports the exported objects |
private void |
importParameters()
Import exported parameters |
private void |
importParuse()
Imports exported paruses |
private void |
importParuseCheck()
Imports associations between parameter uses and checks |
private void |
importParuseDet()
Importa exported paruse details |
private void |
importRoles()
Import exported roles |
void |
prepareImport(java.lang.String pathImpTmpFold,
java.lang.String archiveName,
byte[] archiveContent)
Prepare the environment for the import procedure |
private java.util.List |
removeFromList(java.util.List complete,
SbiFunctions funct)
|
private void |
rollback()
Rollbacks each previous changes made on exported and current databases |
void |
stopImport()
Ends the import procedure |
void |
updateConnectionReferences(java.util.Map connAssociations)
Update the connection name for each list of values of type query based on association between exported connections and current system connections |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String pathImportTmpFolder
private java.lang.String pathBaseFolder
private java.lang.String pathDBFolder
private java.lang.String pathContentFolder
private ImporterMetadata importer
private java.util.Properties props
private org.hibernate.SessionFactory sessionFactoryExpDB
private org.hibernate.Session sessionExpDB
private org.hibernate.Transaction txExpDB
private org.hibernate.Session sessionCurrDB
private org.hibernate.Transaction txCurrDB
private MetadataAssociations metaAss
private MetadataLogger metaLog
private java.lang.String exportedFileName
Constructor Detail |
---|
public ImportManager()
Method Detail |
---|
public void prepareImport(java.lang.String pathImpTmpFold, java.lang.String archiveName, byte[] archiveContent) throws EMFUserError
prepareImport
in interface IImportManager
pathImpTmpFold
- The path of the temporary import folderarchiveName
- the name of the compress exported filearchiveContent
- the bytes of the compress exported file
EMFUserError
public java.lang.String getExportVersion()
getExportVersion
in interface IImportManager
public java.lang.String getCurrentVersion()
getCurrentVersion
in interface IImportManager
private java.lang.String getExportedCmsBaseFolder()
private java.lang.String getCurrentCmsBaseFolder() throws EMFUserError
EMFUserError
public java.util.List getExportedRoles() throws EMFUserError
getExportedRoles
in interface IImportManager
EMFUserError
public java.util.List getExportedEngines() throws EMFUserError
getExportedEngines
in interface IImportManager
EMFUserError
public void checkRoleReferences(java.util.Map roleAssociations) throws EMFUserError
roleAssociations
- Map of assocaition between exported roles and
roles of the portal in use
EMFUserError
- if two ore more exported roles are associate
to the same current rolepublic void updateConnectionReferences(java.util.Map connAssociations) throws EMFUserError
connAssociations
- Map of the associations between exported connections
and current system connections
EMFUserError
private void closeSessionFactory()
private void closeSession()
private void rollback()
public java.lang.String commitAllChanges() throws EMFUserError
commitAllChanges
in interface IImportManager
EMFUserError
public void importObjects() throws EMFUserError
importObjects
in interface IImportManager
EMFUserError
private void importRoles() throws EMFUserError
EMFUserError
private void importEngines() throws EMFUserError
EMFUserError
private void importFunctionalities() throws EMFUserError
EMFUserError
private java.util.List removeFromList(java.util.List complete, SbiFunctions funct)
private void importLovs() throws EMFUserError
EMFUserError
private void importChecks() throws EMFUserError
EMFUserError
private void importParameters() throws EMFUserError
EMFUserError
private void importBIObjects() throws EMFUserError
EMFUserError
private void importParuse() throws EMFUserError
EMFUserError
private void importParuseDet() throws EMFUserError
EMFUserError
private void importParuseCheck() throws EMFUserError
EMFUserError
private void importFunctObject() throws EMFUserError
EMFUserError
private void importFunctRoles() throws EMFUserError
EMFUserError
private void importBIObjPar() throws EMFUserError
EMFUserError
public void stopImport()
stopImport
in interface IImportManager
public java.util.List getExportedConnections() throws EMFUserError
getExportedConnections
in interface IImportManager
EMFUserError
public void checkExistingMetadata() throws EMFUserError
checkExistingMetadata
in interface IImportManager
EMFUserError
public MetadataAssociations getMetadataAssociation()
getMetadataAssociation
in interface IImportManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |