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

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


    }
   
    public LdapSearchParameters getSearchParameters() {
        String path = pathField.getPath();
        String filter = filterArea.getExpression().trim();
        return new LdapSearchParameters(getClassName(), path, filter, scopeDefiner.getScope());
    }
View Full Code Here


        });
    }
   
    public void setStructureToEdit(LdapStructure toEdit) {
        for (NumericOid oid : toEdit.getStructuralObjectClassOids()) {
            LdapSearchParameters params = toEdit.getSearchParameters(oid);
            if (params != null) {
                SearchParametersDefiner ui = definers.get(oid);
                // ui may be null if a class has been removed from the structure
                if (ui != null) {
                    ui.setSearchParameters(params);
View Full Code Here

        if (oids == null || oids.length < 1)
            return;

        String transformationId = transformation.getID().toString();
        for (NumericOid oid : oids) {
            LdapSearchParameters searchParameters = ldapStructure.getSearchParameters(oid);
            if (searchParameters == null)
                continue;

            // The class name and the path have to be non-empty strings.
            // For now we allow the filter itself to be an empty string.
            String className = searchParameters.getClassName();
            if (className == null || className.length() < 1)
                continue;

            String path = searchParameters.getBaseDN();
            if (path == null)
                continue;

            String filter = searchParameters.getFilter();
            if (filter == null)
                filter = "";

            int scope = searchParameters.getScope().getApiCode();

            String[] fields = new String[6];
            fields[0] = transformationId;
            fields[1] = className;
            fields[2] = path;
View Full Code Here

    }
   
    private LdapStructure createOriginalStructure() {
        LdapStructure struct = new LdapStructure(createLocation(), createEntries());
        struct.addSearchParameters(new NumericOid("abc-123"),
                new LdapSearchParameters("Jerry", "Seinfeld", "jahaja", LdapSearchScope.BASE));
        struct.addSearchParameters(new NumericOid("abc-124"),
                new LdapSearchParameters("Elaine", null, null, LdapSearchScope.ONE_LEVEL));
        return struct;
    }
View Full Code Here

     *
     * @throws UnsupportedOperationException
     *             if this <code>LdapStructure</code> is used as a target
     */
    public void addSearchParameters(NumericOid classOid, LdapSearchParameters filter) {
        LdapSearchParameters old;
        synchronized (getDataLock()) {
            checkSourceStructure("addSearchParameters");
            old = searchParams.put(classOid, filter);
        }
        if (!equals(old, filter)) {
View Full Code Here

TOP

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

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.