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
-
Constructor Summary
ConstructorDescriptionImmutableAuditLogChangeset
(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 TypeMethodDescriptionboolean
static ImmutableAuditLogChangeset
from
(AuditLogChangeset changeset) Returns the name of the author of the audit log entry.getId()
int
hashCode()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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.Builder
instead
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceAuditLogChangeset
- Returns:
- The changeset identifier
-
getTimestampInstant
- Specified by:
getTimestampInstant
in interfaceAuditLogChangeset
- Returns:
- the creation date of the audit log entry
-
getAuthorType
- Specified by:
getAuthorType
in interfaceAuditLogChangeset
- Returns:
- the type of the author of the audit log entry
-
getAuthorId
- Specified by:
getAuthorId
in interfaceAuditLogChangeset
- Returns:
- the identifier of the author of the audit log entry (exact semantic depends on the author type)
-
getAuthorName
Description copied from interface:AuditLogChangeset
Returns the name of the author of the audit log entry. This is particularly useful when the author does not exist anymore- Specified by:
getAuthorName
in interfaceAuditLogChangeset
- Returns:
- the name of the author of the audit log entry
-
getAuthor
- Specified by:
getAuthor
in interfaceAuditLogChangeset
- Returns:
- the information about the author of the audit log entry (exact semantic depends on the author type)
-
getEventType
- Specified by:
getEventType
in interfaceAuditLogChangeset
- Returns:
- information about the type of the event represented by this audit log entry
-
getIpAddress
- Specified by:
getIpAddress
in interfaceAuditLogChangeset
- Returns:
- the IP address of the entity which performed the auditable action
-
getEventMessage
- Specified by:
getEventMessage
in interfaceAuditLogChangeset
- Returns:
- custom message providing additional detail about the auditable event
-
getSource
- Specified by:
getSource
in interfaceAuditLogChangeset
- Returns:
- the source of the auditable event (whether it was manual or changed by an automated process for example)
-
getEntries
- Specified by:
getEntries
in interfaceAuditLogChangeset
- Returns:
- the entries contained in the changeset
-
getEntities
- Specified by:
getEntities
in interfaceAuditLogChangeset
- Returns:
- the objects that were affected by the event reflected by the changeset
-
equals
-
hashCode
public int hashCode() -
toString
-
from
- Returns:
- an
ImmutableAuditLogChangeset
with the same properties as the given changeset. Will avoid creating a copy if possible.
-
ImmutableAuditLogChangeset.Builder
instead