Class AuditEntryManagerImpl
java.lang.Object
com.atlassian.greenhopper.manager.audit.AuditEntryManagerImpl
- All Implemented Interfaces:
AuditEntryManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
changeUserKey
(String oldKey, String newKey) Performs a user key change on audit entries.long
countByUserKey
(String key) Count all the AuditEntry records for the user identified by user keygetByEntityIdEntityClassAndCategory
(Long entityId, String entityClass, String category) Retrieve all AuditEntry records A such that:
A.id == id && A.entityClass == entityClass && A.category == categorylist()
Retrieve all AuditEntry records currently stored in the DB as a listsave
(AuditEntry entry) Persist a new AuditEntry record
-
Constructor Details
-
AuditEntryManagerImpl
public AuditEntryManagerImpl()
-
-
Method Details
-
save
Description copied from interface:AuditEntryManager
Persist a new AuditEntry record- Specified by:
save
in interfaceAuditEntryManager
-
list
Description copied from interface:AuditEntryManager
Retrieve all AuditEntry records currently stored in the DB as a list- Specified by:
list
in interfaceAuditEntryManager
-
getByEntityIdEntityClassAndCategory
public List<AuditEntry> getByEntityIdEntityClassAndCategory(Long entityId, String entityClass, String category) Description copied from interface:AuditEntryManager
Retrieve all AuditEntry records A such that:
A.id == id && A.entityClass == entityClass && A.category == category- Specified by:
getByEntityIdEntityClassAndCategory
in interfaceAuditEntryManager
-
changeUserKey
Description copied from interface:AuditEntryManager
Performs a user key change on audit entries. It's meant to handle the user anonymization process, where both old and new key refer to the same user.- Specified by:
changeUserKey
in interfaceAuditEntryManager
- Parameters:
oldKey
- old user keynewKey
- new user key- Returns:
- number of changed entries
-
countByUserKey
Description copied from interface:AuditEntryManager
Count all the AuditEntry records for the user identified by user key- Specified by:
countByUserKey
in interfaceAuditEntryManager
- Parameters:
key
- user key to search for- Returns:
- number of audit entires for the user
-