Class InstanceDump
java.lang.Object
com.aquima.interactions.profile.model.state.InstanceDump
- All Implemented Interfaces:
Serializable
Dump of an instance that can be serialized and deserialized. Useful when persisting sessions between requests.
(see AQU-4345)
- Since:
- 7.2
- Author:
- j.gorter
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInstanceDump
(String entityName, GUID id, String instanceName) Construct an instance dump with an id, entity- and instance name. -
Method Summary
Modifier and TypeMethodDescriptionaddAttribute
(String name, IValue value) Adds an attribute.void
addProperty
(String name, IValue value) Returns the properties.Returns the name of the entitiy.getId()
Returns the id of the instance.Returns the name of the instance.String[]
getProperty
(String name)
-
Constructor Details
-
InstanceDump
Construct an instance dump with an id, entity- and instance name.- Parameters:
entityName
- The entity name, may not be null or empty.id
- The entity name, may not be null.instanceName
- The optional instance name.
-
-
Method Details
-
getId
Returns the id of the instance.- Returns:
- id of the instance, never null.
-
getInstanceName
Returns the name of the instance.- Returns:
- name of the instance, never null or empty.
-
getEntityName
Returns the name of the entitiy.- Returns:
- Name of the entitiy, never null or empty.
-
addAttribute
Adds an attribute.- Parameters:
name
- The name of the attribute.value
- The value of the attribut.- Returns:
- Attribute dump object.
-
getAttributes
Returns the properties.- Returns:
- the properties, never null.
-
addProperty
-
getProperties
-
getProperty
-