|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IImportManager
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.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 |
getExportedConnections()
Gets the list of exported connections |
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 |
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()
Imports the exported objects |
void |
prepareImport(java.lang.String pathImportTmpFold,
java.lang.String archiveName,
byte[] archiveContent)
Prepare the environment for the import procedure |
void |
stopImport()
Ends the import procedure |
Method Detail |
---|
void prepareImport(java.lang.String pathImportTmpFold, java.lang.String archiveName, byte[] archiveContent) throws it.eng.spago.error.EMFUserError
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
java.lang.String getExportVersion()
java.lang.String getCurrentVersion()
void importObjects() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
java.util.List getExportedRoles() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
java.util.List getExportedEngines() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
java.util.List getExportedConnections() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
ImportResultInfo commitAllChanges() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
void checkExistingMetadata() throws it.eng.spago.error.EMFUserError
it.eng.spago.error.EMFUserError
void stopImport()
MetadataAssociations getMetadataAssociation()
UserAssociationsKeeper getUserAssociation()
void 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 objecttx
- Hibernate transaction for the current databasesession
- Hibernate session for the current database
java.lang.Object getExportedObject(java.lang.Integer id, java.lang.Class objClass)
id
- The Object idobjClass
- The class of the objecttx
- Hibernate transaction for the exported databasesession
- Hibernate session for the exported database
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |