public class TeamEvent
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TeamEvent.Builder
Builder for
TeamEvent . |
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 |
Constructor and Description |
---|
TeamEvent(java.util.Date timestamp,
EventCategory eventCategory,
EventType eventType,
EventDetails details)
An audit log event.
|
TeamEvent(java.util.Date timestamp,
EventCategory eventCategory,
EventType eventType,
EventDetails details,
ActorLogInfo actor,
OriginLogInfo origin,
java.lang.Boolean involveNonTeamMember,
ContextLogInfo context,
java.util.List<ParticipantLogInfo> participants,
java.util.List<AssetLogInfo> assets)
An audit log event.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
ActorLogInfo |
getActor()
The entity who actually performed the action.
|
java.util.List<AssetLogInfo> |
getAssets()
Zero or more content assets involved in the action.
|
ContextLogInfo |
getContext()
The user or team on whose behalf the actor performed the action.
|
EventDetails |
getDetails()
The variable event schema applicable to this type of action, instantiated
with respect to this particular action.
|
EventCategory |
getEventCategory()
The category that this type of action belongs to.
|
EventType |
getEventType()
The particular type of action taken.
|
java.lang.Boolean |
getInvolveNonTeamMember()
True if the action involved a non team member either as the actor or as
one of the affected users.
|
OriginLogInfo |
getOrigin()
The origin from which the actor performed the action including
information about host, ip address, location, session, etc.
|
java.util.List<ParticipantLogInfo> |
getParticipants()
Zero or more users and/or groups that are affected by the action.
|
java.util.Date |
getTimestamp()
The Dropbox timestamp representing when the action was taken.
|
int |
hashCode() |
static TeamEvent.Builder |
newBuilder(java.util.Date timestamp,
EventCategory eventCategory,
EventType eventType,
EventDetails details)
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.util.Date timestamp
protected final EventCategory eventCategory
protected final ActorLogInfo actor
protected final OriginLogInfo origin
protected final java.lang.Boolean involveNonTeamMember
protected final ContextLogInfo context
protected final java.util.List<ParticipantLogInfo> participants
protected final java.util.List<AssetLogInfo> assets
protected final EventType eventType
protected final EventDetails details
public TeamEvent(java.util.Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details, ActorLogInfo actor, OriginLogInfo origin, java.lang.Boolean involveNonTeamMember, ContextLogInfo context, java.util.List<ParticipantLogInfo> participants, java.util.List<AssetLogInfo> assets)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
timestamp
- The Dropbox timestamp representing when the action was
taken. Must not be null
.eventCategory
- The category that this type of action belongs to.
Must not be null
.eventType
- The particular type of action taken. Must not be null
.details
- The variable event schema applicable to this type of
action, instantiated with respect to this particular action. Must not
be null
.actor
- The entity who actually performed the action. Might be
missing due to historical data gap.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.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.context
- The user or team on whose behalf the actor performed the
action. Might be missing due to historical data gap.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.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.public TeamEvent(java.util.Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details)
The default values for unset fields will be used.
timestamp
- The Dropbox timestamp representing when the action was
taken. Must not be null
.eventCategory
- The category that this type of action belongs to.
Must not be null
.eventType
- The particular type of action taken. Must not be null
.details
- The variable event schema applicable to this type of
action, instantiated with respect to this particular action. Must not
be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public java.util.Date getTimestamp()
null
.public EventCategory getEventCategory()
null
.public EventType getEventType()
null
.public EventDetails getDetails()
null
.public ActorLogInfo getActor()
null
if not present.public OriginLogInfo getOrigin()
null
if not present.public java.lang.Boolean getInvolveNonTeamMember()
null
if not present.public ContextLogInfo getContext()
null
if not present.public java.util.List<ParticipantLogInfo> getParticipants()
null
if not present.public java.util.List<AssetLogInfo> getAssets()
null
if not present.public static TeamEvent.Builder newBuilder(java.util.Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details)
timestamp
- The Dropbox timestamp representing when the action was
taken. Must not be null
.eventCategory
- The category that this type of action belongs to.
Must not be null
.eventType
- The particular type of action taken. Must not be null
.details
- The variable event schema applicable to this type of
action, instantiated with respect to this particular action. Must not
be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.