Package com.dropbox.core.v2.teamlog
Class TeamEvent
- java.lang.Object
- 
- com.dropbox.core.v2.teamlog.TeamEvent
 
- 
 public class TeamEvent extends java.lang.ObjectAn audit log event.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classTeamEvent.BuilderBuilder forTeamEvent.
 - 
Field SummaryFields Modifier and Type Field Description protected ActorLogInfoactorprotected java.util.List<AssetLogInfo>assetsprotected ContextLogInfocontextprotected EventDetailsdetailsprotected EventCategoryeventCategoryprotected EventTypeeventTypeprotected java.lang.BooleaninvolveNonTeamMemberprotected OriginLogInfooriginprotected java.util.List<ParticipantLogInfo>participantsprotected java.util.Datetimestamp
 - 
Constructor SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)ActorLogInfogetActor()The entity who actually performed the action.java.util.List<AssetLogInfo>getAssets()Zero or more content assets involved in the action.ContextLogInfogetContext()The user or team on whose behalf the actor performed the action.EventDetailsgetDetails()The variable event schema applicable to this type of action, instantiated with respect to this particular action.EventCategorygetEventCategory()The category that this type of action belongs to.EventTypegetEventType()The particular type of action taken.java.lang.BooleangetInvolveNonTeamMember()True if the action involved a non team member either as the actor or as one of the affected users.OriginLogInfogetOrigin()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.DategetTimestamp()The Dropbox timestamp representing when the action was taken.inthashCode()static TeamEvent.BuildernewBuilder(java.util.Date timestamp, EventCategory eventCategory, EventType eventType, EventDetails details)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Field Detail- 
timestampprotected final java.util.Date timestamp 
 - 
eventCategoryprotected final EventCategory eventCategory 
 - 
actorprotected final ActorLogInfo actor 
 - 
originprotected final OriginLogInfo origin 
 - 
involveNonTeamMemberprotected final java.lang.Boolean involveNonTeamMember 
 - 
contextprotected final ContextLogInfo context 
 - 
participantsprotected final java.util.List<ParticipantLogInfo> participants 
 - 
assetsprotected final java.util.List<AssetLogInfo> assets 
 - 
eventTypeprotected final EventType eventType 
 - 
detailsprotected final EventDetails details 
 
- 
 - 
Constructor Detail- 
TeamEventpublic 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.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 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- nullitem.
- 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- nullitem.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
TeamEventpublic TeamEvent(java.util.Date timestamp, EventCategory eventCategory, EventType eventType, 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 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.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getTimestamppublic java.util.Date getTimestamp() The Dropbox timestamp representing when the action was taken.- Returns:
- value for this field, never null.
 
 - 
getEventCategorypublic EventCategory getEventCategory() The category that this type of action belongs to.- Returns:
- value for this field, never null.
 
 - 
getEventTypepublic EventType getEventType() The particular type of action taken.- Returns:
- value for this field, never null.
 
 - 
getDetailspublic EventDetails 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.
 
 - 
getActorpublic ActorLogInfo getActor() The entity who actually performed the action. Might be missing due to historical data gap.- Returns:
- value for this field, or nullif not present.
 
 - 
getOriginpublic OriginLogInfo 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.
 
 - 
getInvolveNonTeamMemberpublic java.lang.Boolean getInvolveNonTeamMember() 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.- Returns:
- value for this field, or nullif not present.
 
 - 
getContextpublic ContextLogInfo getContext() The user or team on whose behalf the actor performed the action. Might be missing due to historical data gap.- Returns:
- value for this field, or nullif not present.
 
 - 
getParticipantspublic java.util.List<ParticipantLogInfo> 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.
 
 - 
getAssetspublic java.util.List<AssetLogInfo> 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.
 
 - 
newBuilderpublic 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.- Parameters:
- 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.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String 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
 
 
- 
 
-