Package de.hybris.platform.audit
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionwithAttribute(String attribute, Object value) adds attribute to the list of attributes that will be used when action is created from the builderwithOptionalAttribute(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 notnull.withoutAttribute(String attribute) Removes the attribute from the builder
-
Field Details
-
actionAttributes
-
-
Method Details
-
withAttribute
adds attribute to the list of attributes that will be used when action is created from the builderThe value of the attribute can be null, but when action is created, it will be audited as "null" string
- Parameters:
attribute- attribute's namevalue- attribute's value- Returns:
- this builder
- Throws:
NullPointerException- if attribute's name is null
-
withOptionalAttribute
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 notnull. If the value isnull, attribute won't be added.- Parameters:
attribute- attribute's namevalue- attribute's value- Returns:
- this builder
- Throws:
NullPointerException- if attribute's name is null
-
withoutAttribute
Removes the attribute from the builder- Parameters:
attribute- attribute's name- Returns:
- this builder
- Throws:
NullPointerException- if attribute's name is null
-