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

nl.vpro.domain.api.media.MemberRefSearch Maven / Gradle / Ivy

Go to download

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

There is a newer version: 8.3.3
Show newest version
/*
 * Copyright (C) 2014 All rights reserved
 * VPRO The Netherlands
 */
package nl.vpro.domain.api.media;

import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;

import nl.vpro.domain.api.AbstractSearch;
import nl.vpro.domain.api.Match;
import nl.vpro.domain.api.TextMatcherList;
import nl.vpro.domain.media.MediaObject;

/**
 * @author Roelof Jan Koekoek
 * @since 3.3
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "memberRefSearchType")
public class MemberRefSearch extends AbstractSearch {

    @Valid
    @Getter
    @Setter
    private TextMatcherList mediaIds;

    @Valid
    @Getter
    @Setter
    private TextMatcherList types;

    public MemberRefSearch() {

    }
    @lombok.Builder
    private MemberRefSearch(Match match, TextMatcherList mediaIds, TextMatcherList types) {
        super(match);
        this.mediaIds = mediaIds;
        this.types = types;

    }

    @Override
    public boolean hasSearches() {
        return atLeastOneHasSearches(mediaIds, types);
    }

    @Override
    public boolean test(MediaObject s) {
        return false;

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy