Examples of FileMetadataExt


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

    protected FileMetadataExt getObjectFileProperties(Connection connection, IProgressMonitor monitor,
            CustomObjectNameResolver objectNameResolver) throws ForceConnectionException, ForceRemoteException,
            InterruptedException, FactoryException {
        List<FileProperties> list = new ArrayList<FileProperties>();

        FileMetadataExt fileMetadataExtArray =
                listMetadata(connection, getComponentFactory().getComponentByComponentType(Constants.CUSTOM_OBJECT),
                    monitor);

        if (fileMetadataExtArray != null && Utils.isNotEmpty(fileMetadataExtArray.getFileProperties())) {
            for (FileProperties prop : fileMetadataExtArray.getFileProperties()) {
                if (objectNameResolver.check(new Path(prop.getFullName()).lastSegment(), Constants.CUSTOM_OBJECT)) {
                    list.add(prop);
                }
            }
        }

        return new FileMetadataExt(list.toArray(new FileProperties[list.size()]));
    }
View Full Code Here

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

        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.metadata.FileMetadataExt

                ListMetadataQuery folderQuery = new ListMetadataQuery();
                folderQuery.setType(component.getFolderNameIfFolderTypeMdComponent());

                try {
                    FileMetadataExt ext = listMetadata(connection, new ListMetadataQuery[] { folderQuery }, monitor);
                    if (ext != null && Utils.isNotEmpty(ext.getFileProperties())) {
                        for (FileProperties file : ext.getFileProperties()) {
                            ListMetadataQuery query = new ListMetadataQuery();
                            query.setType(componentTypes[i]);
                            query.setFolder(file.getFullName());
                            listMetadataQueryArray.add(query);
                        }
View Full Code Here

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

                    continue;
                }
                listMetadataList.add(fileProperties);
            }
        }
        return new FileMetadataExt(listMetadataList.toArray(new FileProperties[listMetadataList.size()]));
    }
View Full Code Here

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

                    final String type = fp.getType();
                    return !(filterComponentTypesSet.contains(type));

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

    }
View Full Code Here

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

                }
            }

            String[] listMetaDataComponentTypes =
                    componentTypesForListMetadata.toArray(new String[componentTypesForListMetadata.size()]);
            FileMetadataExt fileMetadataExt =
                    ContainerDelegate.getInstance().getServiceLocator().getMetadataService()
                            .listMetadata(connection, listMetaDataComponentTypes, monitor);

            // Add the fileproperty to the Map based on filepropertyType

            //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);
View Full Code Here

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

                ContainerDelegate.getInstance().getServiceLocator().getMetadataService()
                        .getDescribeMetadata(metadataStubExt, monitor);
        String organizationNamespace = describeMetadataResultExt.getOrganizationNamespace();

        // get list metadata for given queries; set to subset as default option is only apex-related
        FileMetadataExt fileMetadata = getFileMetadata(listMetadataQueries, monitor);
        fileMetadata.setSubset(true);

        PackageManifestModel packageManifestModel = getProjectModel().getPackageManifestModel();
        fileMetadata.setFileProperties(Utils.removePackagedFiles(fileMetadata.getFileProperties(),
            organizationNamespace));
        packageManifestModel.setFileMetadatExt(fileMetadata);
    }
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.