8383import org .labkey .api .settings .AppProps ;
8484import org .labkey .api .study .DatasetTable ;
8585import org .labkey .api .util .ExceptionUtil ;
86+ import org .labkey .api .util .HtmlString ;
8687import org .labkey .api .util .HtmlStringBuilder ;
8788import org .labkey .api .util .PageFlowUtil ;
8889import org .labkey .api .util .Path ;
@@ -639,7 +640,7 @@ public ApiResponse execute(ScheduleGeneticCalculationForm form, BindException er
639640 errors .reject (ERROR_MSG , "Unable to find container for path: " + form .getContainerPath ());
640641 return null ;
641642 }
642- GeneticCalculationsJob .setProperties (form .isEnabled (), c , form .getHourOfDay (), form .isKinshipValidation (), form .isMergeSpeciesWithHybrids ());
643+ GeneticCalculationsJob .setProperties (form .isEnabled (), c , form .getHourOfDay (), form .isKinshipValidation (), form .isMergeSpeciesWithHybrids (), form . isAllowImportDuringBusinessHours () );
643644
644645 return new ApiSimpleResponse ("success" , true );
645646 }
@@ -760,6 +761,7 @@ public static class ScheduleGeneticCalculationForm
760761
761762 private boolean _kinshipValidation ;
762763 private boolean _mergeSpeciesWithHybrids ;
764+ private boolean _allowImportDuringBusinessHours ;
763765
764766 public boolean isEnabled ()
765767 {
@@ -810,6 +812,16 @@ public void setMergeSpeciesWithHybrids(boolean mergeSpeciesWithHybrids)
810812 {
811813 _mergeSpeciesWithHybrids = mergeSpeciesWithHybrids ;
812814 }
815+
816+ public boolean isAllowImportDuringBusinessHours ()
817+ {
818+ return _allowImportDuringBusinessHours ;
819+ }
820+
821+ public void setAllowImportDuringBusinessHours (boolean allowImportDuringBusinessHours )
822+ {
823+ _allowImportDuringBusinessHours = allowImportDuringBusinessHours ;
824+ }
813825 }
814826
815827 @ RequiresPermission (AdminPermission .class )
@@ -829,6 +841,7 @@ public ApiResponse execute(ScheduleGeneticCalculationForm form, BindException er
829841 ret .put ("hourOfDay" , GeneticCalculationsJob .getHourOfDay ());
830842 ret .put ("kinshipValidation" , GeneticCalculationsJob .isKinshipValidation ());
831843 ret .put ("mergeSpeciesWithHybrids" , GeneticCalculationsJob .isMergeSpeciesWithHybrids ());
844+ ret .put ("allowImportDuringBusinessHours" , GeneticCalculationsJob .isAllowImportDuringBusinessHours ());
832845
833846 return new ApiSimpleResponse (ret );
834847 }
@@ -1262,7 +1275,7 @@ public void validateCommand(Object form, Errors errors)
12621275 @ Override
12631276 public ModelAndView getConfirmView (Object form , BindException errors )
12641277 {
1265- return new HtmlView ("This will cause the system to recalculate kinship and inbreeding coefficients on the colony. Do you want to continue?" );
1278+ return new HtmlView (HtmlString . of ( "This will cause the system to recalculate kinship and inbreeding coefficients on the colony. Do you want to continue?" ) );
12661279 }
12671280
12681281 @ Override
0 commit comments