Class ModifyFieldsTask
java.lang.Object
ch.tocco.nice2.optional.anonymization.impl.task.ModifyFieldsTask
- All Implemented Interfaces:
OptionalTask<Entity,
,Entity> PersistTask<Entity,
Entity>
modifies the configured fields on the given entity
take note that if the same field is modified in multiple contributions, only the one from the last module is used
-
Constructor Summary
ConstructorDescriptionModifyFieldsTask
(TemplateEngineFactory templateEngineFactory, OverrideContributionService overrideContributionService) -
Method Summary
Modifier and TypeMethodDescriptiondoRun
(Entity entity, CommandContext commandContext) void
setModifyFields
(List<AnonymizeEntitiesModifyFieldContribution> contributions) 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
-
ModifyFieldsTask
public ModifyFieldsTask(TemplateEngineFactory templateEngineFactory, OverrideContributionService overrideContributionService)
-
-
Method Details
-
doRun
- Specified by:
doRun
in interfaceOptionalTask<Entity,
Entity> - Throws:
Exception
-
setModifyFields
@Autowired public void setModifyFields(List<AnonymizeEntitiesModifyFieldContribution> contributions)
-