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

nl.vpro.domain.MutableEmbargoDeprecated Maven / Gradle / Ivy

Go to download

Several domains like 'media', pages' and 'subtitles' in the POMS system share some common properties which are collected here

There is a newer version: 8.3.1
Show newest version
package nl.vpro.domain;

import java.util.Date;

import static nl.vpro.util.DateUtils.toDate;
import static nl.vpro.util.DateUtils.toInstant;

/**
 * Some deprecated methods related to {@link Embargo}s
 *
 * @author Michiel Meeuwissen
 * @since 5.2
 */
public interface MutableEmbargoDeprecated> extends MutableEmbargo {

    @Deprecated
    default Date getPublishStart() {
        return toDate(getPublishStartInstant());
    }

    @Deprecated
    default void setPublishStart(Date publishStart) {
        setPublishStartInstant(toInstant(publishStart));
    }
    @Deprecated
    default Date getPublishStop() {
        return toDate(getPublishStopInstant());
    }

    @Deprecated
    default void setPublishStop(Date publishStop) {
        setPublishStopInstant(toInstant(publishStop));
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy