nl.vpro.domain.media.update.ImageImporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of media-domain Show documentation
Show all versions of media-domain Show documentation
The basic domain classes for 'media', the core of POMS. Also, the 'update' XML bindings for it.
It also contains some closely related domain classes like the enum to contain NICAM kijkwijzer settings.
/*
* Copyright (C) 2012 Licensed under the Apache License, Version 2.0
* VPRO The Netherlands
*/
package nl.vpro.domain.media.update;
import java.io.Serial;
import org.checkerframework.checker.nullness.qual.NonNull;
import nl.vpro.domain.media.support.Image;
import nl.vpro.domain.media.support.OwnerType;
public interface ImageImporter {
Image save(
@NonNull ImageUpdate download, boolean metadata, @NonNull OwnerType owne) throws DownloadException;
class DownloadException extends RuntimeException {
@Serial
private static final long serialVersionUID = 960450531709055817L;
private final boolean retryable;
public DownloadException(boolean retryable, String s, Throwable cause) {
super(s, cause);
this.retryable = retryable;
}
public boolean isRetryable() {
return retryable;
}
}
}