Class ResetRelationTask
java.lang.Object
ch.tocco.nice2.businessunit.api.tasks.ResetRelationTask
- All Implemented Interfaces:
OptionalTask<Entity,
,Void> PersistTask<Entity,
Void>
Sets the business unit of an entity according to the business
unit relation of another entity.
For example, a Resource or Folder entity is linked to the business unit
that is retrieved by checking the related entity using the target defined
in the field `entity_model`.
-
Constructor Summary
ConstructorDescriptionResetRelationTask
(org.slf4j.Logger log, BusinessUnitManager businessUnitManager, PersistTask<Entity, Entity> findLinkedEntity) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
ResetRelationTask
public ResetRelationTask(org.slf4j.Logger log, BusinessUnitManager businessUnitManager, PersistTask<Entity, Entity> findLinkedEntity)
-
-
Method Details
-
doRun
- Specified by:
doRun
in interfaceOptionalTask<Entity,
Void> - Throws:
Exception
-