Package com.atlassian.crowd.audit
Class ImmutableAuditLogChangeset
java.lang.Object
com.atlassian.crowd.audit.ImmutableAuditLogChangeset
- All Implemented Interfaces:
AuditLogChangeset
Concrete implementation of an audit log changeset
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionImmutableAuditLogChangeset(Long id, Instant timestamp, AuditLogAuthorType authorType, Long authorId, String authorName, AuditLogEventType eventType, AuditLogEntityType entityType, Long entityId, String entityName, String ipAddress, String eventMessage, List<ImmutableAuditLogEntry> entries) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ImmutableAuditLogChangesetfrom(AuditLogChangeset changeset) Returns the name of the author of the audit log entry.getId()inthashCode()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.crowd.audit.AuditLogChangeset
getAdditionalEntities, getEntity, getEntityId, getEntityName, getEntityType
-
Constructor Details
-
ImmutableAuditLogChangeset
@Deprecated public ImmutableAuditLogChangeset(Long id, Instant timestamp, AuditLogAuthorType authorType, Long authorId, String authorName, AuditLogEventType eventType, AuditLogEntityType entityType, Long entityId, String entityName, String ipAddress, String eventMessage, List<ImmutableAuditLogEntry> entries) Deprecated.Use theImmutableAuditLogChangeset.Builderinstead
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceAuditLogChangeset- Returns:
- The changeset identifier
-
getTimestampInstant
- Specified by:
getTimestampInstantin interfaceAuditLogChangeset- Returns:
- the creation date of the audit log entry
-
getAuthorType
- Specified by:
getAuthorTypein interfaceAuditLogChangeset- Returns:
- the type of the author of the audit log entry
-
getAuthorId
- Specified by:
getAuthorIdin interfaceAuditLogChangeset- Returns:
- the identifier of the author of the audit log entry (exact semantic depends on the author type)
-
getAuthorName
Description copied from interface:AuditLogChangesetReturns the name of the author of the audit log entry. This is particularly useful when the author does not exist anymore- Specified by:
getAuthorNamein interfaceAuditLogChangeset- Returns:
- the name of the author of the audit log entry
-
getAuthor
- Specified by:
getAuthorin interfaceAuditLogChangeset- Returns:
- the information about the author of the audit log entry (exact semantic depends on the author type)
-
getEventType
- Specified by:
getEventTypein interfaceAuditLogChangeset- Returns:
- information about the type of the event represented by this audit log entry
-
getIpAddress
- Specified by:
getIpAddressin interfaceAuditLogChangeset- Returns:
- the IP address of the entity which performed the auditable action
-
getEventMessage
- Specified by:
getEventMessagein interfaceAuditLogChangeset- Returns:
- custom message providing additional detail about the auditable event
-
getSource
- Specified by:
getSourcein interfaceAuditLogChangeset- Returns:
- the source of the auditable event (whether it was manual or changed by an automated process for example)
-
getEntries
- Specified by:
getEntriesin interfaceAuditLogChangeset- Returns:
- the entries contained in the changeset
-
getEntities
- Specified by:
getEntitiesin interfaceAuditLogChangeset- Returns:
- the objects that were affected by the event reflected by the changeset
-
equals
-
hashCode
public int hashCode() -
toString
-
from
- Returns:
- an
ImmutableAuditLogChangesetwith the same properties as the given changeset. Will avoid creating a copy if possible.
-
ImmutableAuditLogChangeset.Builderinstead