Package org.jitterbit.integration.data.structure.ldap

Examples of org.jitterbit.integration.data.structure.ldap.LdapSearchParametersPersistor


            p.writeTo(e, media.createChild("LdapStructureEntry"));
        }
    }

    private void persistSearchParams(Persistor media) {
        LdapSearchParametersPersistor writer = new LdapSearchParametersPersistor();
        for (Map.Entry<NumericOid, LdapSearchParameters> e : searchParams.entrySet()) {
            Persistor p = media.createChild("SearchParams");
            p.putString("oid", e.getKey().toString());
            Persistor data = p.createChild("Data");
            writer.writeTo(e.getValue(), data);
        }
    }
View Full Code Here


        }
        this.entries = entries.toArray(new LdapStructureEntry[entries.size()]);
    }

    private void restoreSearchParams(Persistor root) {
        LdapSearchParametersPersistor loader = new LdapSearchParametersPersistor();
        Map<NumericOid, LdapSearchParameters> searchParams = Maps.newHashMap();
        for (Persistor p : root.getChildren("SearchParams")) {
            NumericOid oid = new NumericOid(p.getString("oid"));
            Persistor data = p.getFirstChild("Data");
            searchParams.put(oid, loader.restoreFrom(data));
        }
        this.searchParams = new HashMap<NumericOid, LdapSearchParameters>(searchParams);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.structure.ldap.LdapSearchParametersPersistor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.