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

eu.xenit.apix.workflow.search.SearchQuery Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
package eu.xenit.apix.workflow.search;

import java.util.ArrayList;
import java.util.List;

public abstract class SearchQuery {

    public boolean isActive = true;
    public List filters;
    public List facets;
    public List orderBy;
    public boolean includeRefs = true;
    public boolean includeResults = true;
    public Paging paging;

    public SearchQuery() {
    }

    public SearchQuery(SearchQuery source) {
        this.paging = source.paging;
        if (source.filters != null) {
            this.filters = new ArrayList<>(source.filters);
        }
        if (source.facets != null) {
            this.facets = new ArrayList<>(source.facets);
        }
        if (source.orderBy != null) {
            this.orderBy = new ArrayList<>(source.orderBy);
        }
        this.includeRefs = source.includeRefs;
        this.includeResults = source.includeResults;
        this.isActive = source.isActive;
    }

    public abstract void restrictResultsToUser(String currentUserName);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy