|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IImportManager
Field Summary | |
---|---|
static java.lang.String |
IMPORT_ASS_DEFAULT_MODE
|
static java.lang.String |
IMPORT_ASS_PREDEFINED_MODE
|
Method Summary | |
---|---|
boolean |
associateAllExportedDataSourcesByUserAssociation()
Tries to associate all exported data sources using the user associations; returns true is some data sources associations is required, false otherwise. |
boolean |
associateAllExportedEnginesByUserAssociation()
Tries to associate all exported engines using the user associations; returns true is some engines associations is required, false otherwise. |
boolean |
associateAllExportedRolesByUserAssociation()
Tries to associate all exported roles using the user associations; returns true is some roles associations is required, false otherwise. |
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. |
void |
closeSession()
Close session to exported and current databases. |
ImportResultInfo |
commitAllChanges()
Commits all changes made on exported and current databases. |
AssociationFile |
getAssociationFile()
Returns the AssociationFile involved in the current import operation, if any. |
java.lang.String |
getCurrentVersion()
Gets the current SpagobI version. |
java.lang.Object |
getExistingObject(java.lang.Integer id,
java.lang.Class objClass)
Get an existing object identified by the id and the class. |
java.util.List |
getExportedDataSources()
Gets the list of exported data sources. |
java.util.List |
getExportedEngines()
Gets the list of all exported engines. |
java.lang.Object |
getExportedObject(java.lang.Integer id,
java.lang.Class objClass)
Get an exported object identified by the id and the class. |
java.util.List |
getExportedRoles()
Gets the list of all exported roles. |
java.lang.String |
getExportVersion()
Gets the SpagoBI version of the exported file. |
java.lang.String |
getImpAssMode()
Gets the import association mode. |
MetadataAssociations |
getMetadataAssociation()
Gets the object which contains the association between exported metadata and the current system metadata. |
UserAssociationsKeeper |
getUserAssociation()
Gets the object which contains only the association set by user between exported metadata and the current system metadata. |
void |
importObjects(boolean overwrite)
Imports the exported objects. |
void |
init(java.lang.String pathImportTmpFold,
java.lang.String archiveName,
byte[] archiveContent)
Prepare the environment for the import procedure. |
void |
openSession()
Open session to exported and current databases. |
void |
setAssociationFile(AssociationFile associationFile)
Sets the AssociationFile involved in the current import operation. |
void |
setImpAssMode(java.lang.String impAssMode)
Sets the import association mode. |
void |
setUserProfile(it.eng.spago.security.IEngUserProfile profile)
|
void |
stopImport()
Ends the import procedure. |
Field Detail |
---|
static final java.lang.String IMPORT_ASS_PREDEFINED_MODE
static final java.lang.String IMPORT_ASS_DEFAULT_MODE
Method Detail |
---|
void setUserProfile(it.eng.spago.security.IEngUserProfile profile)
void init(java.lang.String pathImportTmpFold, java.lang.String archiveName, byte[] archiveContent) throws it.eng.spago.error.EMFUserError
archiveName
- the name of the compress exported filearchiveContent
- the bytes of the compress exported filepathImportTmpFold
- the path import tmp fold
it.eng.spago.error.EMFUserError
- the EMF user errorvoid openSession() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
- the EMF user errorvoid closeSession()
it.eng.spago.error.EMFUserError
- the EMF user errorjava.lang.String getExportVersion()
java.lang.String getCurrentVersion()
void importObjects(boolean overwrite) throws it.eng.spago.error.EMFUserError
overwrite
- the overwrite
it.eng.spago.error.EMFUserError
- the EMF user errorjava.util.List getExportedRoles() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
- the EMF user errorjava.util.List getExportedEngines() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
- the EMF user errorjava.util.List getExportedDataSources() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
- the EMF user errorImportResultInfo commitAllChanges() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
- the EMF user errorvoid checkExistingMetadata() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
- the EMF user errorvoid stopImport()
MetadataAssociations getMetadataAssociation()
UserAssociationsKeeper getUserAssociation()
AssociationFile getAssociationFile()
void setAssociationFile(AssociationFile associationFile)
associationFile
- the association filevoid checkRoleReferences(java.util.Map roleAssociations) throws it.eng.spago.error.EMFUserError
roleAssociations
- Map of association 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 rolejava.lang.Object getExistingObject(java.lang.Integer id, java.lang.Class objClass)
id
- The Object idobjClass
- The class of the object
java.lang.Object getExportedObject(java.lang.Integer id, java.lang.Class objClass)
id
- The Object idobjClass
- The class of the object
java.lang.String getImpAssMode()
void setImpAssMode(java.lang.String impAssMode)
impAssMode
- The import association modeboolean associateAllExportedRolesByUserAssociation() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
- the EMF user errorboolean associateAllExportedEnginesByUserAssociation() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
- the EMF user errorboolean associateAllExportedDataSourcesByUserAssociation() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
- the EMF user error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |