Package com.atlassian.crowd.model.audit
Class AuditLogEntityEntity
java.lang.Object
com.atlassian.crowd.model.audit.AuditLogEntityEntity
- All Implemented Interfaces:
AuditLogEntity
-
Constructor Summary
ConstructorsConstructorDescriptionAuditLogEntityEntity
(AuditLogEntity entity) AuditLogEntityEntity
(AuditLogEntityType entityType, String entityName, Long entityId, boolean primary) AuditLogEntityEntity
(Long id, AuditLogEntityType entityType, String entityName, Long entityId, boolean primary) AuditLogEntityEntity
(Long id, AuditLogEntityType entityType, String entityName, Long entityId, boolean primary, AuditLogChangesetEntity changeset) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the name of the affected object.getId()
int
hashCode()
boolean
void
setChangeset
(AuditLogChangesetEntity changeset) void
setEntityId
(Long entityId) void
setEntityName
(String entityName) void
setEntityType
(AuditLogEntityType entityType) void
void
setPrimary
(boolean primary) toString()
-
Constructor Details
-
AuditLogEntityEntity
public AuditLogEntityEntity() -
AuditLogEntityEntity
-
AuditLogEntityEntity
public AuditLogEntityEntity(AuditLogEntityType entityType, String entityName, Long entityId, boolean primary) -
AuditLogEntityEntity
public AuditLogEntityEntity(Long id, AuditLogEntityType entityType, String entityName, Long entityId, boolean primary) -
AuditLogEntityEntity
public AuditLogEntityEntity(Long id, AuditLogEntityType entityType, String entityName, Long entityId, boolean primary, AuditLogChangesetEntity changeset)
-
-
Method Details
-
getId
-
setId
-
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
-
setEntityName
-
getEntityType
- Specified by:
getEntityType
in interfaceAuditLogEntity
- Returns:
- the type of the affected object
-
setEntityType
-
getEntityId
- Specified by:
getEntityId
in interfaceAuditLogEntity
- Returns:
- the identifier of the affected object (exact semantic depends on the entity type)
-
setEntityId
-
isPrimary
public boolean isPrimary()- Specified by:
isPrimary
in interfaceAuditLogEntity
- Returns:
- Returns true if the object is the primary affected object in the transaction
-
setPrimary
public void setPrimary(boolean primary) -
getChangeset
-
setChangeset
-
equals
-
hashCode
public int hashCode() -
toString
-