Create

@Summary(value = "Create tree node")
@Description(value = "Id is the tenant ID.")
interface Create<E : Created> : NotBlankNameCapable

Creates a node under parentCode (me.ahoo.wow.models.tree.ROOT_CODE for the first level); the tree gives it its code and its place after its siblings. The aggregate is the tree (its id typically the tenant's), so the command also creates it: annotate the concrete command @AllowCreate too, as the compiler reads the command's own class.

Properties

Link copied to clipboard
abstract val parentCode: String

Functions

Link copied to clipboard
abstract fun toEvent(code: String, sortId: Int): E

The event of the node created with code at sortId.