Add new REST endpoint that provides the audit log of a group

Bug: Issue 1479
Change-Id: I59c51964cab1f1ab32f50db8645a09d96d7a0196
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2015-07-03 13:34:19 +02:00
parent d7f38a5ee3
commit fc3f832935
8 changed files with 352 additions and 0 deletions

View File

@@ -98,4 +98,16 @@ public final class AccountGroupByIdAud {
removedBy = deleter;
removedOn = when;
}
public Account.Id getAddedBy() {
return addedBy;
}
public Account.Id getRemovedBy() {
return removedBy;
}
public Timestamp getRemovedOn() {
return removedOn;
}
}

View File

@@ -103,4 +103,16 @@ public final class AccountGroupMemberAudit {
removedBy = addedBy;
removedOn = key.addedOn;
}
public Account.Id getAddedBy() {
return addedBy;
}
public Account.Id getRemovedBy() {
return removedBy;
}
public Timestamp getRemovedOn() {
return removedOn;
}
}

View File

@@ -32,4 +32,8 @@ public interface AccountGroupByIdAudAccess extends
@Query("WHERE key.groupId = ? AND key.includeUUID = ?")
ResultSet<AccountGroupByIdAud> byGroupInclude(AccountGroup.Id groupId,
AccountGroup.UUID incGroupUUID) throws OrmException;
@Query("WHERE key.groupId = ?")
ResultSet<AccountGroupByIdAud> byGroup(AccountGroup.Id groupId)
throws OrmException;
}

View File

@@ -33,4 +33,8 @@ public interface AccountGroupMemberAuditAccess extends
@Query("WHERE key.groupId = ? AND key.accountId = ?")
ResultSet<AccountGroupMemberAudit> byGroupAccount(AccountGroup.Id groupId,
Account.Id accountId) throws OrmException;
@Query("WHERE key.groupId = ?")
ResultSet<AccountGroupMemberAudit> byGroup(AccountGroup.Id groupId)
throws OrmException;
}