Class DefaultWorkingDayGenerationService
java.lang.Object
ch.tocco.nice2.optional.amm.api.actions.projectactivity.DefaultWorkingDayGenerationService
- All Implemented Interfaces:
WorkingDayGenerationService
public class DefaultWorkingDayGenerationService
extends Object
implements WorkingDayGenerationService
-
Constructor Summary
ConstructorDescriptionDefaultWorkingDayGenerationService
(Context context, QueryBuilderFactory queryBuilderFactory, EntityExplorerActionSelectionService selectionService, EntityDefaultValueService defaultValueService, RebindService rebindService) -
Method Summary
Modifier and TypeMethodDescriptionbuildFormValuesForProjectActivity
(Entity projectActivity) int
generateProjectActivityDays
(EntityExplorerActionSelection selection, RebindValue[] rebindValues) Creates a Working_day entity for each selected Project_activity_day in the given date range It only creates a Working_day if no other Working_day is present for the given date + Working_day_time on the related Case.getFormValues
(EntityExplorerActionSelection selection)
-
Constructor Details
-
DefaultWorkingDayGenerationService
public DefaultWorkingDayGenerationService(Context context, QueryBuilderFactory queryBuilderFactory, EntityExplorerActionSelectionService selectionService, EntityDefaultValueService defaultValueService, RebindService rebindService)
-
-
Method Details
-
getFormValues
- Specified by:
getFormValues
in interfaceWorkingDayGenerationService
-
generateProjectActivityDays
public int generateProjectActivityDays(EntityExplorerActionSelection selection, RebindValue[] rebindValues) throws UnresolvableUriException, RebindException, UriStoreException, URISyntaxException Description copied from interface:WorkingDayGenerationService
Creates a Working_day entity for each selected Project_activity_day in the given date range It only creates a Working_day if no other Working_day is present for the given date + Working_day_time on the related Case.- Specified by:
generateProjectActivityDays
in interfaceWorkingDayGenerationService
- Parameters:
selection
- an entity explorer selection containing the Project_activityrebindValues
- rebind values of "Working_day_generation_settings"- Returns:
- number of created Working_days
- Throws:
UnresolvableUriException
RebindException
UriStoreException
URISyntaxException
-
buildFormValuesForProjectActivity
-