mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Add override executeWithStringDetails
This commit is contained in:
@ -76,6 +76,21 @@ public class AuditAction extends AbstractQActionFunction<AuditInput, AuditOutput
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Execute to insert 1 audit, with a list of detail child records provided as just string messages
|
||||||
|
*******************************************************************************/
|
||||||
|
public static void executeWithStringDetails(String tableName, Integer recordId, Map<String, Serializable> securityKeyValues, String message, List<String> detailMessages)
|
||||||
|
{
|
||||||
|
List<QRecord> detailRecords = null;
|
||||||
|
if(CollectionUtils.nullSafeHasContents(detailMessages))
|
||||||
|
{
|
||||||
|
detailRecords = detailMessages.stream().map(m -> new QRecord().withValue("message", m)).toList();
|
||||||
|
}
|
||||||
|
execute(tableName, recordId, securityKeyValues, message, detailRecords);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** Execute to insert 1 audit, with a list of detail child records
|
** Execute to insert 1 audit, with a list of detail child records
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
Reference in New Issue
Block a user