Skip to content

Commit 1a20fa8

Browse files
committed
Trigger interface changes
1 parent ad7e2f9 commit 1a20fa8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Studies/src/org/labkey/studies/query/StudiesTriggerFactory.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import org.labkey.api.data.triggers.Trigger;
1111
import org.labkey.api.data.triggers.TriggerFactory;
1212
import org.labkey.api.query.FieldKey;
13+
import org.labkey.api.query.QueryUpdateService;
1314
import org.labkey.api.query.ValidationException;
1415
import org.labkey.api.security.User;
1516
import org.labkey.api.util.PageFlowUtil;
@@ -30,19 +31,19 @@ public class StudiesTriggerFactory implements TriggerFactory
3031
public static class StudyTrigger implements Trigger
3132
{
3233
@Override
33-
public void beforeInsert(TableInfo table, Container c, User user, @Nullable Map<String, Object> newRow, ValidationException errors, Map<String, Object> extraContext) throws ValidationException
34+
public void beforeInsert(TableInfo table, Container c, User user, @Nullable QueryUpdateService.InsertOption insertOption, @Nullable Map<String, Object> newRow, ValidationException errors, Map<String, Object> extraContext) throws ValidationException
3435
{
35-
beforeInsert(table, c, user, newRow, errors, extraContext, null);
36+
beforeInsert(table, c, user, insertOption, newRow, errors, extraContext, null);
3637
}
3738

3839
@Override
39-
public void beforeInsert(TableInfo table, Container c, User user, @Nullable Map<String, Object> newRow, ValidationException errors, Map<String, Object> extraContext, @Nullable Map<String, Object> existingRecord) throws ValidationException
40+
public void beforeInsert(TableInfo table, Container c, User user, @Nullable QueryUpdateService.InsertOption insertOption, @Nullable Map<String, Object> newRow, ValidationException errors, Map<String, Object> extraContext, @Nullable Map<String, Object> existingRecord) throws ValidationException
4041
{
4142
possiblyResolveStudy(table, newRow, existingRecord, c);
4243
}
4344

4445
@Override
45-
public void beforeUpdate(TableInfo table, Container c, User user, @Nullable Map<String, Object> newRow, @Nullable Map<String, Object> oldRow, ValidationException errors, Map<String, Object> extraContext) throws ValidationException
46+
public void beforeUpdate(TableInfo table, Container c, User user, @Nullable QueryUpdateService.InsertOption insertOption, @Nullable Map<String, Object> newRow, @Nullable Map<String, Object> oldRow, ValidationException errors, Map<String, Object> extraContext) throws ValidationException
4647
{
4748
possiblyResolveStudy(table, newRow, oldRow, c);
4849
}

0 commit comments

Comments
 (0)