CommandDtoProcessorService

Service used to convert a domain object into a CommandDto , called by ContentMappingServiceForCommandDto .

The service is used as a fallback if an CommandDtoProcessor , hasn’t been explicitly specified using Action#commandDtoProcessor() or Property#commandDtoProcessor() .

API

CommandDtoProcessorService.java
interface CommandDtoProcessorService {
  CommandDto process(Object domainObject, CommandDto commandDto)     (1)
}
1 process(Object, CommandDto)

Converts the domain object (acting as the source) into a CommandDto .

Members

process(Object, CommandDto)

Converts the domain object (acting as the source) into a CommandDto .

The CommandDto that is also passed into the method will be from a default implementation provided by the framework. Most implementations will typically refine this provided DTO and return, for example adding additional user metadata to CommandDto#getUserData() .