Class BusinessUnitTasks
java.lang.Object
ch.tocco.nice2.businessunit.api.tasks.BusinessUnitTasks
-
Method Summary
Modifier and TypeMethodDescriptionstatic OptionalTask
<BusinessUnit, BusinessUnit> The tasks loads the primary key of the given business unit (if it not already exists) and returns a new business unit with its primary key set.static <A,
T> PersistTaskIterable <A, T> forEachBu
(PersistTask<A, T> task) Creates a Task which executes the given task in all business units and returns all results as anIterable
.
-
Method Details
-
forEachBu
Creates a Task which executes the given task in all business units and returns all results as anIterable
. Arguments from the mode given to execute the returned task are not propagated to the inner `task`. -
attachPrimaryKey
The tasks loads the primary key of the given business unit (if it not already exists) and returns a new business unit with its primary key set.
-