Package com.salesforce.ide.core.remote

Examples of com.salesforce.ide.core.remote.Connection


    public RetrieveResultExt retrieveAll(IProject project, IProgressMonitor monitor) throws ForceConnectionException,
            ServiceException, ForceRemoteException, ForceRemoteException, InterruptedException {
        if (project == null) {
            throw new IllegalArgumentException("Project cannot be null");
        }
        Connection connection = getConnectionFactory().getConnection(project);
        return retrieveAll(connection, monitor);
    }
View Full Code Here


            throws ForceConnectionException, FactoryException, ServiceException, ForceRemoteException,
            InterruptedException, ForceRemoteException, CoreException {
        if (project == null) {
            throw new IllegalArgumentException("Project cannot be null");
        }
        Connection connection = getConnectionFactory().getConnection(project);
        return retrieveManagedInstalledPackages(connection, monitor);
    }
View Full Code Here

                logger.info("No installed, managed packages to retrieve");
            }
            return null;
        }

        Connection connection = getConnectionFactory().getConnection(project);

        RetrieveRequest retrieveRequest = getRetrieveRequest();
        // installed, managed packages are saved to the project w/ package level (<package-name>/<comonent-type>/etc)
        retrieveRequest.setSinglePackage(false);
        retrieveRequest.setPackageNames(packageNames);
View Full Code Here

            ForceRemoteException, InterruptedException {
        if (project == null) {
            throw new IllegalArgumentException("Project cannot be null");
        }

        Connection connection = getConnectionFactory().getConnection(project);
        return retrievePackage(connection, project, packageName, monitor);
    }
View Full Code Here

            throws ForceConnectionException, ServiceException, ForceRemoteException, FactoryException,
            InterruptedException {
        if (component == null || component.getFileResource() == null) {
            throw new IllegalArgumentException("Component and/or file resource cannot be null");
        }
        Connection connection = getConnectionFactory().getConnection(component.getFileResource().getProject());
        return retrieveComponent(connection, component, monitor);
    }
View Full Code Here

            throws ForceConnectionException, ServiceException, ForceRemoteException, FactoryException,
            InterruptedException {
        if (project == null) {
            throw new IllegalArgumentException("Project cannot be null");
        }
        Connection connection = getConnectionFactory().getConnection(project);
        return retrieveComponent(connection, component, monitor);
    }
View Full Code Here

            ServiceException {
        if (logger.isDebugEnabled()) {
            logger.debug("Filtering components in conflict...");
        }

        Connection connection = null;
        if (project != null) {
            connection = factoryLocator.getConnectionFactory().getConnection(project);
        } else if (forceProject != null) {
            connection = factoryLocator.getConnectionFactory().getConnection(forceProject);
        }

        // go get selective components and create components from remote retrieve
        RetrieveResultExt retrieveResultHandler =
                serviceLocator.getPackageRetrieveService().retrieveSelective(connection, projectPackageList, true,
                    monitor);

        if (retrieveResultHandler == null) {
            logger.warn("Unable to perform conflict check - retrieve handler null for " + connection.getLogDisplay()
                + " and project package " + projectPackageList);
            return;
        }

        // REVIEWME: do we conclude w/o component conflict check?
View Full Code Here

     * @throws ForceRemoteException
     */
    private void addChildControls(final Composite composite) throws ForceConnectionException, ForceProjectException,
            ForceRemoteException {
        parentComposite = composite;
        Connection connection = getConnectionFactory().getConnection(project);
        QueryResult qr = connection.query(SoqlEnum.getSchemaInitalizationQuery());
        Table table = createTable(composite, qr);

        // Create and setup the TableViewer
        createTableViewer(table);
        tableViewer.setContentProvider(new SchemaContentProvider());
View Full Code Here

        } catch (ServiceTimeoutException ex) {
            retrieveResultHandler =
                getServiceLocator().getPackageRetrieveService().handleRetrieveServiceTimeoutException(ex, OPERATION,
                        monitor);
            if (retrieveResultHandler != null) {
                Connection connection = getConnectionFactory().getConnection(project);
                ProjectPackageList projectPackageList =
                        getProjectPackageFactory().getManagedInstalledProjectPackages(connection);
                if (projectPackageList != null) {
                    projectPackageList.setProject(project);
                }
View Full Code Here

            IProgressMonitor monitor) throws ForceConnectionException, ServiceException, ForceRemoteException,
            FactoryException, InterruptedException {
        if (projectPackageList == null || projectPackageList.getProject() == null) {
            throw new IllegalArgumentException("Project package list and/or containing project cannot be null");
        }
        Connection connection = getConnectionFactory().getConnection(projectPackageList.getProject());
        return retrieveSelective(connection, projectPackageList, selective, monitor);
    }
View Full Code Here

TOP

Related Classes of com.salesforce.ide.core.remote.Connection

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.