Class InstanceServiceBase

java.lang.Object
com.aquima.interactions.framework.service.instance.InstanceServiceBase
Direct Known Subclasses:
InstanceCreateService, InstanceUpdateService

public abstract class InstanceServiceBase extends Object
Base class for services creating or updating entity instances.
Since:
9.6
Author:
Radu Batori
See Also:
  • Constructor Details

    • InstanceServiceBase

      public InstanceServiceBase()
  • Method Details

    • setAttributes

      protected void setAttributes(IEntityInstance entityInstance, List<InstanceServiceParameters.ExpressionEntry> attributes, IServiceContext context)
      Iterates over a List of ExpressionEntry objects and sets an attribute on the instance for each entry
      Parameters:
      entityInstance - the entity instance
      attributes - the attributes
      context - the context
    • setRelations

      protected void setRelations(IEntityInstance entityInstance, List<InstanceServiceParameters.ExpressionEntry> relations, IServiceContext context)
      Iterates over a List of ExpressionEntry objects and sets a relation on the instance for each entry
      Parameters:
      entityInstance - the entity instance
      relations - the relations
      context - the context
    • setAttributeRelations

      protected void setAttributeRelations(IEntityInstance entityInstance, List<InstanceServiceParameters.ExpressionEntry> attributeRelations, IServiceContext context)
      Iterates over a List of TypedExpressionEntry objects and sets an attribute or relation on the instance for each entry.
      Parameters:
      entityInstance - the entity instance
      attributeRelations - the attribute relations
      context - the context
    • getServiceNameLogPrefix

      protected String getServiceNameLogPrefix()
    • getLogger

      protected abstract Logger getLogger()
      Returns:
      The Logger instance for the subclass.
    • getName

      protected abstract String getName()