Package com.dropbox.core.v2.teamlog
Class TeamEvent
java.lang.Object
com.dropbox.core.v2.teamlog.TeamEvent
An audit log event.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ActorLogInfoprotected final List<AssetLogInfo> protected final ContextLogInfoprotected final EventDetailsprotected final EventCategoryprotected final EventTypeprotected final Booleanprotected final OriginLogInfoprotected final List<ParticipantLogInfo> protected final Date -
Constructor Summary
ConstructorsConstructorDescriptionTeamEvent(Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details) An audit log event.TeamEvent(Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details, ActorLogInfo actor, OriginLogInfo origin, Boolean involveNonTeamMember, ContextLogInfo context, List<ParticipantLogInfo> participants, List<AssetLogInfo> assets) An audit log event. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetActor()The entity who actually performed the action.Zero or more content assets involved in the action.The user or team on whose behalf the actor performed the action.The variable event schema applicable to this type of action, instantiated with respect to this particular action.The category that this type of action belongs to.The particular type of action taken.True if the action involved a non team member either as the actor or as one of the affected users.The origin from which the actor performed the action including information about host, ip address, location, session, etc.Zero or more users and/or groups that are affected by the action.The Dropbox timestamp representing when the action was taken.inthashCode()static TeamEvent.BuildernewBuilder(Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
timestamp
-
eventCategory
-
actor
-
origin
-
involveNonTeamMember
-
context
-
participants
-
assets
-
eventType
-
details
-
-
Constructor Details
-
TeamEvent
public TeamEvent(@Nonnull Date timestamp, @Nonnull EventCategory eventCategory, @Nonnull EventType eventType, @Nonnull EventDetails details, @Nullable ActorLogInfo actor, @Nullable OriginLogInfo origin, @Nullable Boolean involveNonTeamMember, @Nullable ContextLogInfo context, @Nullable List<ParticipantLogInfo> participants, @Nullable List<AssetLogInfo> assets) An audit log event.Use
newBuilder(java.util.Date,com.dropbox.core.v2.teamlog.EventCategory,com.dropbox.core.v2.teamlog.EventType,com.dropbox.core.v2.teamlog.EventDetails)to create instances of this class without specifying values for all optional fields.- Parameters:
timestamp- The Dropbox timestamp representing when the action was taken. Must not benull.eventCategory- The category that this type of action belongs to. Must not benull.eventType- The particular type of action taken. Must not benull.details- The variable event schema applicable to this type of action, instantiated with respect to this particular action. Must not benull.actor- The entity who actually performed the action.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.context- The user or team on whose behalf the actor performed the action.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 anullitem.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 anullitem.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
TeamEvent
public TeamEvent(@Nonnull Date timestamp, @Nonnull EventCategory eventCategory, @Nonnull EventType eventType, @Nonnull EventDetails details) An audit log event.The default values for unset fields will be used.
- Parameters:
timestamp- The Dropbox timestamp representing when the action was taken. Must not benull.eventCategory- The category that this type of action belongs to. Must not benull.eventType- The particular type of action taken. Must not benull.details- The variable event schema applicable to this type of action, instantiated with respect to this particular action. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getTimestamp
The Dropbox timestamp representing when the action was taken.- Returns:
- value for this field, never
null.
-
getEventCategory
The category that this type of action belongs to.- Returns:
- value for this field, never
null.
-
getEventType
The particular type of action taken.- Returns:
- value for this field, never
null.
-
getDetails
The variable event schema applicable to this type of action, instantiated with respect to this particular action.- Returns:
- value for this field, never
null.
-
getActor
The entity who actually performed the action.- Returns:
- value for this field, or
nullif not present.
-
getOrigin
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.- Returns:
- value for this field, or
nullif not present.
-
getInvolveNonTeamMember
True if the action involved a non team member either as the actor or as one of the affected users.- Returns:
- value for this field, or
nullif not present.
-
getContext
The user or team on whose behalf the actor performed the action.- Returns:
- value for this field, or
nullif not present.
-
getParticipants
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.- Returns:
- value for this field, or
nullif not present.
-
getAssets
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.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static TeamEvent.Builder newBuilder(Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details) Returns a new builder for creating an instance of this class.- Parameters:
timestamp- The Dropbox timestamp representing when the action was taken. Must not benull.eventCategory- The category that this type of action belongs to. Must not benull.eventType- The particular type of action taken. Must not benull.details- The variable event schema applicable to this type of action, instantiated with respect to this particular action. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-