Package org.jitterbit.integration.data.location

Examples of org.jitterbit.integration.data.location.LdapLocation


        setNoSelectionErrorMessage(PackageResources.SourceSelector.NO_SELECTION);
        setNewEntityVisitor(new Receiver<Source>() {

            @Override
            public void handle(Source source) {
                source.setLocation(new LdapLocation());
                source.setAllowedLocationTypes(EnumSet.of(DataLocationType.LDAP));
            }
        });
    }
View Full Code Here


            ActionDecorators.REFRESH.decorate(this);
        }

        @Override
        public void actionPerformed(ActionEvent e) {
            LdapLocation loc = model.getLocation();
            if (loc == null) {
                return;
            }
            setEnabled(false);
            ObjectClassDefinitionRetriever lookup = new ObjectClassDefinitionRetriever();
View Full Code Here

        }
        return null;
    }

    private void prepareClassSelectionPage() {
        LdapLocation ldapLoc = locationSelectionPage.getSelectedLdapLocation();
        classSelectionPage.setLdapLocation(ldapLoc);
        // The first time we switch to the class selection page when modifying an existing
        // structure we preselect the object classes used by the structure. We cannot do
        // this in the CTOR because the page is not ready for this at that point.
        if (updateClassSelectionPage) {
View Full Code Here

        // structure we preselect attributes used by the structure. We cannot do this in the
        // CTOR because the page is not ready for this at that point.
    }

    private void prepareSearchParamsPage() {
        LdapLocation ldapSource = (fixedLocation == null) ?
                        locationSelectionPage.getSelectedLdapLocation() : fixedLocation;
        LdapStructureEntryNode[] entries = structureReviewPage.getDefinedEntryNodes();
        searchParamsPage.populate(ldapSource, entries);
        if (updateSearchParamsPage) {
            assert (toModify != null);
View Full Code Here

    private final class ModelListener implements PropertyChangeListener {

        @Override
        public void propertyChange(PropertyChangeEvent evt) {
            LdapLocation loc = (LdapLocation) evt.getNewValue();
            readCachedObjectClasses(loc);
        }
View Full Code Here

    private LdapLocationValidator validator;

    @Before
    public void setup() {
        loc = new LdapLocation();
        validator = new LdapLocationValidator(loc);
    }
View Full Code Here

     *            while the requested information is retrieved
     * @return a <code>SelectedObjectClasses</code> containing the class definitions referred to by
     *         <code>struct</code>
     */
    public static SelectedObjectClasses fromStructure(LdapStructure struct, LdapStructureServerCache ldapCache, WaitService waitSvc) {
        LdapLocation ldapLoc = struct.getLdapLocation();
        NumericOid[] oids = struct.getStructuralObjectClassOids();
        GetDefinitionsCallback callback = new GetDefinitionsCallback();
        ObjectClassDefinitionRetriever retriever = new ObjectClassDefinitionRetriever();
        retriever.setLdapCache(ldapCache);
        retriever.retrieveClassDefinitions(ldapLoc, oids, callback, true, waitSvc);
View Full Code Here

            tearDown();
        }
    }

    private LdapLocation createLocation(int n) {
        LdapLocation loc = new LdapLocation();
        loc.setServer(SERVERS[n]);
        loc.setBaseName(BASENAMES[n]);
        loc.setUser(USERS[n]);
        return loc;
    }
View Full Code Here

    ObjectClassDefinitionRetrieverTest() {
        location = getLocation();
    }

    private LdapLocation getLocation() {
        LdapLocation loc = new LdapLocation();
        loc.setServer("windev");
        loc.setTargetId(new TargetId());
        return loc;
    }
View Full Code Here

            new NumericOid("0.9.2342.19200300.100.4.5"),
        };
    }

    private LdapLocation getLocation() {
        LdapLocation loc = new LdapLocation();
        loc.setServer("windev");
        loc.setTargetId(new TargetId());
        return loc;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.location.LdapLocation

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.