/*
 * oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
 *
 * Copyright (c) 2014, Gluu
 */

package org.xdi.config.oxtrust;

import org.gluu.site.ldap.persistence.annotation.LdapAttribute;
import org.gluu.site.ldap.persistence.annotation.LdapDN;
import org.gluu.site.ldap.persistence.annotation.LdapEntry;
import org.gluu.site.ldap.persistence.annotation.LdapJsonObject;
import org.gluu.site.ldap.persistence.annotation.LdapObjectClass;
import org.xdi.ldap.model.Entry;

/**
 * @author Yuriy Movchan
 * @version 0.9, 05/16/2013
 */
@LdapEntry
@LdapObjectClass(values = {"top", "oxTrustConfiguration"})
public class LdapOxTrustConfiguration extends Entry {

	private static final long serialVersionUID = -15289347651306279L;

	@LdapDN
    private String dn;

	@LdapJsonObject
	@LdapAttribute(name = "oxTrustConfApplication")
    private AppConfiguration application;

	@LdapJsonObject
	@LdapAttribute(name = "oxTrustConfCacheRefresh")
    private CacheRefreshConfiguration cacheRefresh;

    @LdapAttribute(name = "oxRevision")
    private long revision;
    
    @LdapJsonObject //issue 102 - begin  : changed by shekhar
    @LdapAttribute(name = "oxTrustConfImportPerson")
    private ImportPersonConfig importPersonConfig; //issue 102 - end  : changed by shekhar
    
    @LdapAttribute(name = "oxTrustAttributeResolver")
    private String oxTrustAttributeResolver;

	public LdapOxTrustConfiguration() {
	}

	public AppConfiguration getApplication() {
		return application;
	}

	public void setApplication(AppConfiguration application) {
		this.application = application;
	}

	public CacheRefreshConfiguration getCacheRefresh() {
		return cacheRefresh;
	}

	public void setCacheRefresh(CacheRefreshConfiguration cacheRefresh) {
		this.cacheRefresh = cacheRefresh;
	}

	public long getRevision() {
		return revision;
	}

	public void setRevision(long revision) {
		this.revision = revision;
	}

	//issue 102 - begin  : changed by shekhar
	public ImportPersonConfig getImportPersonConfig() {
		return importPersonConfig;
	}

	public void setImportPersonConfig(ImportPersonConfig importPersonConfig) {
		this.importPersonConfig = importPersonConfig;
	}//issue 102 - end  : changed by shekhar
	

	public String getOxTrustAttributeResolver() {
		return oxTrustAttributeResolver;
	}

	public void setOxTrustAttributeResolver(String oxTrustAttributeResolver) {
		this.oxTrustAttributeResolver = oxTrustAttributeResolver;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("LdapOxTrustConfiguration [dn=").append(dn).append(", application=").append(application).append(", cacheRefresh=").append(cacheRefresh)
				.append(", revision=").append(revision).append("]");
		return builder.toString();
	}

}

/*
 * oxCore is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
 *
 * Copyright (c) 2014, Gluu
 */

package org.xdi.config.oxtrust;

import org.gluu.site.ldap.persistence.annotation.LdapAttribute;
import org.gluu.site.ldap.persistence.annotation.LdapDN;
import org.gluu.site.ldap.persistence.annotation.LdapEntry;
import org.gluu.site.ldap.persistence.annotation.LdapJsonObject;
import org.gluu.site.ldap.persistence.annotation.LdapObjectClass;
import org.xdi.ldap.model.Entry;

/**
 * @author Yuriy Movchan
 * @version 0.9, 05/16/2013
 */
@LdapEntry
@LdapObjectClass(values = {"top", "oxTrustConfiguration"})
public class LdapOxTrustConfiguration extends Entry {

	private static final long serialVersionUID = -15289347651306279L;

	@LdapDN
    private String dn;

	@LdapJsonObject
	@LdapAttribute(name = "oxTrustConfApplication")
    private AppConfiguration application;

	@LdapJsonObject
	@LdapAttribute(name = "oxTrustConfCacheRefresh")
    private CacheRefreshConfiguration cacheRefresh;

    @LdapAttribute(name = "oxRevision")
    private long revision;
    
    @LdapJsonObject //issue 102 - begin  : changed by shekhar
    @LdapAttribute(name = "oxTrustConfImportPerson")
    private ImportPersonConfig importPersonConfig; //issue 102 - end  : changed by shekhar
    
    @LdapAttribute(name = "oxTrustConfAttributeResolver")
    private String attributeResolverConfig;

	public LdapOxTrustConfiguration() {
	}

	public AppConfiguration getApplication() {
		return application;
	}

	public void setApplication(AppConfiguration application) {
		this.application = application;
	}

	public CacheRefreshConfiguration getCacheRefresh() {
		return cacheRefresh;
	}

	public void setCacheRefresh(CacheRefreshConfiguration cacheRefresh) {
		this.cacheRefresh = cacheRefresh;
	}

	public long getRevision() {
		return revision;
	}

	public void setRevision(long revision) {
		this.revision = revision;
	}

	//issue 102 - begin  : changed by shekhar
	public ImportPersonConfig getImportPersonConfig() {
		return importPersonConfig;
	}

	public void setImportPersonConfig(ImportPersonConfig importPersonConfig) {
		this.importPersonConfig = importPersonConfig;
	}//issue 102 - end  : changed by shekhar
	

	public String getAttributeResolverConfig() {
		return attributeResolverConfig;
	}

	public void setAttributeResolverConfig(String attributeResolverConfig) {
		this.attributeResolverConfig = attributeResolverConfig;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("LdapOxTrustConfiguration [dn=").append(dn).append(", application=").append(application).append(", cacheRefresh=").append(cacheRefresh)
				.append(", revision=").append(revision).append("]");
		return builder.toString();
	}

}

Update attribute resolver config variables names to sync with other var names