All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nl.vpro.domain.media.update.ImageImporter Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 8.3.1
Show newest version
/*
 * 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;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy