Package ch.tocco.nice2.businessunit.api
Class TaskModes
java.lang.Object
ch.tocco.nice2.businessunit.api.TaskModes
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Mode.Key
<BusinessUnit> Specifies the business unit that is used to execute a persist task.Equal behaviour asBUSINESS_UNIT
but you can pass the unique id of the business unit instead of the classBusinessUnit
Unsets the business unit toBusinessUnit.NULL_BUSINESS_UNIT
, but does not a re-login. -
Method Summary
-
Field Details
-
BUSINESS_UNIT
Specifies the business unit that is used to execute a persist task. The business unit is changed usingBusinessUnitManager.switchBusinessUnit(BusinessUnit, boolean)
and resetted after the task has been executed. When the privileged mode is also active (see `SecModes#PRIVLEGED`), the principal is not logged into the new business unit. -
BUSINESS_UNIT_ID
Equal behaviour asBUSINESS_UNIT
but you can pass the unique id of the business unit instead of the classBusinessUnit
-
NO_BUSINESS_UNIT_INTERCEPT
Unsets the business unit toBusinessUnit.NULL_BUSINESS_UNIT
, but does not a re-login. The permissions are unchanged for the current principal, but queries are not intercepted for a bussiness unit and entities are not automatically linked to a business unit. Note, that counters for business unit aware entities are _not_ working with this mode.
-