package com.sismics.docs.core.dao.criteria;

import java.util.Date;
import java.util.List;


/**
 * Document criteria.
 *
 * @author bgamard 
 */
public class DocumentCriteria {
    /**
     * ACL target ID list.
     */
    private List<String> targetIdList;
    
    /**
     * Search query.
     */
    private String search;
    
    /**
     * Full content search query.
     */
    private String fullSearch;
    
    /**
     * Minimum creation date.
     */
    private Date createDateMin;
    
    /**
     * Maximum creation date.
     */
    private Date createDateMax;
    
    /**
     * Minimum update date.
     */
    private Date updateDateMin;

    /**
     * Maximum update date.
     */
    private Date updateDateMax;

    /**
     * Tag IDs.
     * The first level list will be AND'ed and the second level list will be OR'ed.
     */
    private List<List<String>> tagIdList;
    
    /**
     * Tag IDs to excluded.
     * The first and second level list will be excluded.
     */
    private List<List<String>> excludedTagIdList;

    /**
     * Shared status.
     */
    private Boolean shared;
    
    /**
     * Language.
     */
    private String language;
    
    /**
     * Creator ID.
     */
    private String creatorId;

    /**
     * A route is active.
     */
    private Boolean activeRoute;
    
    public List<String> getTargetIdList() {
        return targetIdList;
    }

    public void setTargetIdList(List<String> targetIdList) {
        this.targetIdList = targetIdList;
    }

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }

    public String getFullSearch() {
        return fullSearch;
    }

    public void setFullSearch(String fullSearch) {
        this.fullSearch = fullSearch;
    }

    public Date getCreateDateMin() {
        return createDateMin;
    }

    public void setCreateDateMin(Date createDateMin) {
        this.createDateMin = createDateMin;
    }

    public Date getCreateDateMax() {
        return createDateMax;
    }

    public void setCreateDateMax(Date createDateMax) {
        this.createDateMax = createDateMax;
    }

    public List<List<String>> getTagIdList() {
        return tagIdList;
    }

    public void setTagIdList(List<List<String>> tagIdList) {
        this.tagIdList = tagIdList;
    }

    public List<List<String>> getExcludedTagIdList() {
        return excludedTagIdList;
    }

    public DocumentCriteria setExcludedTagIdList(List<List<String>> excludedTagIdList) {
        this.excludedTagIdList = excludedTagIdList;
        return this;
    }

    public Boolean getShared() {
        return shared;
    }

    public void setShared(Boolean shared) {
        this.shared = shared;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId;
    }

    public Boolean getActiveRoute() {
        return activeRoute;
    }

    public Date getUpdateDateMin() {
        return updateDateMin;
    }

    public void setUpdateDateMin(Date updateDateMin) {
        this.updateDateMin = updateDateMin;
    }

    public Date getUpdateDateMax() {
        return updateDateMax;
    }

    public void setUpdateDateMax(Date updateDateMax) {
        this.updateDateMax = updateDateMax;
    }

    public void setActiveRoute(Boolean activeRoute) {
        this.activeRoute = activeRoute;
    }
}
