@Singleton
public class WorkerCreator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
GeneralMultipleWorker |
createAndPersistGeneralMultipleWorker(Batch batch)
Create and persist a GeneralMultipleWorker
|
GeneralSingleWorker |
createAndPersistGeneralSingleWorker(Batch batch)
Create and persist a GeneralSingleWorker
|
MTWorker |
createAndPersistMTWorker(java.lang.String mtWorkerId,
boolean mTurkSandbox,
Batch batch)
Creates and persists a MTWorker or a MTSandboxWorker.
|
public MTWorker createAndPersistMTWorker(java.lang.String mtWorkerId, boolean mTurkSandbox, Batch batch)
public GeneralSingleWorker createAndPersistGeneralSingleWorker(Batch batch)
public GeneralMultipleWorker createAndPersistGeneralMultipleWorker(Batch batch)