Package ch.tocco.nice2.businessunit.api
Class ToBusinessUnit
java.lang.Object
ch.tocco.nice2.businessunit.api.ToBusinessUnit
- All Implemented Interfaces:
PersistTask<Entity,BusinessUnit>
Creates a
BusinessUnit from a corresponding Entity.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PersistTask<String, BusinessUnit> static final ToBusinessUnit -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrun(Optional<Entity> a, CommandContext commandContext) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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
-
Field Details
-
toBusinessUnit
-
fromString
-
-
Constructor Details
-
ToBusinessUnit
public ToBusinessUnit()
-
-
Method Details
-
run
public BusinessUnit run(Optional<Entity> a, CommandContext commandContext) throws InterruptedException - Specified by:
runin interfacePersistTask<Entity,BusinessUnit> - Throws:
InterruptedException
-
toString
-