contentRepository.deleteFile(document.getName(), document.getLocation());
return new CommandProcessingResult(document.getId());
}
private void validateParentEntityType(final DocumentCommand documentCommand) {
if (!checkValidEntityType(documentCommand.getParentEntityType())) { throw new InvalidEntityTypeForDocumentManagementException(
documentCommand.getParentEntityType()); }
}