Examples of MetadataStubExt


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

        logRetrieve(connection, retrieveRequest);

        RetrieveResultExt retrieveResultExt = new RetrieveResultExt();
        try {
            // get metadata stub
            MetadataStubExt metadataStubExt = getMetadataFactory().getMetadataStubExt(connection);

            monitorWorkCheck(monitor);

            // send request and wait for result
            if (logger.isDebugEnabled()) {
                logger.debug("Calling retrieve() at " + (new Date()).toString());
            }

            AsyncResult asyncResult = metadataStubExt.retrieve(retrieveRequest);
            monitorWork(monitor);

            // get async result
            retrieveResultExt = getRetrieveResult(retrieveResultExt, asyncResult, metadataStubExt, monitor);
View Full Code Here

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

            throws ForceConnectionException, ForceRemoteException, InterruptedException, FactoryException {
        if (connection == null) {
            throw new IllegalArgumentException("Connection cannot be null");
        }

        MetadataStubExt metadataStubExt = getMetadataFactory().getMetadataStubExt(connection);
        DescribeMetadataResultExt describeMetadataResultExt =
                getDescribeMetadata(metadataStubExt, new NullProgressMonitor());
        if (describeMetadataResultExt == null || Utils.isEmpty(describeMetadataResultExt.getMetadataObjects())) {
            logger.warn("Unable to determine object type privileges on " + metadataStubExt.getLogDisplay()
                    + " - describeMetadataResultExt is null or empty");
            return null;
        }

        String[] componentTypes = getEnabledComponentTypes(describeMetadataResultExt, addChildren);
View Full Code Here

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

        return componentList;
    }

    public boolean isTestRequired(Connection connection) throws ForceConnectionException, ForceRemoteException,
            InterruptedException {
        MetadataStubExt metadataStubExt = getMetadataFactory().getMetadataStubExt(connection);
        DescribeMetadataResultExt describeMetadata = getDescribeMetadata(metadataStubExt, new NullProgressMonitor());
        return describeMetadata.isTestRequired();
    }
View Full Code Here

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

        return new FileMetadataExt(list.toArray(new FileProperties[list.size()]));
    }

    public FileMetadataExt listMetadata(Connection connection, ListMetadataQuery[] queries, IProgressMonitor monitor)
            throws ForceConnectionException, ForceRemoteException, InterruptedException, FactoryException {
        MetadataStubExt metadataStubExt = getMetadataFactory().getMetadataStubExt(connection);

        if (Utils.isEmpty(queries)) {
            queries = getListMetadataQueryArray(connection, true, monitor);
        }

        return new FileMetadataExt(metadataStubExt.listMetadata(queries, monitor));
    }
View Full Code Here

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

            progressContainer.run(false, true, this);
        } else if (!updatedProject.equals(existingProject)){
            // adjust timeout, if changed
            if (existingProject.getReadTimeoutSecs() != updatedProject.getReadTimeoutSecs()) {
                try {
                    MetadataStubExt metadataStubExt =
                            ContainerDelegate.getInstance().getFactoryLocator().getMetadataFactory().getMetadataStubExt(existingProject);
                    metadataStubExt.setTimeout(updatedProject.getReadTimeoutSecs());
                } catch (ForceRemoteException e) {
                    logger.warn("Unable to update timeout");
                }
            }
View Full Code Here

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

            //remove any installed components.
            FileProperties[] fileProperties = fileMetadataExt.getFileProperties();

            // query describe metadata for organization namespace - don't get from ForceProject due to project might not be created yet.
            MetadataStubExt metadataStubExt =
                    ContainerDelegate.getInstance().getFactoryLocator().getMetadataFactory()
                            .getMetadataStubExt(connection);
            DescribeMetadataResultExt describeMetadataResultExt =
                    ContainerDelegate.getInstance().getServiceLocator().getMetadataService()
                            .getDescribeMetadata(metadataStubExt, monitor);
View Full Code Here

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

        monitorCheck(monitor);

        DescribeMetadataResultExt describeMetadataResultExt = null;
        try {
            ForceProject forceProject = getProjectModel().getForceProject();
            MetadataStubExt metadataStubExt =
                    ContainerDelegate.getInstance().getFactoryLocator().getMetadataFactory()
                            .getMetadataStubExt(forceProject);
            describeMetadataResultExt =
                    ContainerDelegate.getInstance().getServiceLocator().getMetadataService()
                            .getDescribeMetadata(metadataStubExt, monitor);
View Full Code Here

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

    public void loadFileMetadata(IProgressMonitor monitor) throws InterruptedException, ForceConnectionException,
            ForceRemoteException, FactoryException {
        ForceProject forceProject = getProjectModel().getForceProject();

        // query describe metadata for organization namespace - don't get from ForceProject due to project might not be created yet.
        MetadataStubExt metadataStubExt =
                ContainerDelegate
                        .getInstance()
                        .getFactoryLocator()
                        .getMetadataFactory()
                        .getMetadataStubExt(
View Full Code Here

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

        return true;
    }

    private void initializeEnabledComponentTypes() {
        Set<String> types = Sets.newHashSet(Constants.APEX_COMPONENT_TYPES);
        MetadataStubExt metadataStubExt;
        try {
            metadataStubExt =
                    ContainerDelegate.getInstance().getFactoryLocator().getMetadataFactory().getMetadataStubExt(this);
            Set<String> supportedComponents = metadataStubExt.getSupportedMetadataComponents();
            types.retainAll(supportedComponents);
        } catch (Throwable e) {
            // not ideal, but since we're lazy (initialized, that is) we don't want to throw a caught exception
            throw new RuntimeException(e);
        }
View Full Code Here

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

        // log deployment details
        logDeploy(connection, zipFile, deployOptions);

        try {
            // prepare deployment stub
            MetadataStubExt metadataStubExt = getMetadataFactory().getMetadataStubExt(connection);
            metadataStubExt.setMetadataDebugHeader(logInfos);

            if (adjust) {
                // adjust deploy options based on org settings
                adjustDeployOptions(metadataStubExt, deployOptions, monitor);
            }

            monitorCheckSubTask(monitor, "Deploying components...");

            // call deploy and wait for response
            if (logger.isDebugEnabled()) {
                logger.debug("Calling deploy() at " + (new Date()).toString());
            }

            AsyncResult asyncResult = metadataStubExt.deploy(zipFile, deployOptions);
            monitorWork(monitor);

            // get async result
            deployResultHandler = getDeployResult(deployResultHandler, asyncResult, metadataStubExt, monitor);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.