CommandDtoUtils

API

CommandDtoUtils.java
class CommandDtoUtils {
  void init()
  DtoMapper<CommandDto> dtoMapper()
  OidsDto targetsFor(CommandDto dto)
  ParamsDto parametersFor(ActionDto actionDto)
  PeriodDto timingsFor(CommandDto commandDto)
  String getUserData(CommandDto dto, String key)
  void setUserData(CommandDto dto, String key, String value)
  void setUserData(CommandDto dto, String key, Bookmark bookmark)
  void clearUserData(CommandDto dto, String key)
  String toYaml(Iterable<CommandDto> commandDtos)     (1)
  String toMultiDocYaml(Iterable<CommandDto> commandDtos)     (2)
  String toYamlExport(Iterable<CommandExportDto> commandExports)     (3)
  List<CommandDto> fromYaml(DataSource commandDtosYaml)     (4)
  List<ImportedCommandDto> fromYamlForReplay(DataSource commandDtosYaml)     (5)
  CommandDto copy(CommandDto commandDto)     (6)
}
1 toYaml(Iterable)

Uses (regular) YAML-list format to represent a collection of CommandDto entries.

2 toMultiDocYaml(Iterable)

Uses multi-doc YAML format to represent a collection of CommandDto entries.

3 toYamlExport(Iterable)

Uses multi-doc YAML format to represent a collection of CommandExportDto entries.

4 fromYaml(DataSource)

Either parses from (regular) YAML-list format or from multi-doc YAML format, any representing a collection of CommandDto entries.

5 fromYamlForReplay(DataSource)

Decodes the explicit multi-document formats accepted by command replay import.

6 copy(CommandDto)

Creates a structurally independent copy using the complete JAXB command schema mapping.

Members

toYaml(Iterable)

Uses (regular) YAML-list format to represent a collection of CommandDto entries.

toMultiDocYaml(Iterable)

Uses multi-doc YAML format to represent a collection of CommandDto entries.

toYamlExport(Iterable)

Uses multi-doc YAML format to represent a collection of CommandExportDto entries.

Each document contains an embedded command and, when available, a result with type and id fields. Null results are omitted and the legacy returnedObject field is never emitted.

fromYaml(DataSource)

Either parses from (regular) YAML-list format or from multi-doc YAML format, any representing a collection of CommandDto entries.

fromYamlForReplay(DataSource)

Decodes the explicit multi-document formats accepted by command replay import.

The canonical CommandExportDto envelope is attempted first so optional result bookmarks remain available to the importer. Legacy multi-document CommandDto input remains supported, while YAML list roots are deliberately rejected. The more permissive #fromYaml(DataSource) API is unchanged.

copy(CommandDto)

Creates a structurally independent copy using the complete JAXB command schema mapping.