c

batch

BatchActionMsgBuilder

class BatchActionMsgBuilder extends AnyRef

Utility class that builds BatchMsgs. So it mostly handles the JSON creation.

Annotations
@Singleton()
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BatchActionMsgBuilder
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new BatchActionMsgBuilder(jpa: JPAApi, batchDao: BatchDao)
    Annotations
    @Inject()

Value Members

  1. def buildError(errorMsg: String, tellWhom: TellWhom): BatchMsg

    Creates a simple BatchMsg with an error message

  2. def buildSessionData(batchId: Long, action: BatchAction, tellWhom: TellWhom): BatchMsg

    Builds a BatchMsg with the current batch session data and version

  3. def buildSessionPatch(batch: Batch, patches: JsValue, tellWhom: TellWhom): BatchMsg

    Builds a BatchActionMessage with the batch session patch and version

  4. def buildSimple(batch: Batch, action: BatchAction, sessionActionId: Long, tellWhom: TellWhom): BatchMsg

    Builds a simple BatchMsg with the action and the session version