Package com.salesforce.ide.core.remote.metadata

Examples of com.salesforce.ide.core.remote.metadata.RetrieveResultExt


        } else {
            retrieveRequest.setPackageNames(new String[] { packageName });
        }

        monitorWork(monitor);
        RetrieveResultExt retrieveResultExt = retrieveWork(connection, retrieveRequest, monitor);
        return retrieveResultExt;
    }
View Full Code Here


            defaultPackageManifest = getPackageManifestFactory().getDefaultPackageManifest(projectPackageList);
            retrieveRequest.setUnpackaged(getPackageManifestFactory().convert(defaultPackageManifest));
        }

        monitorWork(monitor);
        RetrieveResultExt retrieveResultExt = retrieveWork(connection, retrieveRequest, monitor);
        retrieveResultExt.setProjectPackageList(projectPackageList);
        return retrieveResultExt;
    }
View Full Code Here

        }

        retrieveRequest.setUnpackaged(getPackageManifestFactory().convert(packageManifest));

        monitorWork(monitor);
        RetrieveResultExt retrieveResultExt = retrieveWork(connection, retrieveRequest, monitor);
        retrieveResultExt.setProjectPackageList(projectPackageList);
        return retrieveResultExt;
    }
View Full Code Here

                            Constants.DEFAULT_PACKAGED_NAME, componentTypes, true);
            }
            retrieveRequest.setUnpackaged(getPackageManifestFactory().convert(packageManifest));
        }

        RetrieveResultExt retrieveResultExt = retrieveWork(connection, retrieveRequest, monitor);
        retrieveResultExt.setProjectPackageList(projectPackageList);
        return retrieveResultExt;
    }
View Full Code Here

        monitorCheck(monitor);
        if (Utils.isNotEmpty(ContainerDelegate.getInstance().getServiceLocator().getProjectService().getFolder(deployResources, Constants.SOURCE_FOLDER_NAME))) {
            String packageName = ContainerDelegate.getInstance().getServiceLocator().getProjectService().getPackageName(model.getProject());

            // perform retrieve
            RetrieveResultExt retrieveResultHandler =
                    ContainerDelegate.getInstance().getServiceLocator().getPackageRetrieveService().retrievePackage(connection, model.getProject(),
                        packageName, monitor);

            if (retrieveResultHandler == null) {
                logger.warn("Unable to retrieve remote components for src folder - retrieve result is null");
                return;
            }

            monitorWork(monitor);

            remoteProjectPackageList.generateComponents(retrieveResultHandler.getZipFile(), retrieveResultHandler
                    .getFileMetadataHandler());
        }
    }
View Full Code Here

        if (logger.isDebugEnabled()) {
            logger.debug("Received retrieve() result at " + (new Date()).toString());
        }

        if (retrieveResultExt == null) {
            retrieveResultExt = new RetrieveResultExt();
        }

        retrieveResultExt.setRetrieveResult(retrieveResult);

        // log result
View Full Code Here

        if (packageManifest != null) {
            retrieveRequest.setUnpackaged(getPackageManifestFactory().convert(packageManifest));
        }

        RetrieveResultExt resultExt = retrieveWork(connection, retrieveRequest, monitor);
        ProjectPackageList projectPackageList = getProjectPackageFactory().getProjectPackageListInstance(packageNames);

        resultExt.setProjectPackageList(projectPackageList);
        return resultExt;
    }
View Full Code Here

        }

        // log retrieval details
        logRetrieve(connection, retrieveRequest);

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

            monitorWorkCheck(monitor);
View Full Code Here

                // only save these types
                String[] componentTypeArray = componentTypes.toArray(new String[componentTypes.size()]);

                // perform retrieve
                RetrieveResultExt retrieveResultHandler =
                        ContainerDelegate.getInstance().getServiceLocator().getPackageRetrieveService().retrieveSelective(connection, projectPackageList,
                            componentTypeArray, monitor);

                if (retrieveResultHandler == null) {
                    logger
                            .warn("Unable to retrieve remote components for component folder(s) - retrieve result is null");
                    return;
                }

                monitorWork(monitor);

                remoteProjectPackageList.generateComponents(retrieveResultHandler.getZipFile(), retrieveResultHandler
                        .getFileMetadataHandler());
            }
        }
    }
View Full Code Here

                    strBuff.append("  (").append(++cnt).append(" ").append(componentName);
                }
                logger.debug(strBuff.toString());
            }

            RetrieveResultExt retrieveResultHandler =
                    ContainerDelegate.getInstance().getServiceLocator().getPackageRetrieveService().retrieveSelective(connection,
                        componentNames.toArray(new String[componentNames.size()]), Constants.DEFAULT_PACKAGED_NAME,
                        getProject(), monitor);

            if (retrieveResultHandler == null) {
                logger.warn("Unable to retrieve remote components for component file(s) - retrieve result is null");
                return;
            }

            monitorWork(monitor);

            remoteProjectPackageList.generateComponents(retrieveResultHandler.getZipFile(), retrieveResultHandler
                    .getFileMetadataHandler());
        }
    }
View Full Code Here

TOP

Related Classes of com.salesforce.ide.core.remote.metadata.RetrieveResultExt

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.