From 1a20fa8d20fef5706e7f0d9191689fb27c1118dd Mon Sep 17 00:00:00 2001 From: labkey-nicka Date: Mon, 6 Apr 2026 09:37:18 -0700 Subject: [PATCH] Trigger interface changes --- .../org/labkey/studies/query/StudiesTriggerFactory.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Studies/src/org/labkey/studies/query/StudiesTriggerFactory.java b/Studies/src/org/labkey/studies/query/StudiesTriggerFactory.java index bcec14717..36a598a85 100644 --- a/Studies/src/org/labkey/studies/query/StudiesTriggerFactory.java +++ b/Studies/src/org/labkey/studies/query/StudiesTriggerFactory.java @@ -10,6 +10,7 @@ import org.labkey.api.data.triggers.Trigger; import org.labkey.api.data.triggers.TriggerFactory; import org.labkey.api.query.FieldKey; +import org.labkey.api.query.QueryUpdateService; import org.labkey.api.query.ValidationException; import org.labkey.api.security.User; import org.labkey.api.util.PageFlowUtil; @@ -30,19 +31,19 @@ public class StudiesTriggerFactory implements TriggerFactory public static class StudyTrigger implements Trigger { @Override - public void beforeInsert(TableInfo table, Container c, User user, @Nullable Map newRow, ValidationException errors, Map extraContext) throws ValidationException + public void beforeInsert(TableInfo table, Container c, User user, @Nullable QueryUpdateService.InsertOption insertOption, @Nullable Map newRow, ValidationException errors, Map extraContext) throws ValidationException { - beforeInsert(table, c, user, newRow, errors, extraContext, null); + beforeInsert(table, c, user, insertOption, newRow, errors, extraContext, null); } @Override - public void beforeInsert(TableInfo table, Container c, User user, @Nullable Map newRow, ValidationException errors, Map extraContext, @Nullable Map existingRecord) throws ValidationException + public void beforeInsert(TableInfo table, Container c, User user, @Nullable QueryUpdateService.InsertOption insertOption, @Nullable Map newRow, ValidationException errors, Map extraContext, @Nullable Map existingRecord) throws ValidationException { possiblyResolveStudy(table, newRow, existingRecord, c); } @Override - public void beforeUpdate(TableInfo table, Container c, User user, @Nullable Map newRow, @Nullable Map oldRow, ValidationException errors, Map extraContext) throws ValidationException + public void beforeUpdate(TableInfo table, Container c, User user, @Nullable QueryUpdateService.InsertOption insertOption, @Nullable Map newRow, @Nullable Map oldRow, ValidationException errors, Map extraContext) throws ValidationException { possiblyResolveStudy(table, newRow, oldRow, c); }