package org.ovirt.engine.core.bll.adbroker;

import org.springframework.ldap.core.ContextMapper;

public class LdapQueryExecution {

    private String filter;
    private String displayFilter; // The display filter is used for logging purposes, in cases where the filter is
                                  // unreadable
    private String baseDN;
    private ContextMapper contextMapper;
    private int searchScope;
    private String[] returningAttributes;
    private String domain;

    public LdapQueryExecution(String filter,
            String displayFilter,
            String baseDN,
            ContextMapper contextMapper,
            int searchScope,
            String[] returningAttributes,
            String domain) {

        this.filter = filter;
        this.displayFilter = displayFilter;
        this.baseDN = baseDN;
        this.contextMapper = contextMapper;
        this.searchScope = searchScope;
        this.returningAttributes = returningAttributes;
        this.domain = domain;
    }

    public String getFilter() {
        return filter;
    }

    public void setFilter(String filter) {
        this.filter = filter;
    }

    public String getDisplayFilter() {
        return displayFilter;
    }

    public void setDisplayFilter(String displayFilter) {
        this.displayFilter = displayFilter;
    }

    public String getBaseDN() {
        return baseDN;
    }

    public void setBaseDN(String baseDN) {
        this.baseDN = baseDN;
    }

    public ContextMapper getContextMapper() {
        return contextMapper;
    }

    public void setContextMapper(ContextMapper contextMapper) {
        this.contextMapper = contextMapper;
    }

    public int getSearchScope() {
        return searchScope;
    }

    public void setSearchScope(int searchScope) {
        this.searchScope = searchScope;
    }

    public String[] getReturningAttributes() {
        return returningAttributes;
    }

    public void setReturningAttributes(String[] returningAttributes) {
        this.returningAttributes = returningAttributes;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

}

@@ -1089,1131 +1089,436 @@
 lic 
-void setFilter(String filter) %7B%0A        this.filter = filter;%0A    %7D%0A%0A    public String getDisplayFilter() %7B%0A        return displayFilter;%0A    %7D%0A%0A    public void setDisplayFilter(String displayFilter) %7B%0A        this.displayFilter = displayFilter;%0A    %7D%0A%0A    public String getBaseDN() %7B%0A        return baseDN;%0A    %7D%0A%0A    public void setBaseDN(String baseDN) %7B%0A        this.baseDN = baseDN;%0A    %7D%0A%0A    public ContextMapper getContextMapper() %7B%0A        return contextMapper;%0A    %7D%0A%0A    public void setContextMapper(ContextMapper contextMapper) %7B%0A        this.contextMapper = contextMapper;%0A    %7D%0A%0A    public int getSearchScope() %7B%0A        return searchScope;%0A    %7D%0A%0A    public void setSearchScope(int searchScope) %7B%0A        this.searchScope = searchScope;%0A    %7D%0A%0A    public String%5B%5D getReturningAttributes() %7B%0A        return returningAttributes;%0A    %7D%0A%0A    public void setReturningAttributes(String%5B%5D returningAttributes) %7B%0A        this.returningAttributes = returningAttributes;%0A    %7D%0A%0A    public String getDomain() %7B%0A        return domain;%0A    %7D%0A%0A    public void setDomain(String domain) %7B%0A        this.domain = domain;%0A    %7D%0A
+String getDisplayFilter() %7B%0A        return displayFilter;%0A    %7D%0A%0A    public String getBaseDN() %7B%0A        return baseDN;%0A    %7D%0A%0A    public ContextMapper getContextMapper() %7B%0A        return contextMapper;%0A    %7D%0A%0A    public int getSearchScope() %7B%0A        return searchScope;%0A    %7D%0A%0A    public String%5B%5D getReturningAttributes() %7B%0A        return returningAttributes;%0A    %7D%0A%0A    public String getDomain() %7B%0A        return domain;%0A    %7D
 %0A%7D%0A

Make LdapQueryExecution immutable