Class InstanceDump

java.lang.Object
com.aquima.interactions.profile.model.state.InstanceDump
All Implemented Interfaces:
Serializable

public class InstanceDump extends Object implements 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 Details

    • InstanceDump

      public InstanceDump(String entityName, GUID id, String instanceName)
      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

      public GUID getId()
      Returns the id of the instance.
      Returns:
      id of the instance, never null.
    • getInstanceName

      public String getInstanceName()
      Returns the name of the instance.
      Returns:
      name of the instance, never null or empty.
    • getEntityName

      public String getEntityName()
      Returns the name of the entitiy.
      Returns:
      Name of the entitiy, never null or empty.
    • addAttribute

      public AttributeDump addAttribute(String name, IValue value)
      Adds an attribute.
      Parameters:
      name - The name of the attribute.
      value - The value of the attribut.
      Returns:
      Attribute dump object.
    • getAttributes

      public AttributeDump[] getAttributes()
      Returns the properties.
      Returns:
      the properties, never null.
    • addProperty

      public void addProperty(String name, IValue value)
    • getProperties

      public String[] getProperties()
    • getProperty

      public IValue getProperty(String name)