Package com.atlassian.crowd.audit
Class ImmutableAuditLogEntity
java.lang.Object
com.atlassian.crowd.audit.ImmutableAuditLogEntity
- All Implemented Interfaces:
AuditLogEntity
Concrete implementation of an object affected by an auditable event
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static ImmutableAuditLogEntity
from
(AuditLogEntity original) Returns the name of the affected object.int
hashCode()
boolean
toString()
-
Constructor Details
-
ImmutableAuditLogEntity
-
-
Method Details
-
getEntityType
- Specified by:
getEntityType
in interfaceAuditLogEntity
- Returns:
- the type of the affected object
-
getEntityId
- Specified by:
getEntityId
in interfaceAuditLogEntity
- Returns:
- the identifier of the affected object (exact semantic depends on the entity type)
-
getEntityName
Description copied from interface:AuditLogEntity
Returns the name of the affected object. This is particularly useful when the object does not exist anymore- Specified by:
getEntityName
in interfaceAuditLogEntity
- Returns:
- the name of the affected object at the time the event occurred
-
isPrimary
public boolean isPrimary()- Specified by:
isPrimary
in interfaceAuditLogEntity
- Returns:
- Returns true if the object is the primary affected object in the transaction
-
from
-
equals
-
toString
-
hashCode
public int hashCode()
-