return operationOptions;
}
@Override
public void printResults(OperationResult operationResult) {
RestoreOperationResult concreteOperationResult = (RestoreOperationResult) operationResult;
switch (concreteOperationResult.getResultCode()) {
case ACK:
out.println("File restored to " + concreteOperationResult.getTargetFile());
break;
case NACK_INVALID_FILE:
out.println("Could not restore file. File entry is present but invalid (Folder?).");
break;
case NACK_NO_FILE:
out.println("Could not restore file. No file by that ID or version found, or file ID prefix matches more than one file.");
break;
default:
throw new RuntimeException("Invalid result code: " + concreteOperationResult.getResultCode());
}
}