Package dyntabs.ai.activity
Class UserActivityEvent.Builder
java.lang.Object
dyntabs.ai.activity.UserActivityEvent.Builder
- Enclosing class:
UserActivityEvent
Fluent builder for
UserActivityEvent.
Analogy: stamping one line into the logbook — the category is the mandatory column; the verb, the entities it touched, and any note are the columns you fill in when relevant.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Add several business objects this act touched.Add one business object this act touched.
-
Method Details
-
timestamp
- Parameters:
timestamp- event time (defaults toInstant.now()if unset); @return this builder.
-
sessionId
- Parameters:
sessionId- the owning session (scopes the timeline); @return this builder.
-
tabId
- Parameters:
tabId- the owning tab (per-tab memory partition); @return this builder.
-
verb
- Parameters:
verb- the specific act in the app's vocabulary; @return this builder.
-
entity
Add one business object this act touched.- Parameters:
entity- a non-nullEntityRef- Returns:
- this builder
-
entities
Add several business objects this act touched.- Parameters:
entities- entity refs to add;nullis treated as none- Returns:
- this builder
-
text
- Parameters:
text- free text the user authored (note or query); @return this builder.
-
build
- Returns:
- the immutable
UserActivityEvent.
-