PublisherService.java 824 Bytes
package org.legrog.web.publisher;

import org.legrog.entities.Publisher;
import org.legrog.entities.PublisherVersion;

import java.util.List;

/*
    Interface correspondant à la gestion des éditeurs et de leurs versions.
    Contient des signatures méthodes d'ajout, de modification et de validation de version ainsi que de restitution.
 */
public interface PublisherService {

    void addPublisherWithVersion(Publisher publisher, PublisherVersion publisherVersion);

    void addVersionToPublisher(Publisher publisher, PublisherVersion publisherVersion);

    void validatePublisherVersion(Publisher publisher, Integer publisherVersionId);

    Publisher getPublisher(Integer publisherId);

    List<PublisherVersion> getAllPublisherVersions();

    PublisherVersion getPublisherVersion(Integer publisherVersionId);
}