Class ProfileDumper
java.lang.Object
com.aquima.interactions.profile.model.state.ProfileDumper
Serialization algorithm optimized for speed. Needs to be restored using exactly the same metamodel.
(see AQU-4345)
- Since:
- 7.2
- Author:
- j.gorter
-
Method Summary
Modifier and TypeMethodDescriptionstatic InstanceDump[]
dump
(IProfile profile, IMetaModel metaModel) This method dumps the profile state to an array of instance dumb objects.static void
restore
(IProfile profile, IMetaModel metaModel, InstanceDump[] dump) This method restores an array of instance dumps into the profile.
-
Method Details
-
dump
This method dumps the profile state to an array of instance dumb objects.- Parameters:
profile
- The profile state.metaModel
- The model of the profile.- Returns:
- An array of instance dumps, never null, but can be an empty array.
- Throws:
AppException
- Is throw when the instance dumbs could not be created or the profile could not be read.
-
restore
This method restores an array of instance dumps into the profile. Note: It is assumed that the profile is empty.- Parameters:
profile
- The current profilemetaModel
- The model of the current profile.dump
- An array of instance dumps.- Throws:
AppException
- Is thrown when the profile could not be restored from the instance dumps.
-