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:
		@@ -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;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user