Package com.salesforce.ide.core.remote

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


            FactoryException, InterruptedException, ForceRemoteException, RemoteException, CoreException {
        if (projectPackageList == null || projectPackageList.getProject() == null) {
            throw new IllegalArgumentException("Package list and/or project cannot be null");
        }

        Connection connection = getConnectionFactory().getConnection(projectPackageList.getProject());
        return retrieveSelective(connection, projectPackageList, componentTypes, monitor);
    }
View Full Code Here


            InterruptedException, ForceRemoteException, RemoteException, CoreException {
        if (projectPackageList == null || projectPackageList.getProject() == null) {
            throw new IllegalArgumentException("Package list and/or project cannot be null");
        }

        Connection connection = getConnectionFactory().getConnection(projectPackageList.getProject());
        return retrieveSelective(connection, projectPackageList, componentTypes, monitor);
    }
View Full Code Here

        if (packageNames.contains(Constants.DEFAULT_PACKAGED_NAME)) {
            packageManifest = getPackageManifestFactory().getDefaultPackageManifest(project);
            packageNames.remove(Constants.DEFAULT_PACKAGED_NAME);
        }

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

        return retrieveWork(connection, packageNames.toArray(new String[packageNames.size()]), packageManifest, monitor);
    }
View Full Code Here

        // initialize payload container
        DeploymentPayload deploymentPayload = new DeploymentPayload(model.getProject(), deployResources);
        deploymentPayload.setDestinationOrgUsername(destinationProject.getUserName());

        monitorCheckSubTask(monitor, "Getting connection to destination organization...");
        Connection connection = ContainerDelegate.getInstance().getFactoryLocator().getConnectionFactory().getConnection(destinationProject);
        monitorWork(monitor);

        monitorCheckSubTask(monitor, "Getting permissible object types for destination organization...");
        String[] enabledComponentTypes = ContainerDelegate.getInstance().getServiceLocator().getMetadataService().getEnabledComponentTypes(connection, true, true);
        if (Utils.isEmpty(enabledComponentTypes)) {
            logger.warn("No object types are enabled for " + connection.getLogDisplay());
            return deploymentPayload;
        }
        monitorWork(monitor);

        List<String> remoteEnabledComponentTypes = new ArrayList<String>(enabledComponentTypes.length);
View Full Code Here

     * @throws JAXBException
     */
    public DeploymentResult deploy(ForceProject destinationProject, DeploymentPayload deploymentPayload,
            boolean checkOnly, IProgressMonitor monitor) throws ForceConnectionException, ForceRemoteException,
            InterruptedException, ForceProjectException, FactoryException, ServiceException, JAXBException {
        Connection connection = ContainerDelegate.getInstance().getFactoryLocator().getConnectionFactory().getConnection(destinationProject);
        if (logger.isDebugEnabled()) {
            logger.debug(deploymentPayload.getDeploymentPlanSummary());
        }
        return deployWork(connection, deploymentPayload, checkOnly, monitor);
    }
View Full Code Here

    private static final Logger logger = Logger.getLogger(RunTestsService.class);

    public IDeployResultExt runTests(IResource projectResource, IProgressMonitor monitor)
            throws ForceConnectionException, FactoryException, CoreException, InterruptedException, RemoteException,
            ServiceException, ForceRemoteException {
        Connection connection = getConnectionFactory().getConnection(projectResource.getProject());
        String[] testClazz = testCases(projectResource);
        ProjectPackageList projectPackageList =
                getProjectPackageFactory().loadProjectPackageList(projectResource, monitor);
        LogInfo[] logInfos =
                getLoggingService().getAllLogInfo(projectPackageList.getProject(),
View Full Code Here

            MalformedURLException, InsufficientPermissionsException {
        if (logger.isDebugEnabled()) {
            logger.debug("Show file '" + file.getProjectRelativePath().toPortableString() + "' in Salesforce.com");
        }

        Connection connection = getConnectionFactory().getConnection(project);
        Component component = getComponentFactory().getComponentFromFile(file, false);

        if (component == null) {
            handleSetupLanding(file.getProject());
            return;
View Full Code Here

            }
            handleSetupLanding(folder.getProject());
            return;
        }

        Connection connection = getConnectionFactory().getConnection(folder.getProject());

        String url = getUrl(connection, folder.getProject());
        if (Utils.isEmpty(url)) {
            logger.error(UIMessages.getString("ShowInForceAction.UnableToShow.error")
                    + ".  Frontdoor string, session id and/or component id not available.");
View Full Code Here

            }
            handleSetupLanding(folder.getProject());
            return;
        }

        Connection connection = getConnectionFactory().getConnection(folder.getProject());

        String url = getUrl(connection, folder.getProject());
        if (Utils.isEmpty(url)) {
            logger.error(UIMessages.getString("ShowInForceAction.UnableToShow.error")
                    + ".  Frontdoor string, session id and/or component id not available.");
View Full Code Here

        handleSubComponentFolder(folder.getProject(), component);
    }

    private void handleSubComponentFolder(IProject project, Component component) throws ForceConnectionException,
            PartInitException, MalformedURLException, InsufficientPermissionsException {
        Connection connection = getConnectionFactory().getConnection(project);

        String url = getUrl(connection, project);
        if (Utils.isEmpty(url)) {
            logger.error(UIMessages.getString("ShowInForceAction.UnableToShow.error")
                    + ".  Frontdoor string, session id and/or component id not available.");
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.