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

nl.vpro.domain.api.page.PageSearchRepository Maven / Gradle / Ivy

Go to download

Contains the objects used by the Frontend API, like forms and result objects

The newest version!
package nl.vpro.domain.api.page;

import java.util.concurrent.CompletableFuture;

import nl.vpro.domain.api.profile.ProfileDefinition;
import nl.vpro.domain.page.Page;
import nl.vpro.domain.page.update.SectionRepository;
import nl.vpro.util.CloseableIterator;
import nl.vpro.util.FilteringIterator;

/**
 * @author Michiel Meeuwissen
 * @since 2.0
 */
public interface PageSearchRepository extends SectionRepository {

    Page load(String id);

    CompletableFuture loadAsync(String id);

    Page[] loadByCrid(String... crid);

    CompletableFuture loadByCridsAsync(String... crids);

    CompletableFuture loadByUrlsAsync(String... urls);

    CompletableFuture loadByStatRefsAsync(String... statRefs);

    PageSearchResult find(ProfileDefinition profile, PageForm form, long offset, Integer max);

    PageSearchResult findRelated(Page media, ProfileDefinition profile, PageForm form, Integer max);

    CloseableIterator iterate(ProfileDefinition profile, PageForm form, long offset, Integer max, FilteringIterator.KeepAlive keepAlive);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy