Modifier and Type | Field and Description |
---|---|
protected ActorLogInfo |
actor |
protected java.util.List<AssetLogInfo> |
assets |
protected ContextLogInfo |
context |
protected EventDetails |
details |
protected EventCategory |
eventCategory |
protected EventType |
eventType |
protected java.lang.Boolean |
involveNonTeamMember |
protected OriginLogInfo |
origin |
protected java.util.List<ParticipantLogInfo> |
participants |
protected java.util.Date |
timestamp |
Modifier | Constructor and Description |
---|---|
protected |
Builder(java.util.Date timestamp,
EventCategory eventCategory,
EventType eventType,
EventDetails details) |
Modifier and Type | Method and Description |
---|---|
TeamEvent |
build()
Builds an instance of
TeamEvent configured with this
builder's values |
TeamEvent.Builder |
withActor(ActorLogInfo actor)
Set value for optional field.
|
TeamEvent.Builder |
withAssets(java.util.List<AssetLogInfo> assets)
Set value for optional field.
|
TeamEvent.Builder |
withContext(ContextLogInfo context)
Set value for optional field.
|
TeamEvent.Builder |
withInvolveNonTeamMember(java.lang.Boolean involveNonTeamMember)
Set value for optional field.
|
TeamEvent.Builder |
withOrigin(OriginLogInfo origin)
Set value for optional field.
|
TeamEvent.Builder |
withParticipants(java.util.List<ParticipantLogInfo> participants)
Set value for optional field.
|
protected final java.util.Date timestamp
protected final EventCategory eventCategory
protected final EventType eventType
protected final EventDetails details
protected ActorLogInfo actor
protected OriginLogInfo origin
protected java.lang.Boolean involveNonTeamMember
protected ContextLogInfo context
protected java.util.List<ParticipantLogInfo> participants
protected java.util.List<AssetLogInfo> assets
protected Builder(java.util.Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details)
public TeamEvent.Builder withActor(ActorLogInfo actor)
actor
- The entity who actually performed the action. Might be
missing due to historical data gap.public TeamEvent.Builder withOrigin(OriginLogInfo origin)
origin
- The origin from which the actor performed the action
including information about host, ip address, location, session,
etc. If the action was performed programmatically via the API the
origin represents the API client.public TeamEvent.Builder withInvolveNonTeamMember(java.lang.Boolean involveNonTeamMember)
involveNonTeamMember
- True if the action involved a non team
member either as the actor or as one of the affected users. Might
be missing due to historical data gap.public TeamEvent.Builder withContext(ContextLogInfo context)
context
- The user or team on whose behalf the actor performed
the action. Might be missing due to historical data gap.public TeamEvent.Builder withParticipants(java.util.List<ParticipantLogInfo> participants)
participants
- Zero or more users and/or groups that are
affected by the action. Note that this list doesn't include any
actors or users in context. Must not contain a null
item.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public TeamEvent.Builder withAssets(java.util.List<AssetLogInfo> assets)
assets
- Zero or more content assets involved in the action.
Currently these include Dropbox files and folders but in the
future we might add other asset types such as Paper documents,
folders, projects, etc. Must not contain a null
item.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.