use of org.apache.isis.schema.cmd.v1.ParamDto in project estatio by estatio.
the class DeriveBlobFromReturnedDocumentAbstract method process.
@Override
public CommandDto process(final Command command, final CommandDto commandDto) {
final Bookmark result = command.getResult();
if (result == null) {
return commandDto;
}
try {
final Document document = bookmarkService.lookup(result, Document.class);
if (document != null) {
ParamDto paramDto = getParamDto(commandDto, paramNum);
CommonDtoUtils.setValueOn(paramDto, ValueType.BLOB, document.getBlob(), bookmarkService);
}
} catch (Exception ex) {
return commandDto;
}
return commandDto;
}
use of org.apache.isis.schema.cmd.v1.ParamDto in project estatio by estatio.
the class DeriveBlobFromDummyPdfAbstract method process.
@Override
public CommandDto process(final Command command, final CommandDto commandDto) {
ParamDto paramDto = getParamDto(commandDto, paramNum);
CommonDtoUtils.setValueOn(paramDto, ValueType.BLOB, blob, bookmarkService);
return commandDto;
}