Package com.atlassian.crowd.dao.audit
Class AssembledAuditLogChangeset
java.lang.Object
com.atlassian.crowd.dao.audit.AssembledAuditLogChangeset
- All Implemented Interfaces:
AuditLogChangeset
Helper to build the final audit log changesets, from separately retrieved changesets, entries and entities
Should avoid doing any extra queries (usually via collection/relationship traversal), and be implemented
using pre-fetched data instead.
-
Constructor Summary
ConstructorDescriptionAssembledAuditLogChangeset
(AuditLogChangesetEntity changeset, Set<AuditLogEntityEntity> entities, Set<AuditLogEntryEntity> entries) -
Method Summary
Modifier and TypeMethodDescriptionWill return additional objects affected by this audit event.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getId()
-
Constructor Details
-
AssembledAuditLogChangeset
public AssembledAuditLogChangeset(AuditLogChangesetEntity changeset, @Nullable Set<AuditLogEntityEntity> entities, @Nullable Set<AuditLogEntryEntity> entries)
-
-
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
-
getAuthor
- Specified by:
getAuthor
in interfaceAuditLogChangeset
- Returns:
- the information about the author of the audit log entry (exact semantic depends on the author type)
-
getAuthorType
Deprecated.- Specified by:
getAuthorType
in interfaceAuditLogChangeset
- Returns:
- the type of the author of the audit log entry
-
getAuthorId
Deprecated.- Specified by:
getAuthorId
in interfaceAuditLogChangeset
- Returns:
- the identifier of the author of the audit log entry (exact semantic depends on the author type)
-
getAuthorName
Deprecated.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
-
getEventType
- Specified by:
getEventType
in interfaceAuditLogChangeset
- Returns:
- information about the type of the event represented by this audit log entry
-
getEntity
- Specified by:
getEntity
in interfaceAuditLogChangeset
- Returns:
- If the event did not have affected entities an empty optional will be returned
- If the event affected only one entity then the object will be returned
- If the event affected multiple entities then the entity marked as primary will be returned. If there are multiple entities marked as primary, then there are no guarantees which one of them will be returned.
-
getAdditionalEntities
Description copied from interface:AuditLogChangeset
Will return additional objects affected by this audit event. Additional objects are all objects that are marked as non-primary.- Specified by:
getAdditionalEntities
in interfaceAuditLogChangeset
- Returns:
- additional objects affected by this audit event
-
getEntityType
Deprecated.- Specified by:
getEntityType
in interfaceAuditLogChangeset
- Returns:
- the type of the object that was modified in the event represented by this audit log entry
-
getEntityId
Deprecated.- Specified by:
getEntityId
in interfaceAuditLogChangeset
- Returns:
- the identifier of the object that was modified in the event represented by this audit log entry (exact semantic depends on the entity type)
-
getEntityName
Deprecated.Description copied from interface:AuditLogChangeset
Returns the name of the object that was modified in the event represented by this audit log entry. This is particularly useful when the object does not exist anymore- Specified by:
getEntityName
in interfaceAuditLogChangeset
- Returns:
- the name of the affected object at the time the event occurred
-
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
-