Class AuditableActions.AbstractBuilder<T extends AuditableActions.AbstractBuilder<T>>

java.lang.Object
de.hybris.platform.audit.AuditableActions.AbstractBuilder<T>
Direct Known Subclasses:
AuditableActions.ActionBuilder, AuditableActions.NamedActionBuilder
Enclosing class:
AuditableActions

public abstract static class AuditableActions.AbstractBuilder<T extends AuditableActions.AbstractBuilder<T>> extends Object
  • Field Details

  • Method Details

    • withAttribute

      public T withAttribute(String attribute, Object value)
      adds attribute to the list of attributes that will be used when action is created from the builder

      The value of the attribute can be null, but when action is created, it will be audited as "null" string

      Parameters:
      attribute - attribute's name
      value - attribute's value
      Returns:
      this builder
      Throws:
      NullPointerException - if attribute's name is null
    • withOptionalAttribute

      public T withOptionalAttribute(String attribute, Object value)
      adds attribute to the list of attributes that will be used when action is created from the builder, but only if the value provided is not null. If the value is null, attribute won't be added.
      Parameters:
      attribute - attribute's name
      value - attribute's value
      Returns:
      this builder
      Throws:
      NullPointerException - if attribute's name is null
    • withoutAttribute

      public T withoutAttribute(String attribute)
      Removes the attribute from the builder
      Parameters:
      attribute - attribute's name
      Returns:
      this builder
      Throws:
      NullPointerException - if attribute's name is null