Package com.sforce.soap.metadata

Examples of com.sforce.soap.metadata.PackageTypeMembers


          packageManifest.setVersion("29.0"); // TODO: Make version configurable / auto
          List<PackageTypeMembers> packageTypeMembersList = new ArrayList<PackageTypeMembers>();
          scanFilesToDeploy(filesToDeploy, typeMembersByType, repositoryContainer);
        for(String metadataType : typeMembersByType.keySet())
        {
          PackageTypeMembers packageTypeMembers = new PackageTypeMembers();
          packageTypeMembers.setName(metadataType);
          packageTypeMembers.setMembers((String[])typeMembersByType.get(metadataType).toArray(new String[0]));
          packageTypeMembersList.add(packageTypeMembers);
        }
        packageManifest.setTypes((PackageTypeMembers[]) packageTypeMembersList.toArray(new PackageTypeMembers[0]));       
        // Serialise it (better way to do this?)
          TypeMapper typeMapper = new TypeMapper();
View Full Code Here


     *
     * @param object  the object to be included in schema creation or deletion
     * @param includeInPackageFile whether the package.xml or destructiveChanges.xml file should include this object
     */
    public void addCustomObject(CustomObject object, boolean includeInPackageFile) {
        PackageTypeMembers type = null;
        if (includeInPackageFile) {
            type = new PackageTypeMembers();
            type.setName(CUSTOM_OBJECT);
            type.setMembers(new String[] {object.getFullName()});
        }
        objects.put(object, type);
    }
View Full Code Here

     */
    public void addCustomField(CustomObject object, CustomField field) {
        //if we are deleting the object and it is included in the package i.e. objects contains a non null PackageTypeMember,
        // then there is no point adding fields for delete individually
        if (deleteProperty.getDeleteSchema() && objects.get(object) != null) return;
        PackageTypeMembers type = new PackageTypeMembers();
        type.setName(CUSTOM_FIELD);
        type.setMembers(new String[] {String.format("%s.%s", object.getFullName(), field.getFullName())});
        fields.put(field, type);
    }
View Full Code Here

TOP

Related Classes of com.sforce.soap.metadata.PackageTypeMembers

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.