1010import org .labkey .api .data .triggers .Trigger ;
1111import org .labkey .api .data .triggers .TriggerFactory ;
1212import org .labkey .api .query .FieldKey ;
13+ import org .labkey .api .query .QueryUpdateService ;
1314import org .labkey .api .query .ValidationException ;
1415import org .labkey .api .security .User ;
1516import 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