java.lang.Object
com.aquima.interactions.framework.handler.profile.editors.InstanceEditor

public class InstanceEditor extends Object
This class contains the implementation of the various action that can be performed on an instance.
Since:
5.0
Author:
Jon van Leuven
  • Constructor Details

    • InstanceEditor

      protected InstanceEditor(InstanceEditor other)
    • InstanceEditor

      public InstanceEditor(EntityValue instance)
      Constructs the editor with the ID of the instance the editor is defined for.
      Parameters:
      instance - the ID of the instance the editor is defined for.
  • Method Details

    • getEntityValue

      public EntityValue getEntityValue()
      This method returns the ID of the instance the editor is defined for.
      Returns:
      the ID of the instance the editor is defined for.
    • addAttributeEditor

      public AttributeEditor addAttributeEditor(String attributeName, AttributeEditor editor)
      This method adds an attribute editor.
      Parameters:
      attributeName - The name of the attribute the editor is defined for.
      editor - The editor for the attribute.
      Returns:
      The attribute editor that was added.
    • getAttributeEditor

      public AttributeEditor getAttributeEditor(String attributeName)
      This method returns the attribute editor for the specified attribute name.
      Parameters:
      attributeName - The name of the attribute whose editor is requested.
      Returns:
      The attribute editor of the attribute.
    • cancelActions

      public void cancelActions()
      This method cancels any actions that were scheduled for this instance.
    • saveInstance

      public void saveInstance(IProfile profile)
      This method commits the scheduled actions to the profile.
      Parameters:
      profile - The profile that should be used to apply the actions on.
      Throws:
      AppException - This exception is thrown when the actions could not be saved.
    • getAttributeEditors

      public AttributeEditor[] getAttributeEditors()
      This method returns the attribute editors of this instance editor.
      Returns:
      array containing the attribute editors of this instance editor.