|
||||||||||
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
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 |
ImportResultInfo |
commitAllChanges()
Commits all changes made on exported and current databases |
java.lang.String |
getCurrentVersion()
Gets the current SpagobI version |
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 |
void |
importObjects()
Imports the exported objects |
void |
prepareImport(java.lang.String pathImpTmpFold,
java.lang.String archiveName,
byte[] archiveContent)
Prepare the environment for the import procedure |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImportManager()
Method Detail |
---|
public void prepareImport(java.lang.String pathImpTmpFold, java.lang.String archiveName, byte[] archiveContent) throws it.eng.spago.error.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
it.eng.spago.error.EMFUserError
public java.lang.String getExportVersion()
getExportVersion
in interface IImportManager
public java.lang.String getCurrentVersion()
getCurrentVersion
in interface IImportManager
public java.util.List getExportedRoles() throws it.eng.spago.error.EMFUserError
getExportedRoles
in interface IImportManager
it.eng.spago.error.EMFUserError
public java.util.List getExportedEngines() throws it.eng.spago.error.EMFUserError
getExportedEngines
in interface IImportManager
it.eng.spago.error.EMFUserError
public void checkRoleReferences(java.util.Map roleAssociations) throws it.eng.spago.error.EMFUserError
roleAssociations
- Map of assocaition between exported roles and
roles of the portal in use
it.eng.spago.error.EMFUserError
- if two ore more exported roles are associate
to the same current rolepublic void updateConnectionReferences(java.util.Map connAssociations) throws it.eng.spago.error.EMFUserError
connAssociations
- Map of the associations between exported connections
and current system connections
it.eng.spago.error.EMFUserError
public ImportResultInfo commitAllChanges() throws it.eng.spago.error.EMFUserError
commitAllChanges
in interface IImportManager
it.eng.spago.error.EMFUserError
public void importObjects() throws it.eng.spago.error.EMFUserError
importObjects
in interface IImportManager
it.eng.spago.error.EMFUserError
public void stopImport()
stopImport
in interface IImportManager
public java.util.List getExportedConnections() throws it.eng.spago.error.EMFUserError
getExportedConnections
in interface IImportManager
it.eng.spago.error.EMFUserError
public void checkExistingMetadata() throws it.eng.spago.error.EMFUserError
checkExistingMetadata
in interface IImportManager
it.eng.spago.error.EMFUserError
public MetadataAssociations getMetadataAssociation()
getMetadataAssociation
in interface IImportManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |